This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS - few conceptual questions  RSS feed

Milos Cu
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my first post here, so hello everyone.

I have message producer SLSB (A) and a consumer MDB (B). Session mode is set to CLIENT_ACKNOWLEDGE in A.
A writes message to the queue and B get his onMessage() method invoked. Something went wrong during processing request from message in B (message is successfully delivered, but some other business method fails) and Message.acknowledge() is not invoked.

Will this message be redelivered to B without involvement of A? (if app server is configured for redelivery after timeout of n milliseconds)
I tried to simulate this on JBoss 4 and B.onMessage() is invoked only once, there is no redelivery.
Am I missing the point here, maybe this isn't the way how redelivery is intended to be used?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!