Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing Message Reception  RSS feed

 
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need a JMS mesage receptor which listens to particular topic . I have put the a infininite loop.

Is the implementation ok . The message will be sent to message handlers which will inturn invoke buisness services . which are resource intensive and may take long time .So should i call the handlers from a thread in the handlers . Please suggest me some way to do it .

Thanks and regards,
Tirthankar Dutta Chaudhuri .
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into the MDB framework. Your MDB implements MessageDrivenBean and/or MessageListener. The container calls the onMessage() event when a message arrives, so you don't have to loop to pick up messages. You configure the number of instances of each listener to deploy, which amounts to the number of concurrent threads available for inbound messages.

I don't have direct hands-on experience with this (I sit next to the guy who does) so double check what I said against the doc.
[ February 13, 2006: Message edited by: Stan James ]
 
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ,
yes message listners are one on the options . but they have some problem in working in clustered envoirenment. so i was thinking of doing it this way.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!