tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "asheesh" <ashe...@q2aindia.com>
Subject Re: any EJB calling example available?
Date Tue, 15 May 2001 10:14:57 GMT
hi,

I am not sure if there is some recommended way or not , but it depends on u
to decide about the calling mechanism and consider other performance issues
according to EJB specifications and J2EE architecture.

cheers
asheesh

----- Original Message -----
From: May <may14000@hotmail.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, September 03, 2001 5:36 PM
Subject: Re: any EJB calling example available?


>
> 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