Mark,
Thanks for your reply. It does help and also raises another question or two or three...
Background:
My EJB.jar is currently deployed to a separate Managed Server named EjbServer and the Web Application is on another managed server named WebAppServer. Currently the two managed servers are on the same physical machine but I imagine in the real world they may be on separate machines(?), where each one will be registered with an Administration server as a managed server?
Right now I am looking up my EJB like this from
Servlet:
//move to ServiceLocator
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://192.168.1.3:8002");
Context ctx = new InitialContext(ht);
Object h = ctx.lookup("HelloWorldEJB");
home = (IHelloWorldHome)
PortableRemoteObject.narrow(h, IHelloWorldHome.class);
My question is if my EJB's are on a separate physical machine from the Web Application how can I deploy both Web App Module .war and the EJB Module in a single .ear file? Is there some deployment descriptor in the EAR file that specifies which managed server will host the EJB Module and which managed server will host the Web App Module? Does the EAR file get deployed to or by the Adminsitration Server? Very confusing right now! Thanks for your help.
Stu