Right before listing valid values, it says "ignored if the session is
transacted.", so any value is legal in that case. The person writing the
example probably though that Session.SESSION_TRANSACTED was more clear
than null.
On 5/20/2011 11:17 AM, IBeaumont wrote:
> I'm looking at the Vendor.java
@activemq.apache.org
Subject: Session.SESSION_TRANSACTED in example code wrong??
I'm looking at the Vendor.java sample that comes with ActiveMQ.
It does...
connection.createSession(true, Session.SESSION_TRANSACTED);
Reading the docs...
http://download.oracle.com/javaee/1.4/api/javax/jms/Connection
I'm looking at the Vendor.java sample that comes with ActiveMQ.
It does...
connection.createSession(true, Session.SESSION_TRANSACTED);
Reading the docs...
http://download.oracle.com/javaee/1.4/api/javax/jms/Connection.html#createSession%28boolean,%20int%29
that isn't a valid value for create ses