tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "May" <may14...@hotmail.com>
Subject Re: any EJB calling example available?
Date Mon, 03 Sep 2001 09:36:31 GMT

Thank you Asheesh.
So my question is where is the right place to
do the lookup and stuff when using struts.

At the moment, I'm doing them in the Action class,
Is there a recommended way calling EJB from struts?

Thanks you.
May

----- Original Message -----
From: "asheesh" <asheesh@q2aindia.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, August 30, 2001 1:02 PM
Subject: Re: any EJB calling example available?


> hi,
>
>     i think this will help
>
>     Context ctx= new InitialContext();
>      Object obj= ctx.lookup("JNDIName-OF ur Bean");
>      beanHome = (BeanHome)
PortableRemoteObject.narrow(obj,BeanHome.class);
>      beanRemote = beanHome.create();
>
> pls consider that BeanHome.class & BeanRemote should be in ur servlet
> classpath
>
> regards
> asheesh
>
>
> ----- Original Message -----
> From: May <may14000@hotmail.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Thursday, August 30, 2001 8:36 AM
> Subject: any EJB calling example available?
>
>
> > Hello !
> > Is there any struts calling EJB examples available ?
> > Or any relating documents.
> > I would greatly appreciate if you could let me know.
> >
> > Thanks in advance.
> > May
>
>

Mime
View raw message