Forums Register Login

JMS session, transacted or not?

+Pie Number of slices to send: Send
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,
+Pie Number of slices to send: Send
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 .
+Pie Number of slices to send: Send
Also ,for transacted attribute ,if it is true .then acknowledgeMode does not matter ..But if transacted attribute is false , AcknowledgeMode is to be supplied .
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 5720 times.
Similar Threads
create session object from ConnectionFactory
JMS Creating a QueueSession on QueueConnection
JMS - Creation of QueueSession with different Parameters
J2ee memory issue
transaction when multiple database connections are open
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:49:42.