ufis
Banned for trolling & disrupting the forum
- Joined
- May 4, 2007
- Messages
- 1,088
- Reaction score
- 1
Can anyone help me with how to access an EJB / DataSource on a WebSphere Application Server from a client that is running Sun's java.
So far I have:
With this I have added multiple jars from the WAS installation to my classpath, one at a time to fix whetever the current Exception was I was getting.
But this seems to be a never ending process.
Any help is appreciated.
So far I have:
PHP:
Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://someserver:1234");
env.put("org.omg.CORBA.ORBClass", "com.ibm.CORBA.iiop.ORB");
Context ctx = new InitialContext("path/to/the/ejb");
Object o = ctx.lookup(ejbURL);
But this seems to be a never ending process.
Any help is appreciated.