How to start 2 RMI servers on same machine ??

Hello friends,
I am developing databackup project USING RMI
i want to start servers on same machine and client may be on different machine.
we tried it used as on different port . but it stil not working.
so can u provide me solution for that ,
how to start that two server on the same machine. ?
reply me soon
thanks

Ghanshyam,
It is possible to run multiple RMI servers as long as the port is different. For instance if you run the RMI daemon using port 2700:
rmid -port 2700and RMI daemon using port 2800:
rmid -port 2800You will see these ports open if you do an nmap or netstat -aMake sure you bind your separate RMI instances on separate ports when calling Naming.bind()Anthony
Message was edited by:
abargnesi
Message was edited by:
abargnesi

Similar Messages

  • 2 Application Servers on Same machine

    Hi
    I have installed 2 Applicaton Servers on same machine for getting dual language Support 'English as well as Arabic'. Both Application Servers have the same Report Server Name, now i want to rename or change the report server name of one application server.
    how can i do?
    Rename Report Server's name
    Thanks
    Najeeb.

    Hi Najeeb,
    Which version of AS you have?.
    I think the url which I sent it to U will help you to solve your problem.
    If you decide to install new Rep. server (version 10g) U can do it on the same server but in another directory. the new one will have different ports than the old one's.
    Cheers,
    Hamdy

  • What can't client connect to RMI server on same machine?

    I'm trying to get a client to connect to an RMI server that resides on the same machine, but it's not working. When run, I get the following exception:
    java.rmi.ConnectException: Connection refused to host: 121.0.0.55; nested exception is:
    java.net.ConnectException: Connection refused
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:100)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
    The machine in question is a Solaris 8 system running Java 1.3. I've checked all the networking permissions, and they seem to be ok. Any ideas as to what might be causing this?

    Thanks for the reply! Dumb question: How do I start the registry? I see debugging code that indicates that the server is [probably] being started.
    Usually this means that the registry isn't running or
    the server isn't running.

  • How to install iPlanet & NAS on same machine

    Hi,
    We have successfully installed iPlanet 6.0 SP3 on solaris in a webless
    mode. But both Webserver and App. server are running in the same
    machine. Now we have a requirement, that one other group wants to share
    the same machine, wherein they want to install NAS 4.0 on the same
    machine.
    Is it possible to install both App. server on the machine, while sharing
    the webserver.
    I Would appreciate if any one can say, if this is doable and how.
    Thanks in advance
    Regards
    Veera

    You can do that if you put iAS and NAS on two different web server
    instances (http daemons). However, you might not get support on it so
    you better check with iplanet support before you put something like this
    into production. For development environments it should not be a
    problem.
    "Veera N. Subramanian" wrote:
    >
    Hi,
    We have successfully installed iPlanet 6.0 SP3 on solaris in a webless
    mode. But both Webserver and App. server are running in the same
    machine. Now we have a requirement, that one other group wants to share
    the same machine, wherein they want to install NAS 4.0 on the same
    machine.
    Is it possible to install both App. server on the machine, while sharing
    the webserver.
    I Would appreciate if any one can say, if this is doable and how.
    Thanks in advance
    Regards
    Veera--
    Han-Dat Luc ([email protected])
    Senior Consultant
    SUN Professional Services (iPlanet)
    iPlanet e-commerce Solutions
    Sun Microsystems Australia Pty Ltd

  • How nodemanager starts managed servers?

    Hello All,
    I'm facing strange issue with weblogic server. Currently i'm using WLS 8.1 SP 4 on solaris 9 server.
    To start weblogic i have customize the script such that when server goes on reboot it will pick the startweblogic.sh script from /opt/bin and start the weblogic. Where as in startweblogic.sh i have mentioned -
    NMLOG=/u001/wls8/bea/user_projects/prodDomain/logs/optbin/nodemanager.log; export WL8NMLOG
    ADMINLOG=/u001/wls8/bea/user_projects/prodDomain/logs/optbin/adminserver.log; export WL8ADMINLOG
    CLUSTERLOG=/u001/wls8/bea/user_projects/prodDomain/logs/optbin/cluster.log; export WL8CLUSTERLOG
    cd /u001/wls8/bea/weblogic81/server/bin/
    su weblogic -c "./startNodeManager.sh >> $NMLOG 2>&1" &
    sleep 60
    cd /u001/wls8/bea/user_projects/prodDomain/
    su weblogic -c "./startadminserver.sh >> $ADMINLOG 2>&1" &
    sleep 1200
    cd /u001/wls8/bea/user_projects/prodDomain/
    su weblogic -c "./startcluster.sh >> $CLUSTERLOG 2>&1" &
    Though the script works as expected till adminserver is UP/Running, but script doesn't wait for 1200 secs. to start cluster. Somehow nodemanager starts the managed servers immediately after the adminserver is UP.
    I have checked the nodemanager.properties file, there is nothing such mentioned. Also, from console i have unchecked the option of AutoStart for both managed servers.
    Can anyone tell me how nodemanager starts the managed servers automatically??
    Thanks,
    HK

    can you please tell me what is this .startCluster.sh script.
    is it your custom script?
    And the idea i have in my mind is that after
    cd /u001/wls8/bea/weblogic81/server/bin/
    su weblogic -c "./startNodeManager.sh >> $NMLOG 2>&1" &
    sleep 60
    cd /u001/wls8/bea/user_projects/prodDomain/
    su weblogic -c "./startadminserver.sh >> $ADMINLOG 2>&1" &
    sleep 1200
    you can give the command to start the individual managed servers like:
    cd /u001/wls8/bea/user_projects/prodDomain/
    su weblogic -c "./startManagedWebLogic.sh <arguments> >> $CLUSTERLOG 2>&1" &
    I think this way it will work....

  • How to start Multiple servers?

    Hi,
    plz explain How to start jboss Multiple servers at a time?where is the configure?

    I guess creating multiple server instances in jboss 5 and above versions have different approaches. Below are steps to create multiple server instances in jboss 5:
    [1]. Go to <jboss_home>/servers
    [2]. Copy and past detault instance with appropriate name, like "MyApp"
    [3]. Open <Jboss_home>/servers/MyApp//conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml
    [4]. Find line <parameter>${jboss.service.binding.set:ports-default}</parameter> and change "ports-default" ports-01/ports-02/ports-03 to assign ports 8108/8289/8380 respectively.
    Alternate solution is to use:
    ./run.sh -c node1 -b 0.0.0.0 -Djboss.service.binding.set=ports-01 -Djboss.messaging.ServerPeerID=1
    Hope this helps.
    -RMishra

  • How to sync 2 iPhones to same machine?

    I'm getting a new iPhone4 and my wife will likely inherit my older phone (3G). How do we both sync to the same machine/instance of iTunes? Do we simply have to be sure we're logged in as the right user in tunes before we sync or is there more.. or less(?) to this?
    Thanks!
    Jay

    Hello, we are in the same position. We both have a user account on our Macbook and that way, things never get confused. We have separate itunes accounts but when we want to share songs, videos etc, we put it into 'Shared folder' and you can access it from the other username. It seems to be very good at keeping the two separate.
    Good luck.
    Amy

  • How to start Managed Servers in Cluster in background

    I am new to weblogic. I have two managed servers each on two boxes, i need to start these managed servers in background.
    Thanks

    I got this error while starting Managed Server2 on machine A. Managed Server was started using the same command line with clean start. I am using JDK1.5.0_14
    eg., nohup ./startManagedWebLogic.sh Managed-mn2 http://localhost:7001 &
    <Dec 12, 2008 2:17:11 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    [thread 43 also had an error]#
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGBUS
    Exception (0xa)in thread " at pc=0xff390c50CompilerThread0, pid=21379" , tid=1java.lang.OutO
    fMemoryError: requested
    34416#
    bytes# Java VM: Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode)
    for # Problematic frame:
    Chunk::new# . Out of swap space?
    C [libc_psr.so.1+0xc50]
    An error report file with more information is saved as hs_err_pid21425.log
    Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested 34416 bytes for Chunk::new. Out of swap space?
    Edited by: user10705269 on Dec 12, 2008 11:42 AM

  • Two presentation Servers on Same Machine

    I'm deploying my OBIEE in Oracle App Server on LINUX. I'd like to add a second presentation server pointing to a common RPD/BI Server. I see the following options:
    •     Using the same container I would just deploy the analytics folder a second time with a new name
    •     Create a second container and install presentation server (disabling or skipping the BI server)
    •     Install a new instance of OAS on the machine and install presentation server (disabling or skipping the BI server)
    Got any recommendations or best practices for me?
    Edited by: Thomas_Dodds on Apr 24, 2009 1:46 PM
    Edited by: Thomas_Dodds on Apr 24, 2009 2:28 PM

    For any interested - this is what I got from someone else who has done this - I will be trying this in the near future. I'll remind myself to update you on it.
    Choose options one - redeploy again into the same container, using a unique web.mxl file for each specifying different set of ports, use two different instanceconfig.xml files and modify the run-saw.sh to start/stop both instances.

  • How to start managed servers in parallel?

    Hello everyone,
    I am developing a wlst script that would start all managed servers on a particular machine (machine_name should be provided) from the admin server side. The script works fine. However, since there were some domains that have 25+ managed servers for a single machine, it takes some time to start all of them in sequence. Is there a way to trigger a start command for each of the managed servers that I need to start just like what the node manager does when i start them through admin console? Something like triggering parallel processes running on background. Here is my code snippet:
                    #It focuses only on all managed servers defined within the listen address provided
                    if (server_listenaddress == managed_server) and (server_name != admin_name):
                            if (execute_command == "start"):
                                    print 'About to start',server_name,'on',server_listenaddress,'...'
                                    print
                                    try:
                                            start(server_name)
                                            print
                                            state(server_name,'Server')
                                            print
                                            nmDisconnect()
                                    except WLSTException:
                                            print 'Server instance',server_name,'could not be started. Skipping this server..'
                                            print
                                            state(server_name,'Server')
                            else:
                                    print 'About to stop',server_name,'on',server_listenaddress,'...'
                                    print
                                    try:
                                            shutdown(server_name,force='true')
                                            print
                                            state(server_name,'Server')
                                            print
                                    except WLSTException:
                                            print 'Server instance',server_name,'could not be stopped. Skipping this server..'
                                            print
                                            state(server_name,'Server')
                    elif (server_name == admin_name):
                            #It skips to restart the admin server since this script it only to restart managed servers.
                            print 'Server',server_name,'is the admin server. Skipping...'
                            print
                    else:
                            print 'Managed server',server_name,'is not configured with',managed_server,'listen address. Skipping this server..'
    Thanks in advance for all your help!!
    regards,
    Rustan

    Works perfectly, thanks!!!
    In summary, I just modified this line:
    start(server_name)
    and changed it to:
    start(server_name, block='false')
    In Admin Console, it is set to false but in WLST, it is defaulted to true so we need to explicitly set it to false.
    "Oracle Fusion Middleware Oracle WebLogic Scripting Tool, block is always set to true."

  • How to start Oracle database in solaris Machine

    I installed Oracle database in my solaris machine. Everything went fine .. I was able to install it and test the database if it's working or not.
    Something happened that made me shut down and restart the solaris machine, the problem is that Oracle is not running, so I have to start it manually, and I'm not sure how to do that ... Is there a way to start Oracle automatically once the solaris machine is started ...
    I'm using the SSH Secure Shell Client to configure and install everything into the solaris machine ..

    Here is the work around for starting oracle instance automatically.
    1) logon the system as root user.
    2) under /etc/init.d/ directory, create a file name oraclestart(name the file to what you feel comfortable). eg: /etc/init.d/oraclestart.
    with the following content:
    #!/bin/sh
    # Created by Henry Nguyen
    # Date 10/11/2005
    # Script to automatic start and stop oracle instances on server
    ORACLE_HOME=/export/home/oracle/product/9.2.0.1.0 (diffrent on your system)
    if [ ! -f $ORACLE_HOME/bin/dbstart || ! -f $ORACLE_HOME/bin/dbshut ]; then
    echo missing oracle start/stop script
    exit 1
    fi
    case "$1" in
    'start')
    su - oracle -c '$ORACLE_HOME/bin/dbstart'
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl start'
    'stop')
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl stop'
    su - oracle -c '$ORACLE_HOME/bin/dbshut'
    esac
    3) create 2 soft link as following:
    ln -s /etc/init.d/oraclestart /etc/rc2.d/S99oraclestart
    ln -s /etc/init.d/oraclestart /etc/rc0.d/K10oraclestart
    Note the S99 and K10: that are Solaris priorities to when start and stop an oracle instance and those letter must be capitalized.
    Hope this will help you

  • WLS61-WinNT:  Admin/Managed servers on same machine with NodeManager?

    Hi,
    I'm trying to set up a development environment with a Admin server
    that controls at least one Managed server. I can start the Admin
    server (7001) successfully, and "startNodeManager" seems to work fine
    on the default port 5555. No clustering is being done. Only
    DefaultWebApp is available.
    I'm starting "setEnv" and "startWebLogic" from
    C:\dev\bea\wlserver6.1\config\devdomain
    and "startNodeManager" from
    C:\dev\bea\wlserver6.1\config
    I have a Machine, "devmachine", assigned to port 5555 (thus attaching
    it to the NodeManager) using the default config files.
    I have 2 Servers created:
    "adminserver", which listens on port 7001 (no great surprise), and
    "devserver", which listens on port 7011. I have also tried
    "devserver" on port 5555.
    DefaultWebApp has chosen both Servers.
    When I go to the Console, right-click on "devserver", and select
    "Start this server...", I get the "Are you sure?" page.
    Clicking "Yes", I get messages on the "startNodeManager" console:
    <Date><Info><Nodemanager@localhost:5555><WindowsProcessControl: online
    successfully invoked on server 'devserver', pid: 488>
    This sounds good, but the console browser returns:
    java.lang.NoClassDefFoundError: weblogic/Server
    Exception in thread "main"
    <Date><Info><Nodemanager@localhost:5555><WindowsProcessControl: online
    successfully invoked on server 'devserver', pid: 488>
    StartNodeManager's output confirms that "weblogic.jar" is in the
    classpath.
    It's location is: .\lib\weblogic.jar
    Clicking on the Servers branch confirms that 'devserver:7011' is not
    running, and that 'adminserver:7001' is running.
    I believe that I'm making some sort of simple configuration error, but
    I have been unable to find any documentation that clarifies this
    problem.
    Has anyone gotten this Admin/Managed combination to work on 1 physical
    machine? If so, am I simply not matching ports in the config.xml file
    correctly? Am I missing something obvious?
    Many Thanks!
    Jeff

    Hi,
    It may not be obvious, but a clean install seemed to solve it. A
    wacky config issue? The world may never know...or care. :>
    Jeff
    [email protected] (Jeff Murdoch) wrote in message news:<[email protected]>...
    Hi,
    I'm trying to set up a development environment with a Admin server
    that controls at least one Managed server. I can start the Admin
    server (7001) successfully, and "startNodeManager" seems to work fine
    on the default port 5555. No clustering is being done. Only
    DefaultWebApp is available.
    I'm starting "setEnv" and "startWebLogic" from
    C:\dev\bea\wlserver6.1\config\devdomain
    and "startNodeManager" from
    C:\dev\bea\wlserver6.1\config
    I have a Machine, "devmachine", assigned to port 5555 (thus attaching
    it to the NodeManager) using the default config files.
    I have 2 Servers created:
    "adminserver", which listens on port 7001 (no great surprise), and
    "devserver", which listens on port 7011. I have also tried
    "devserver" on port 5555.
    DefaultWebApp has chosen both Servers.
    When I go to the Console, right-click on "devserver", and select
    "Start this server...", I get the "Are you sure?" page.
    Clicking "Yes", I get messages on the "startNodeManager" console:
    <Date><Info><Nodemanager@localhost:5555><WindowsProcessControl: online
    successfully invoked on server 'devserver', pid: 488>
    This sounds good, but the console browser returns:
    java.lang.NoClassDefFoundError: weblogic/Server
    Exception in thread "main"
    <Date><Info><Nodemanager@localhost:5555><WindowsProcessControl: online
    successfully invoked on server 'devserver', pid: 488>
    StartNodeManager's output confirms that "weblogic.jar" is in the
    classpath.
    It's location is: .\lib\weblogic.jar
    Clicking on the Servers branch confirms that 'devserver:7011' is not
    running, and that 'adminserver:7001' is running.
    I believe that I'm making some sort of simple configuration error, but
    I have been unable to find any documentation that clarifies this
    problem.
    Has anyone gotten this Admin/Managed combination to work on 1 physical
    machine? If so, am I simply not matching ports in the config.xml file
    correctly? Am I missing something obvious?
    Many Thanks!
    Jeff

  • How to start RMI Server Jar on server?

    Im using RMI, I have two jar files. One Server Jar which contains rmi server, registry start code and all methods which performs action on database .
    I put this jar file on tomcat web-apps directory.
    Another jar is containing User Interface code, which runs on client side.
    for performing any action server jar needs to be run all the time and RMI Registry always needs to be started so that client can communicate with database.
    How can i execute this server jar from client ?

    You can't execute the server from the client. The question doesn't begin to make sense. The server has to be already running for the client to have anything to connect to. You have to organise something at the server side to start it. And putting JAR files into the web apps directory doesn't accomplish that. You could write a Servlet or a listener that starts the RMI server when it's initialised, and stops it when destroyed. If you have to run it inside Tomcat at all, which isn't necessarily a good idea.

  • How to start managed servers simultaneously using WLST?

    Hi folks,
    I am trying to write a simple script to provide a simple way to bounce my env, I am pretty much done. However, my script now starts (and stops) the managed servers sequentially which is not what I wanted.
    I am wondering if there is a way to start (and stop) the managed servers within a domain in parallel as I can definitely do that using Admin Console.
    I do have an idea in mind:
    Write a simple python script to start/stop a single managed server, then use another shell script to trigger the python script in background mode.
    But I think this approach is really ugly, and am wondering if there is a native way to do that in WLST.
    Thanks for your repose in advance.

    This does not solve my problem, what I am trying to do is to being a an indefinite about of managed servers at the same time, not all the managed servers.
    For example, suppose I have 5 clusters in a domain, and there are 3 servers in each cluster. I might want to bring up all the major servers first at the same time,
    which mean to bring up one server in each cluster at the same time.
    Please help.

  • How to start multiple sessions on same computer with same engine?

    Hello,
    I want connect to the same firefox process from multiple remote connections.
    In another words I connect to linux server from >=2 connections with Windows/Linux X server . I started firefox process.
    When I create new tab (from those connections) it's created from process, but showing in different Xservers.
    PS:
    Sorry for my English.

    Please see the options for the command line command: [https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#-remote_remote_command]

Maybe you are looking for

  • HT201442 My phone wont restore. It is showing error 3194. How do I fix this?

    My battery went flat. I charged the phone (Iphone 5) up again and tried to open using my fingerprint. Got a message that I needed to enter the PIN because it was restarting. Entered the PIN - a number engraved on my mind for years - but it would not

  • Issues connecting BizTalk 2013 WCF to Microsoft CRM 2011 using ADFS

    I have a Microsoft CRM 2011 instance I'm trying to connect to from BizTalk 2013 using WCF. The CRM instance is using ADFS based security and basic "domain/user" "password" security. The OrganizationService has the following policy in the WSDL. <wsp:P

  • A Question About Firmware For Creative MuVo TX

    1. How Can I Take Backup Of My Orginal Firmware From My Player ? My Firmware version Is .20, And I Want To Take Backup Of It Before Upgrading It To .24. 2. What Is The Worst Condition If The Firmware Upgrade Is Halted By Any Error Or By Some Problems

  • PLM Web UI Validation Tool

    I am trying to restrict action owners where they should only be able to access to the report of his/her own action they are authorized to execute, not sure what is missing in the process, i tried to traced through ST01 but it did not checked any auth

  • Business Analyst

    Hi all,    I am doing my masters dissertation on " The impact of visual composer upon Business requirements gathering and evaluating the ability of Netweaver suite of tools will help the Business analyst role."     Can any one help me regarding this,