users@glassfish.java.net

Re: RA inbound connection to Session Bean

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Wed, 20 Aug 2008 15:09:28 +0530

> I'm just wondering is it possible to call Session Bean from Resource
> Adapter (JCA)?

Yes, (as Jagadish pointed out above) a message-driven bean could be used
to serve the job of a bean dispatcher. This is described in detail
(along with an illustrative example) in Chapter 13 of the Connectors 1.5
specification.

> (Without knowing about ejb-application from resource adapter)

Through this usage pattern, the RA is unaware of the target EJB and it
is only the MDB that is acting as the dispatcher that is aware of the EJB.

Thanks
--Siva.


glassfish_at_javadesktop.org wrote:
> you can submit it as a message that will be received by MDB and let the MDB call Session bean.
>
> http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts5.html
> "The onMessage method may call helper methods, or it may invoke a session or entity bean to process the information in the message or to store it in a database."
> [Message sent by forum member 'jr158900' (jr158900)]
>
> http://forums.java.net/jive/thread.jspa?messageID=294157
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>