• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS session, transacted or not?  RSS feed

 
Pat Short
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm looking for some advise on creating a JMS session. My JMS code only sends one messages at a time. What I'm wondering is when I create the JMS session using the API below what settings should I use.

{code}
createQueueSession(boolean transacted, int acknowledgeMode)
{code}

Because its a single send (one message at a time), does the transacted attribute matter? Also, is AUTO_ACKNOWLEDGE sufficient?

I want to provide the most reliable messaging possible.

Thanks,
 
Neha Kathuriaa
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Best practices is to use the following settings for QueueSession. But you can use any according to your requiremnt . Ususally , false is used to indicate that you are not creating a transactional session object. and AUTO_ACKNOWLEDGE indicates that the session will automatically acknowledge that the from a call .
 
Neha Kathuriaa
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also ,for transacted attribute ,if it is true .then acknowledgeMode does not matter ..But if transacted attribute is false , AcknowledgeMode is to be supplied .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!