on 01-17-2010 7:45 AM
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Ç
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Ç
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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Ç
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.