S
Shinya Koizumi
I noticed from this paragraph below if i want to talk to ejb container with
the specific port
I can specify the initialport number like what the following said. However,
once client establishes
the connection to the container, server talkes back to the client using
random port number.
I want to know if there is a way to use a fixed port instead of random ones.
From EJB Faq.
The default naming service port in the app server is 3700. If the naming
service is running on a different port, you'll need to set it via
the -Dorg.omg.CORBA.ORBInitialPort property when starting the client JVM.
You can double-check the actual naming service port for a given server
instance by looking in the server instace's domain.xml for "orb-listener-1".
Alternatively, check the Applications..Configuration..ORB..IIOP Listeners
section of the admin GUI for orb-listener-1.
Assuming the server's naming service port is 9876 and the client is on the
same host as the server :
java -Dorg.omg.CORBA.ORBInitialPort=9876
-classpath
$APS_HOME/lib/appserv-rt.jar:$APS_HOME/lib/javaee.jar:/home/user1/myclasses
acme.MyClient
SK
the specific port
I can specify the initialport number like what the following said. However,
once client establishes
the connection to the container, server talkes back to the client using
random port number.
I want to know if there is a way to use a fixed port instead of random ones.
From EJB Faq.
The default naming service port in the app server is 3700. If the naming
service is running on a different port, you'll need to set it via
the -Dorg.omg.CORBA.ORBInitialPort property when starting the client JVM.
You can double-check the actual naming service port for a given server
instance by looking in the server instace's domain.xml for "orb-listener-1".
Alternatively, check the Applications..Configuration..ORB..IIOP Listeners
section of the admin GUI for orb-listener-1.
Assuming the server's naming service port is 9876 and the client is on the
same host as the server :
java -Dorg.omg.CORBA.ORBInitialPort=9876
-classpath
$APS_HOME/lib/appserv-rt.jar:$APS_HOME/lib/javaee.jar:/home/user1/myclasses
acme.MyClient
SK