• 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

MDB not consuming message

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have configured an MDB in WAS 5 to listen to messages on MQ queue using listener ports.
Following is done:
1. Configured a listener port to define the connection factory and destinations
2. Configured MQ connection factory
3. Configured MQ destinations

Created a Queue in Websphere MQ queue and entered the same in MQ destinations above.

Everything is working fine i.e. when a message is "put" on MQ it triggers the onMessage and the appropriate action is taken, but after completion the message still remains on queue.

I have set the persistence option for queue to "non persistent".
Also the persistent and priority in MQ destinations configuration in WAS is set to queue defined.

Can anybody let me know what's missing or wrong?
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happens in the onMessage method? Does it go to completion? Is there anything in the activity.log or the System log?

Here's a tutorial that goes over setting up JMS in WAS 6:

Configuring JMS and MDBs in WebSphere 6.1

And here's a tutorial that demonstrates demonstrating how to configure WAS 5.x for the deployment of an ear with everything from a MDB to a CMP:

Deploying a Messaging Application in WAS 5.x

Perhaps you'll see something in those tutorials you may have missed.

Good luck.

-Cameron McKenzie
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Was it running within a transaction? If it is, unless you commited the transaction, the msg would remain in the queue.
 
Ashish Shinde
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont need a transaction?Can it be done without transaction?
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic