Calling onMessage()
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Usha_Ranganathan
Posted On:   Thursday, August 30, 2001 12:23 AM

Hello Everyone,
Am very new to EJB and JMS. I have to create a message log for all the processes in my system. I have a TraceBean implementing javax.ejb.MessageDrivenBean and javax.jms.MessageListener.
So in onMessage(Message) of TraceBean I create a FileOutputStream and write the Message into it.

So now when I call this function from my client file or various other Beans, I am not sure how to pass the Message on to this function.
I would request everyone for a solution to this problem or a suggestion if it can be done in a different method.

Thanks
Usha

Re: Calling onMessage()

Posted By:   sivaram_ponraj  
Posted On:   Thursday, September 6, 2001 07:15 PM

hello usha
Since u have implemented the message listener in your message driven bean it will always listen to the topic or queue for which it is subscribed.So now from your client u can send messages to that particular queue or topic which will be automatically received by the MessageDrivenBean

Sivaram
About | Sitemap | Contact