Hi Yair,
yes - only create consumer and session once and reuse them - see this
for more details: http://activemq.apache.org/how-do-i-use-jms-efficiently.html
cheers,
Rob
On 17 Jan 2010, at 11:56, yair wrote:
Thanks for your answer, Rob.
I want to make sure what I do is correct:
I create a connection factory, and create a connection from it.
Then each time i want to pop a message, I create a
session(transacted=true),
create a consumer, receive, and commit or rollback. For each message
popped,
I am creating a session and consumer again.
Is that ok? can I create a session only once? and a consumer?
thanks
Yair
--
View this message in context:
http://old.nabble.com/Visibility-timeout-feature-tp27163663p27198059.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Rob Davies
http://twitter.com/rajdavies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/