I know this is a common question because I've searched the forum and read through peoples problems and solutions, but I'm still not understanding, and I wondered if I could get some advice.
I have an application client in the form of standalone java classes which calls a remote EJB on a WAS server. I understand i can make a JNDI call to a server and port and I know I have to set the InitialContext, but I don't know what i should set it to.
Lots of people seem to suggest "org.jnp.interfaces.NamingContextFactory" but I'm not sure if this is something appserver specific like JBoss.
What would people advise?
posted 13 years ago
Ok, answering my own question here - worked out that the app needs to run as an application client (rather than invoking main(string args) like a normal java app.
Just noticed the mindboggling jvm options i am going to need - this is going to cause me a big problem since my code will be running inside of another java application (IBM extended search) - don't have control of the jvm and really not sure how i am going to get round this.
The fact that you need all this stuff just to make a jndi call and get back an ejb strikes me as tight coupling. Or have I misunderstood?