tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "asheesh" <ashe...@q2aindia.com>
Subject Re: How to call EJB's from Servlet in a portable J2EE way?
Date Fri, 28 Sep 2001 02:42:01 GMT

I am not sure as i never came across any documentation regarding that. and a
t my end everything is working without ant entry to <ejb-ref>.

cheers
asheesh
----- Original Message -----
From: Vel Periasamy <Vel.Periasamy@AEGIS.net>
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, September 27, 2001 9:13 PM
Subject: RE: How to call EJB's from Servlet in a portable J2EE way?


> Thanks for the clarification, Asheesh.
>
> One more thing, what's the significance of ejb-ref elements in web.xml?
> Do you have to specify them?
>
> Thanks again.
> -Velmurugan Periasamy.
>
>
> -----Original Message-----
> From: asheesh [mailto:asheesh@q2aindia.com]
> Sent: Wednesday, September 26, 2001 12:46 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: How to call EJB's from Servlet in a portable J2EE way?
>
>
> Earlier in tomcat 3.1 i use to get context by following
>
> Context ctx = new InitialContext();
> Object obj = ctx.lookup("mybean");
>
> Then in tomcat 3.2.3 i follow following technique, which i suppose is appl
ic
> able to all j2ee compliant servers
>
>         Hashtable env = new Hashtable();
>         env.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.inpris
e.
> j2ee.jndi.CtxFactory" );
>         env.put( javax.naming.Context.URL_PKG_PREFIXES, "com.inprise.j2ee.
jn
> di" );
>         Context ctx = new InitialContext(env);
>         Object obj = ctx.lookup("mybean");
>  ---- This is reference to the Borland AppServer, pls do check for the JBO
SS
> implementation of it, u may have to include few class files in ur class pa
th
> .
>
> regards
> asheesh
>
> ----- Original Message -----
> From: Vel Periasamy <Vel.Periasamy@AEGIS.net>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Thursday, September 27, 2001 4:48 AM
> Subject: How to call EJB's from Servlet in a portable J2EE way?
>
>
> > We're planning to build a Servlet/JSP application(using Tomcat).
> > We might also use EJB's if required (using JBoss).
> >
> > What's the best portable J2EE way to call EJB's on JBoss from a
> > servlet in Tomcat? We have Tomcat 3.2.3.
> >
> > I understand this should be done by acquiring an initial context
> > and doing a lookup for the EJB. But does Tomcat support the initial
> > context stuff? Also, I want to know how we should configure the
> > ejb-ref/ejb-local-ref elements in web.xml(Are these mandatory?)
> >
> > Thanks for your help.
> > -----------------------------------------------------------
> > Velmurugan Periasamy
> > vel.periasamy@aegis.net
> > http://www.aegis.net
> > Personal Home Page: http://www.geocities.com/velmurugan_p
> > -----------------------------------------------------------
> >
> >
> >
>


Mime
View raw message