• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hi

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone,

I am using a JBoss App.Server. and MySQL DB.

I know very little about JMS...(writing ptp clients, standalone)

Now I have to send a message to the queue everytime insert happens in a particular table of my db.

I have to write a listener which can get the messages async. and process the data.

Now all I need to know is that how do I send a message to the queue whenever an insert happens.. please help

Cheers
Ram
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can write a message-driven bean whose type is associated with the queue (in the DD). A MDB is a listener as it implements the javax.jms.MessageListener interface. When the message is received by the JMS Server, the container will pull an instance of the MDB from the pool to service the request. The instance's onMessage() method is invoked and the message passed in. It is from this method that you will process the message data.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic