activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From IBeaumont <>
Subject Session.SESSION_TRANSACTED in example code wrong??
Date Fri, 20 May 2011 17:17:54 GMT
I'm looking at the sample that comes with ActiveMQ.

It does...
connection.createSession(true, Session.SESSION_TRANSACTED);

Reading the docs...,%20int%29

that isn't a valid value for create session.  Valid values are:

Looking at the defined values...
public static final int 	AUTO_ACKNOWLEDGE 	1
public static final int 	CLIENT_ACKNOWLEDGE 	2
public static final int 	DUPS_OK_ACKNOWLEDGE 	3
public static final int 	SESSION_TRANSACTED 	0

it is therefore passing an invalid value of zero to the createSession.

So is the sample wrong, and therefore also ActiveMQ wrong for accepting it?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message