• 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
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

A MDB Question

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pretty basic. If i send a message to a MDB and an exception gets thrown while performing an operation, depending upon my trans-attribute setting, things will be rolled back or otherwise?.Now does the message that I sent get back to the message queue? and will it retry the whole thing again later @ some other point of time?
If it does is there any timeout and max tries setting?
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the message sending code is a part of a transaction and some error occurs which results in Tx rollbacvk, the message is not delivered.
 
Pradeep bhatt
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
 
author
Posts: 469
20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If 'Required' transaction attribute is specified for the onMessage(javax.jms.Message) method ONLY then the message will be redelivered to the MDB instance. In case of MDBs designed with BMT no message is re-delivered because message delivery is never a part of transaction in case of BMTs.
regards
ashish sarin
 
krithika desai
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks ashish, pradeep,
that helps. I guess the app servers do allow us to configure the number of retries then?.
 
Ashish Sarin
author
Posts: 469
20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think so. It is probably handled by the Application Server behind the scenes.
regards
ashish sarin
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic