assigning CORBA port to listen

R

Robert Dodier

Hello,

I am working with a program (namely the JADE agent platform
plus a plug-in; I didn't write any of it) which uses org.omg.CORBA
classes in a message transport scheme.
I notice via netstat that the port which is opened for listening
for CORBA requests appears to be allocated at random
(anything above 32768 apparently).
I would like to make the port fixed. Is there a method call in
some CORBA class or a system property or something I can
assign in order to specify the listening port?
I've looked at various documents and searched the web but
came up empty handed. Thanks for any information.

best

Robert Dodier
 
T

Tom Anderson

I am working with a program (namely the JADE agent platform plus a
plug-in; I didn't write any of it) which uses org.omg.CORBA classes in a
message transport scheme. I notice via netstat that the port which is
opened for listening for CORBA requests appears to be allocated at
random (anything above 32768 apparently). I would like to make the port
fixed. Is there a method call in some CORBA class or a system property
or something I can assign in order to specify the listening port? I've
looked at various documents and searched the web but came up empty
handed. Thanks for any information.

I suspect it's specific to the ORB you're using. Which ORB are you using?

There is a standard property called org.omg.CORBA.ORBInitialPort, which
you can set on your ORB in a number of standard ways - see:

http://java.sun.com/javase/6/docs/api/org/omg/CORBA/ORB.html

But i think that's the port the ORB uses to look for a naming service,
rather than the one it listens for IIOP on.

tom
 
R

Robert Dodier

Hi,

for the record, it appears that the property
com.sun.CORBA.ORBServerPort specifies the port
on which the ORB listens. It can be specified on the
command line, e.g. java -Dcom.sun.CORBA.ORBServerPort=1234

By the way I am using the Sun ORB (bundled in the JDK).

Robert Dodier
 
T

Tom Anderson

for the record, it appears that the property com.sun.CORBA.ORBServerPort
specifies the port on which the ORB listens. It can be specified on the
command line, e.g. java -Dcom.sun.CORBA.ORBServerPort=1234

By the way I am using the Sun ORB (bundled in the JDK).

Thanks for letting us know! Shame this isn't standardised across ORBs, or
document anywhere obvious.

tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top