Message Driven Beans will be used for subscribing
("will" because the EJB 2.0 has not been released yet)
asynchronously to Topics. They were not designed to publish.
To publish on a Topic, use Stateless EJBs for example
with standard JMS.
(create a Topic, look it up with JNDI..etc..)
Max
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of laiq ahmad
Sent: 18 January 2001 20:13
To: [EMAIL PROTECTED]
Subject: Retrieve Data from Session Bean by Message Driven Bean
Hi,
I just want to retrive data from the database and
publish it on JMS I am using Entity bean to map to teh
diffrerent database tables and then encapsulating the
retrived Data in a Session bean and then Message
Driven Bean retrieve data from a session
bean and publish it in a Topic in JMS, i am using
publish/subscribe messaging.
Is this a good design please if so do help me with an
example and if not then what is teh best approach of
doing it.
laiq
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.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".
===========================================================================
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".