RE: Calling EJB From a Servlet..

2001-09-12 Thread Lou Farho
The servlet is running on orion so you don't need to elaborate on the context. This should get your ejb: Context context = new InitialContext(); // Get home interface CommandHome cHome = (CommandHome)context.lookup("Command"); // Create a c

Auto-reply: RE: Calling EJB From a Servlet..

2001-09-12 Thread ORAPOST
the same machine as I'm testing this saught of workability. So I guess domain name won't be needed and if yes could you elaborate on domain name you are talking about Regards Prashant -Original Message- From: The elephantwalker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September

RE: Calling EJB From a Servlet..

2001-09-11 Thread Prashant Gaikwad
egards Prashant -Original Message- From: The elephantwalker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 4:28 PM To: Orion-Interest Subject: RE: Calling EJB From a Servlet.. First, if the servlet and ejb are in the same application, you don't need to use properties to ini

Re: Calling EJB From a Servlet..

2001-09-11 Thread Kesav Kumar
If you are trying to get the ejb which deployed in another application You lookup should be directly the JNDI name of the ejb. context.lookup("ejb/HelloHome"); instead of java:comp/env/xxx. If your EJB in the same application then only you can lookup from the env. - Original Message -

RE: Calling EJB From a Servlet..

2001-09-11 Thread David Libke
Prashant, You cannot initialize the context within the servlet. Use web.xml with the following entries with your values: theName theValue The description theContextParam com.the.TypeOfResource CONTAINER|SERVLET

RE: Calling EJB From a Servlet..

2001-09-11 Thread The elephantwalker
First, if the servlet and ejb are in the same application, you don't need to use properties to initialize your contextbut if you did, it looks like you left off the domain in the properties. Regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE