|
Hello,
is there anyone who can help me with an answer ?
I have an session bean deployed in a WebLogic
server (4.5) and I want to call its methods from a remote client (a stand alone
java app.). If I include in the client's CLASSPATH the WebLogic's classes
everything will be ok.
But when I try to lookup the bean from a client
which doesn't have the WebLogic server installed on it, I get of course, the
following exception:
Root exception is java.lang.ClassNotFoundException:
weblogic.jndi.WLInitialCont
extFactory]javax.naming.NoInitialContextException: Cannot instantiate class: web logic.jndi.WLInitialContextFactory at javax.naming.spi.NamingManager.getDefaultInitialContextFactory(Naming Manager.java:720) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:7 68) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169 ) at javax.naming.InitialContext.<init>(InitialContext.java:146) at Client.getInitialContext(Client.java:112) at Client.main(Compiled Code) What is *the minimum* set of classes from an EJB
server which I have to copy on a client machine (except the EJB's related
classes) ? Is there any way for a remote client to call the EJB's methods
just having access to the JNDI service ? Do I have to install the WebLogic EJB
server (or to copy MB of jars) on every client ??!
Thank you,
sabin.
|
