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

MDB not consuming message  RSS feed

 
Ashish Shinde
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • 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?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
vu lee
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I dont need a transaction?Can it be done without transaction?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!