> From:    Ram Komarraju <[EMAIL PROTECTED]>
> Subject: Publishing messages from a SessionBean using a messaging service
>
> Can I publish/send messages using a messaging service such as TIBCO's
> Rendezvous
>  (I am actually using Rendezvous version 5.x) from a SessionBean?
>
EJB 2.0 spec discusses the integration of EJB with Java Messaging Service.
 It talks about a stateless Bean, which will be invoked asynchronously at the
arrival of JMS messages.

Assuming you get a trial version EJB 2.0 container (Visibroker 5.x?), you
would still require the EJB client (TIBCO Rendezvous) to use JNDI locate and
send JMS messages to a message-driven Bean.  Does TIBCO Rendezvous support
JNDI based object location and JMS based message delivery?

The other option I would consider in EJB 1.1 is to use an intermediate agent
in CORBA, which would be placed between TIBCO and the EnterpriseBean.  Here I
am assuming TIBCO will be able to send/receive messages to an IIOP object,
which will communicate to an Enterprise Bean.

Disclaimer:  I haven't used TIBCO before, but only seen others using it.

> My guess is that I cannot subscribe/receive messages from a messaging
> service
> with a callback in a SessionBean because messaging callbacks are
> asynchronous
> and will not be going through the container.  But, that I should be able to
> publish/send messages from within the methods of SessionBeans.
>
I think your assumption is correct.  Based on the same restriction, I
suggested an intermediate agent using IIOP.

> Thanx for your help,
> Ram.

--
Thank you
Subra
Subramaniam S - Director
Viveka Software Technologies Pvt Ltd.
Manandi Plaza 3rd floor, 3 St Marks road
Bangalore 560001
http://www.thinktankpartners.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to