You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Frank Griffin <fg...@maine.rr.com> on 2002/02/18 16:15:42 UTC
Re: How to get Session bean published using axis????
Vinit Kumar wrote:
> I have to make a stateless sesson bean made available as web
> service.
I'm trying to do somewhat the same thing. The simplest way is, as you wrote,
to create a class that implements your EJB's local or remote interface with
pass-through methods, and have the constructor or some static code do the
JNDI lookup and obtain the local/remote object reference. Then register that
class as a SOAP service.
What I'm trying to do is create such a class that will service arbitrary
EJBs. To do that, you need to use a Proxy/InvocationHandler to mimic the
interface associated with a given EJB; at least that's what I plan to try...
Re: How to get Session bean published using axis????
Posted by cleve <cl...@yahoo.com>.
put a name to this, the class you need to write is a business delegate. a
plain vanilla java class that encapsulates all aspects EJB. it think this
pattern is going to become increasingly more popular was more and more web
services are published.
if you've got a login to http://theserverside.com here is the link to the
pattern:
http://www.theserverside.com/resources/review/ejbpatterns-businessdelegate-s
ept9.zip
otherwise, its free to register
cheers,
cleve
----- Original Message -----
From: "Frank Griffin" <fg...@maine.rr.com>
To: <ax...@xml.apache.org>
Sent: Monday, February 18, 2002 3:15 PM
Subject: Re: How to get Session bean published using axis????
> Vinit Kumar wrote:
>
> > I have to make a stateless sesson bean made available as web
> > service.
>
> I'm trying to do somewhat the same thing. The simplest way is, as you
wrote,
> to create a class that implements your EJB's local or remote interface
with
> pass-through methods, and have the constructor or some static code do the
> JNDI lookup and obtain the local/remote object reference. Then register
that
> class as a SOAP service.
>
> What I'm trying to do is create such a class that will service arbitrary
> EJBs. To do that, you need to use a Proxy/InvocationHandler to mimic the
> interface associated with a given EJB; at least that's what I plan to
try...
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com