cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Java system properties for individual communication channels

Former Member
0 Kudos

Hello,

I need to set system properties in my JMS sender adapter with the current JMS provider I'm using(Glassfish 2.1).

In a standalone Java class that does a JNDI lookup to retrieve the JMS resources, I set up the properties:

System.getProperties().setProperty("org.omg.CORBA.ORBInitialHost", hostName);

System.getProperties().setProperty("org.omg.CORBA.ORBInitialPort", port);

to be able to successfully connect to GF AS. I get the same error in PI communication channel as the one I get in my standalone application if I don't set these values.

I know how to set system properties from the PI config tool that is general for the system, but this is not appropriate as the hostName and port variables will change for each communication channel.

Is there any way to set up these properties individually for each comm.chan. in NWA or Config Tool?

Or is there any other way to get JNDI lookup working without setting these properties?

Thanks for the input.

Kind regards,

S. Gökhan TOPÇ

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have done a little bit of more research in Java forums regarding setting these system properties. It looks like setting them is the only option to be able to connect to a Glassfish AS running on a seperate server, as the driver classes check this property at runtime to determine the host.

So I am basically left with the only choice of finding a convenient way to set these properties properly per communication channel, but unfortunately, I still am not able to find how.

Kind Regards,

S. Gökhan TOPÇ

Former Member
0 Kudos

I have done a little bit of more research in Java forums regarding setting these system properties. It looks like setting them is the only option to be able to connect to a Glassfish AS running on a seperate server, as the driver classes check this property at runtime to determine the host.

So I am basically left with the only choice of finding a convenient way to set these properties properly per communication channel, but unfortunately, I still am not able to find how.

Kind Regards,

S. Gökhan TOPÇ