Re: Stateless Session Beans and JAX-RPC

From: Webb Morris <>
Date: Wed, 26 May 2004 18:26:56 -0700 (PDT)

Doug's Example depends on the container that comes with the examples (Tomcat, I think it was,
really can't remember). I understand the frustration in finding an example with detail for
putting a web service in front of a stateless session bean. I may be way off track here, but I
seem to recall that the spec left it up to the container to provide this ability (meaning you do
it differently for every container you deploy to). Plus, I think this part of the spec is only in
the 2.0 EJB spec which I'm not sure has been finalized yet, but I do know is not widely
implemented. The company I work for recently moved to WebLogic, and this functionality is fairly
well supported, but it does require some WebLogic specific build tasks and doesn't involve
JAX-RPC, although I have written a JAX-RPC client to test the deployment.

Just my 2c


--- Doug Kohlert <Doug.Kohlert_at_Sun.COM> wrote:
> Hopefully this will help:
> Gabriel Bauman wrote:
> >Good afternoon,
> >
> >I am trying to expose a stateless session bean as a SOAP web service.
> >
> >Can anyone point me to an end-to-end, config-file-by-config-file,
> >dependency-by-dependency guide that explains the correct way to expose a
> >stateless session bean's methods over JAX-RPC?
> >
> >I have used JAX-RPC successfully a number of times to expose non-EJB
> >classes using the JAX-RPC servlet provided by the JWSDK. However, I am
> >seeing a number of hints that it is somehow possible to expose a session
> >bean directly by defining a "web service interface" in the ejb-jar.xml
> >file that defines the bean, and including a mapping xml file in the
> >deployable WAR file. If this is indeed possible, it would be an absolute
> >godsend.
> >
> >It appears that this functionality has been rolled into the EJB spec,
> >but the documentation I have found in my Googling has been confusing.
> >The IBM-provided JSR-109 reference implementation has proven difficult
> >to use, due to its reliance on xrpcc (isn't that deprecated?) and
> >Windows batch files (I don't have a Windows machine). I can't seem to
> >find a guide that lays out the process in a concise, coherent manner
> >without escaping into the use of vendor-specific UI-based tools.
> >
> >Any help would be most gratefully received.
> >
> >
> >
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Doug Kohlert
> Sun Microsystems, Inc.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.

To unsubscribe, e-mail:
For additional commands, e-mail: