|
JTR 5.0 API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjtr.config.jms.JMSSession
public class JMSSession
This is the object oriented representation of a session
element of the jtr.xml configuration file.
It logically maps itself to a javax.jms.Session.
| Field Summary | |
|---|---|
static java.lang.String |
GENERIC_SESSION
Mnemonic identifier for defining a generic-session |
static java.lang.String |
QUEUE_SESSION
Mnemonic identifier for defining a queue-session |
static java.lang.String |
TOPIC_SESSION
Mnemonic identifier for defining a topic-session |
static java.lang.String |
XA_QUEUE_SESSION
Mnemonic identifier for defining an xa-queue-session |
static java.lang.String |
XA_SESSION
Mnemonic identifier for defining an xa-session |
static java.lang.String |
XA_TOPIC_SESSION
Mnemonic identifier for defining an xa-topic-session |
| Constructor Summary | |
|---|---|
JMSSession()
The default constructor. |
|
| Method Summary | |
|---|---|
int |
getAckMode()
Get the JMS ACK mode. |
java.lang.String |
getProperty()
Get the name of the runner property that will hold the actual JMS session once created |
boolean |
getTransacted()
Get the JMS session's transacted attribute |
java.lang.String |
getType()
Get the session type. |
static boolean |
isGenericSession(JMSSession jmsSession)
States whether the given JMSSession is a generic session
or not |
static boolean |
isQueueSession(JMSSession jmsSession)
States whether the given JMSSession is a queue session or
not |
static boolean |
isTopicSession(JMSSession jmsSession)
States whether the given JMSSession is a topic session or
not |
static boolean |
isXaQueueSession(JMSSession jmsSession)
States whether the given JMSSession is an XAQueue session
or not |
static boolean |
isXaSession(JMSSession jmsSession)
States whether the given JMSSession is an XA session or
not |
static boolean |
isXaTopicSession(JMSSession jmsSession)
States whether the given JMSSession is an XATopic session
or not |
void |
setAckMode(int mode)
Set the JMS ACK mode. |
void |
setProperty(java.lang.String property)
Set the name of the runner property that will hold the actual JMS session once created |
void |
setTransacted(boolean t)
Set the JMS session's transacted attribute |
void |
setType(java.lang.String type)
Set the type of the session. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String QUEUE_SESSION
public static final java.lang.String TOPIC_SESSION
public static final java.lang.String GENERIC_SESSION
public static final java.lang.String XA_SESSION
public static final java.lang.String XA_QUEUE_SESSION
public static final java.lang.String XA_TOPIC_SESSION
| Constructor Detail |
|---|
public JMSSession()
| Method Detail |
|---|
public void setType(java.lang.String type)
queue | topic.
type - The session typepublic java.lang.String getType()
queue | topic.
public void setProperty(java.lang.String property)
property - The property namepublic java.lang.String getProperty()
public void setTransacted(boolean t)
t - Is the session transacted?public boolean getTransacted()
public void setAckMode(int mode)
mode - The ACK modepublic int getAckMode()
public static boolean isQueueSession(JMSSession jmsSession)
JMSSession is a queue session or
not
jmsSession - JMSSession
public static boolean isTopicSession(JMSSession jmsSession)
JMSSession is a topic session or
not
jmsSession - JMSSession
public static boolean isGenericSession(JMSSession jmsSession)
JMSSession is a generic session
or not
jmsSession - JMSSession
public static boolean isXaSession(JMSSession jmsSession)
JMSSession is an XA session or
not
jmsSession - JMSSession
public static boolean isXaQueueSession(JMSSession jmsSession)
JMSSession is an XAQueue session
or not
jmsSession - JMSSession
public static boolean isXaTopicSession(JMSSession jmsSession)
JMSSession is an XATopic session
or not
jmsSession - JMSSession
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
The JTR Project is licensed under GPL version 2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||