Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Messaging issues in Websphere Application Server 7.0.0 - onMessage() called several times

Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

We are working with MDBs in EJB3 on WAS 7.0.0.

We have messaging requirements for which we have configured 4 Queues. We are using Default Messaging Provider embedded within WAS and used Activation Specifications and JCA Adapter for the same.

The issue with the configured MDB is , for each message sent by the application the corresponding MDB is spawned 5 times and therefore the corresponding job is triggered 5 times. i.e. I can see the onMessage() is called 5 times in the logs.Though the message is sent only once.

We have the default value set for the “failure retry count” property which is 5. When we change this to 1 , then only one MDB is spawned and the job runs only once and is completed successfully. But we want to keep the “failure retry count” value 5 to handle failover.

Any pointers would be of great help.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic