Skip to main content

system properties vs ctx env: org.omg.CORBA.ORBInitialHost

No replies

Hello there,
I have problem with my standalone client. When I specify
as a system parameter, then it looks like there is no way of
overriding that using Hashtable property in initial ctx:

Hashtable ctxEnv = new Hashtable();
ctxEnv.put("org.omg.CORBA.ORBInitialHost", "host2");
Context ctx = new InitialContext(ctxParams);

When there is no system property, then ctx will perform lookups in
host2, but when system property is set to, for ex., host1, then
context will ignore ctxEnv and do lookups in host1, even though it was
explicitly told to use host2.

Is that a bug or system properties are to override whatever explicit
ctxEnv parameters are provided?

I am using Sun Java 6 update 10 and Glassfish v2ur2.

Witold Szczerba

I have just noticed strange thing: our customer has Java 6u4 +
Glassfish v2ur1 (build b09d-fcs). It looks like ctxEnv takes
precedence over system properties which is exactly the other way round
comparing to what I have on Java 6u10 + Glassfish v2ur2 (build

To unsubscribe, e-mail:
For additional commands, e-mail: