Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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: 5000
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?
 
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic