It's a bit difficult to include my test-project, besides, i think it has more to do with Glassfish version/configuration then with my code.
About the command line sysprops, i doubt it, but i tried to set the properties i set in solution 3) (cfr my initial post) to set as system properties.
For instance: System.setProperty("org.omg.CORBA.OMGInitialHost", "10.1.1.2");
and then: InitialContext ctx = new InitialContext(System.getProperties);
But still, no luck.
[Message sent by forum member 'jandebeule']
http://forums.java.net/jive/thread.jspa?messageID=476516