HELP!!: Two server application instances could work in the same port?

Hi everybody!!!
i have two server application instances over the same JVM and both of them need to get requests from the same port, how can i get this??
I`m not interested on using RMI, and i wouldn`t like to use sockets, because i have already using XML-RPC, so if you can tell me how can i get this without using sockets nor RMI, please help me...
I don�t if there any way using threads??
thanks a lot,
JCPARRAM

Two sockets can't be bound to the same port on the same machine at the same time. This means that one application can't have two sockets listening on the same port and that two applications can't each have a socket listening on the same port (no matter what language they are written in, and, if they are in Java, no matter whether they are on the same JVM or not).
Your only solution is to make one of the server applications listen on a different port.

Similar Messages

  • Two applications wants to read on the same port using Socket

    I have an application running on one machine using TCP/IP socket. The data transfer with the other application on other machine is in ASCII.
    Now I want a new application that can have a copy of data received and sent on the given port, where the previous application is running.
    Is it possible in Java using socket and TCP/IP to have two application reading data from the same port and both can read all the data.

    Even when you don't state the type of app which need to read the data stream (is it a server or a client app???), it's impossible to share a single TCP/IP socket among multiple apps.
    Perhaps the best thing to do is to develop something like a proxy server who listens on the nominated port and provides to contact (if your apps are server ones) or to be contacted (if your apps are client ones) by the desired apps.
    This way, the only job for the proxy is to duplicate the contents of the data stream and make them available to all the apps engaged.
    Hope this helps.

  • Installing 2x Instances of UCM on the same ports on a multihomed server

    We're looking at installing 2x instances of UCM on the same multihomed server, using the same port numbers for each.
    But following the initial installation, we note that the admin port binds to all of the IP's in the server.
    $ netstat -a | grep LISTEN | grep 444
    tcp 0 0 *:4440 *:* LISTEN
    Is there a way to stop the Admin server from doing this, and only to bind to a single IP ?
    We effectively want to get the 1st instance Admin Server to Listen on IP1:4440
    And the 2nd instance Admin Server to Listen on IP2:4440
    Same with port 4444 for both instances.
    Incidentally, the Admin Server should not really listen on all IP's by default, as this is a potential security risk especially if one IP was for example internal traffic, and the other one was for external traffic.
    So there are other reasons for not wanting to listen on all IP's within the server rather than the specific one.
    Any help / guidance much appreciated.
    Regards
    Andrew

    This configuration entry is available:
    IdcServerBindAddress=IPaddress
    It's generally been used in clustered installations but I see no reason why it wouldn't work with a stand alone instance as well.
    Regards,
    Josh

  • Can't connect two external drives via USB hub to the same port.

    I have two external hard drives connected to my MacBook Air, along with other USB devices, using a powered USB hub. When I connect both external drives to the same port via the USB hub, one of them disconnects with an error message saying it was improperly disconnected. The same thing happens when I connect one of the hard drives and an external DVD drive via the USB hub. The two drives work fine when connected to separate ports. Other USB devices coexist with one of the drives quite happily. Can anyone explain why this is?

    External drives may well require more power than a port can supply. Also, many USB hubs cannot be used for external drives. It's always best to connect an external drive directly to the USB port. If the drive enclosure has a second USB port on it, then you can daisy-chain a second drive to the first, sometimes.

  • JDev9i-Beta;How could I run two JSP applications in Jdev enviroment at the same time?

    Hi,
    I have two JSP applications located on different directories. I wanted to run both applications at the same time in Jdev enviroment. But the second one failed.
    More info:
    I successfully ran Application1, then minimized the browser and ran Application2, then again minimized the second browser. After I maximized the first browser(Application1) and tried to go thro pages, I received page not found. Because Jdev sat up the Class Path for the newer application(Application2) and looks for pages there. I believe thats why I could not run both at the same time. How could I get around of this?

    hi,
    can you provide more details on this. Are these jsp files part of the same project or different projects. I can not duplicate this issue. Please provide us more information.
    Thank you

  • Two JavaScript widgets won't work on the same page [was: Not the first time]

    I ran into this a few months back and gave up on it. I have a page that has several javascripts running on it. They are:
    vnu_datestamp.js
    a flashing neon text script (inline)
    DW's own rollover image (MM_swapimgRestore) script (also inline)
    jquery1.2.2_pack.js
    overlapviewer.js
    lightbox.js (which also relies on scriptaculous.js, prototype.js and an "effects.js" to run)
    I know that's a "garbage pail" of javascripts to all be on the same page. Frankly I'm surprised that they don't all give me problems. But there is one.
    The lightbox and overlap viewer just will not play together.
    Depending on which one I list first in the header, the other one quits. Whichever one I lose goes from the image display effect to acting like a straight hyperlink to the designated image.
    It isn't a huge deal, but I'd like to be able to have the two of these on the same page and working. I have them running alone on other pages and can link to them, but it sort of defeats the purpose of making a web page to show the variety of things I can do for someone who whats a website built, if one or more of the things won't work.
    [Subject line edited by moderator for clarity]

    Please don't use cryptic subject lines for posts. The value of a forum is that other people might be searching for the answer to a similar problem. Meaningless subject lines prevent others from finding useful replies. They also discourage others who might be able to provide help more quickly if they knew what you're asking about.
    I've had a quick look at your page. Quite honestly, I find all the flashing rather nauseating, but if that's the way you want to design a page, it's your choice...
    The conflict is caused by the fact that overlapview.js seems to rely on jQuery, while lightbox.js relies on Prototype and script.aculo.us. Both jQuery and Prototype use $() as a shortcut, so you cannot mix the two libraries on the same page without taking special measures to prevent the conflict. In jQuery, you do this by loading all the jQuery, Prototype, and script.aculo.us libraries first, and then using the following script:
    jQuery.noConflict();
    Then load overlapview.js, replacing all instances of $ with jQuery. So, for example, the following line:
    $(t).fadeTo('normal', overlapviewer.endopacity, function(){
    needs to be rewritten like this:
    jQuery(t).fadeTo('normal', overlapviewer.endopacity, function(){

  • I have two Ipods can they both work on the same computer?

    I had bought a ipod nano about a 6 mounths ago. Last week I bought the new ipod nano 2ed gen. I was wondering if I could plug both of them into the same computer (not both at the some time)but without screwing itunes up and loosing all my music? Also would i have to change the serial numbers of the ipods on the computer?
    PLEASE HELP!!! THANK YOU!!

    See...I have a ipod nano which on being connected to itunes7, I'm able to make my own playlist&delete or download songs at my own will. But when I connect my ipod mini to my i tunes(on the same computer) ...it(only) just updates my mini but after that if i wanna make changes to the playlist on my mini or delete anything...I can't. It only works with my nano but not with my mini.

  • Can two PCI-e eSATA cards work at the same time?

    Hello,
    I've been using a cheap, 2 ports sil3132 eSATA card for the past 8 months or so. I just bought a second one as I needed more ports, but the two cards are not working well together.
    First: is there a solution?
    Second: would an eSATA from another maker work better?
    Thanks
    Loa

    Maybe they share the same driver and chipset and cause an issue?
    I have 2 port Sonnet Tempo E2P and E4P but they are different chipset and drivers.
    http://eshop.macsales.com/item/Sonnet%20Technology/TSATAIIE4P/
    Yes you can. FirmTek 4-port is excellent and Newertech has SATA III 2-port (and no driver needed).
    http://eshop.macsales.com/item/Newer%20Technology/MXPCIE6GS2/
    http://eshop.macsales.com/item/Firmtek/SATA2ME4E/
    http://eshop.macsales.com/item/Newer%20Technology/MXPCIE6GS2/

  • Tasks allocated to two ressources to work at the same time

    Hello,
    I faced a problem allocating a task to two persons, that have to work at the same time on this task e.g. the are working in a workshop to solve an issue.
    If I use standard allocation, Project optimizes that both members of the workshop are working their 4h work budget at different times to shorten the elapsed time.
    Thanks, Marcus

    Marcus,
    Whether project changes the duration, work value or assignment units depends on the task type and the order in which you go things.  to make things simpler, I always insert the work column (1), and then when assigning the resources, I then use the Smart
    Tag (2 in the screen shot below) to tell project what to do (3 in the screen shot).  
    Ben Howard [MVP] | web |
    blog |
    book | P2O

  • Help with 2 separate domains with the same ports in a single machine

    Hi,
    Where I can get info on having 2 separate domains on the same machine that works on the same ports, and one works with http://admin-server, and the other for http://production-server.
    I want to have webapps that are installed only in the admin domain, and the others in the production domain. The problem is that if I put the same ports for both domains says:
    Domain production-domain failed to startup. There is a conflict on port 80. Please check the server log for more details.
    CLI156 Could not start the domain production-domain.
    Thanks,
    Regards,
    Lorenzo Jim�nez

    Hi, we don't have two iPhones in the family as yet but as I understand it each device can have separate settings for syncing calendars and contacts. For example my iPhone syncs these over the air with the Exchange server at work so if/when my wife gets an iPhone it would be easy to have hers sync to Outlook on our computer
    To make sure apps purchased on one device don't inadvertently merge with others turn off Automatically sync new apps from the apps tab when you connect your device.
    The Apple support document How to use multiple iPods with one computer suggests a number of ways for managing the media content. I use method two (Sync with selected playlists) with a slight twist. Rather than regular playlists I set the grouping field to indicate which users should receive which tracks and create smart playlists based on the content of this field.
    e.g.
    "Alice's Tracks" is "Grouping contains Alice" + "Kind contains audio"
    "Bob's Videos" is "Grouping contains Bob" + "Kind does not contain audio"
    Tracks that both Alice & Bob want on their iPods have the grouping set to "Alice/Bob"
    etc.
    I currently manage our family's five iDevices using this system, each getting a different selection to suit their tastes and the capacity of their device. An advantage of using the grouping field is that it is stored in file tags (for non-wav audio files anyway) so that it is relatively easy to recreate the playlists should the iTunes library get trashed and need rebuilding. Also useful if you move files about manually as playlist membership is preserved when you delete & re-import the tracks.
    So far we have managed everything with a single Apple ID, but that will probably change as the kids leave home. Managing app updates from multiple IDs is a pain as you have to manually sign in to each account in turn, however there are other benefits to each user having their own account.
    tt2

  • Two Instances of Oracle Application Server 10.1.3.x using the same DB

    I can't seem to find any documentation about installing two instances of Oracle Application Server 10.1.3.x using the same database.
    Would the two instances conflict? Should I create a separate database for each instance? I am attempting to cluster two application servers and I want to know if I will need multiple databases, I can't see a reason why this would be a problem.
    Any advice on this matter would be appreciated.

    You have probably downloaded the wrong version.
    Do not download the Oracle SOA Suite 10g (10.1.3.5.1) for WebLogic Server (10.3.1),
    but the one below that option: Oracle SOA Suite 10g (10.1.3.x)
    See if you get something like the following zip file: soa_windows_x86_101310_disk1.zip
    This is just the OC4J without the WebLogic Server.

  • Two running instances of Weblogic on the same machine

    I need to run at least two instances of Weblogic on the same machine. My Company GE Capital purchases the Clustered version and the BEA Engineer who did the install did not know Unix and could not intall the instances. Could you please give pointers to on how to do this? You can also write me to [email protected]
    Thanks,
    John G

    ....plus, you have to consider the license issue.
    Vidar wrote:
    >
    It does not sound to bad, but would it not be hard to cooperate with other
    people, since you will often use API's and EJB's developed and deployed by
    other team-members?
    Does anybody have any documents or ideas on what the best way to cooperate
    in a development-team is?
    "Michael Girdley" <[email protected]> skrev i melding
    news:39e15942$[email protected]..
    Yes, that is the best way to do it.
    In practice, we have found that each developer having their ownworkstation
    with an instance of WLS works best.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "newbie" <[email protected]> wrote in message
    news:[email protected]..
    I am also pondering on the same problem right now...
    I am trying to get an environment setup so that multiple
    developers can have their own weblogic "instances" to play
    with - so that each of them can start/stop the server,
    deploy EJBS etc without affecting one another in a UNIX
    environment. to accomplish this - do I just install the
    server multiple times with different port numbers on the
    same machine or is there a a better way to do this?
    Appreciate any input.
    Thanks
    "john Gongora" <[email protected]> wrote:
    I need to run at least two instances of Weblogic on the same machine.
    My
    Company GE Capital purchases the Clustered version and the BEA Engineerwho
    did the install did not know Unix and could not intall the instances.Could
    you please give pointers to on how to do this? You can also write me to
    [email protected]
    Thanks,
    John G

  • Hi, iPak II user.  Two keyboard keys won't work, and the picture goes haywire sometimes, flashing itself, bak to old stuff, typing in the safari line, all this going on vey fast.   Any fixes out there?

    Hi, iPak II user.  Two keyboard keys won't work, and the picture goes haywire sometimes, flashing itself, bak to old stuff, typing in the safari line, all this going on vey fast.   Any fixes out there?

    Sounds like it could be a hardware problem.
    Try a restart or reset to see if that helps. If not, contact Apple Support.
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    No data will be lost.

  • Help!!! 8i&9i can not work at the same time

    I have installed 8i&9i in one Solaris8, and the port and listener name is diffendent, but now 8i&9i can not work at the same time.
    pls help me
    thanks anyway.
    John

    I have hard time digesting your concern.. I have 4 Different instance of oracle running on sun 2.8.
    8.0.5, 8.1.7, 9.i rel 1, 9i rel 2. No issues there...
    The simple things is to check is you .profile ( env variables)
    Example ...
    Check you .profile or .cshrc ( Depends on the SHELL You are using )
    Let say you have .profile
    THERE IS SETTING SUCH AS...
    ORACLE_SID
    ORACLE_HOME
    LD_LIBRARY_PATH
    PATH
    etc..
    You could try the following..
    log into to you sun box..
    do echo $ORACLE_SID this will give you current SID YOU have available to work with..
    so lets say if you have a 8i SID CALLED orcl8i
    example assume you have .cshrc
    setenv ORACLE_SID oracl8i
    setenv ORACLE_HOME /oracle8i_HOME_PATH...
    setenv LD_LIBRARY_PATH /oracle8i_HOME_PATH//lib: etc..
    etc...
    then
    you could validate by doing echo..
    echo $ORACLE_HOME
    echo $ORACLE_SID
    now try svrmgrl
    this should work..
    as far as 9i you no longer have svrmgrl..
    you have to apply the above method and log into the sqlplus.
    hope this help...
    If there is a specific question email me [email protected]
    good luck.

  • Help! My iPod touch won't let me download any apps. A message keeps coming up saying "This Apple ID cannot be used for the iTunes store. Please enter another Apple ID" I changed my ID to see if that would work but the same message still comes up.

    Help! My iPod touch won't let me download any apps. A message keeps coming up saying "This Apple ID cannot be used for the iTunes store. Please enter another Apple ID" I changed my ID to see if that would work but the same message still comes up.

    Where are you physically located?
    What country's Store are you using?
    The two have to be the same and the payment method for your account also has to be associated (billing address, where iTunes gift card was purchased) with that country.
    Has the ID(s) worked before for purchases for this country's store?

Maybe you are looking for

  • JDev 11g: Best Practice Multi Field Validation / Reset in a Dialog Control

    I'm using JDev 11g and want to do the following (excuse my newbie learning curve): 1. Ability for the user to have a "dialog" form that they can edit their user information such as name, password, email, etc. 2. When user clicks OK want the system to

  • Cannot convert to PDF and then send for sigs

    I can convert documents to PDF, but they are being converted at 41.5%. When I send for signatures, they expand out to 100% and the signatures and initials stay at 41.5%, so signing and initially are impossible.

  • AS2 Adapter in XI

    Hi, Can any body suggest me whether AS2 adapter available in XI directly. I don't want Seeburger AS2 adapter i heard that SAP  also released AS2 adapter. Is this true . Does any body this information. Kindly suggest. Regards, Venkat

  • System Administrator Responsibilty Gone???

    Hi Hussein, OS= AIX 5L EBS 11i (11.5.10.2) I have just finished installing our new Fresh Install EBS 11i for new setup. Then I turned it over to the Functional Analysts for them to start the Apps Setup. But suddenly they called me informing the "Syst

  • Can you filter iTunes search results by video or audio podcasts?

    I have been searching for hours and haven't found a definite answer. Anyone know if this is possible? Can you filter iTunes search results by video or audio podcasts?