Thanks..
I thought that i already tried that approach, but perhaps not with all the necessary .jar files. Cause this works perfectly for both datasource, ejb3.0.. now:
props.setProperty("java.naming.factory.initial",
"com.sun.enterprise.naming.SerialInitContextFactory");
// props.setProperty("java.naming.factory.url.pkgs",
// "com.sun.enterprise.naming");
// props.setProperty("java.naming.factory.state",
// "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
props.setProperty("org.omg.CORBA.ORBInitialHost", "...");
props.setProperty("org.omg.CORBA.ORBInitialPort", "..");
Though i wonder about the naming.factory.url.pkgs and .state. Seems to work if i uncomment them. Are these just recommended or ?
Laban
[Message sent by forum member 'laban' (laban)]
http://forums.java.net/jive/thread.jspa?messageID=252694