|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.objectweb.jonas_jms.JConnection
Common methods used in JQueueConnection and JTopicConnection.
| Field Summary | |
protected boolean |
closed
|
protected boolean |
globaltx
|
protected static java.lang.String |
INTERNAL_USER_NAME
|
protected JConnectionFactory |
jcf
|
protected java.util.LinkedList |
sessionlist
|
protected static javax.transaction.TransactionManager |
tm
|
protected java.lang.String |
user
|
protected javax.jms.Connection |
xac
|
| Constructor Summary | |
JConnection(JConnectionFactory jcf,
java.lang.String user)
Constructor |
|
| Method Summary | |
void |
close()
When this method is invoked it should not return until message processing has been orderly shut down. |
java.lang.String |
getClientID()
Get the client identifier for this connection. |
javax.jms.ExceptionListener |
getExceptionListener()
Get the ExceptionListener for this Connection. |
javax.jms.ConnectionMetaData |
getMetaData()
Get the meta data for this connection. |
java.lang.String |
getUser()
Return the user associated to this connection |
protected void |
sessionClose(javax.jms.Session s)
A non transacted session has beem closed |
protected boolean |
sessionOpen(javax.jms.Session s)
A new non transacted session has been opened |
void |
setClientID(java.lang.String clientID)
Set the client identifier for this connection. |
void |
setExceptionListener(javax.jms.ExceptionListener listener)
Set an exception listener for this connection. |
void |
start()
Start (or restart) a Connection's delivery of incoming messages. |
void |
stop()
Used to temporarily stop a Connection's delivery of incoming messages. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.jms.Connection xac
protected boolean closed
protected java.lang.String user
protected boolean globaltx
protected static javax.transaction.TransactionManager tm
protected JConnectionFactory jcf
protected java.util.LinkedList sessionlist
protected static final java.lang.String INTERNAL_USER_NAME
| Constructor Detail |
public JConnection(JConnectionFactory jcf,
java.lang.String user)
| Method Detail |
protected boolean sessionOpen(javax.jms.Session s)
protected void sessionClose(javax.jms.Session s)
public java.lang.String getUser()
public void close()
throws javax.jms.JMSException
close in interface javax.jms.Connectionjavax.jms.JMSException - - if JMS implementation fails to return the client ID for this
Connection due to some internal
public java.lang.String getClientID()
throws javax.jms.JMSException
getClientID in interface javax.jms.Connectionjavax.jms.JMSException - - if JMS implementation fails to return the client ID for this
Connection due to some internal
public void setClientID(java.lang.String clientID)
throws javax.jms.JMSException
setClientID in interface javax.jms.ConnectionclientID - - the unique client identifierjavax.jms.JMSException - - general exception if JMS implementation fails to set the client
ID for this Connection due to some internal error.InvalidClientIDException - - if JMS client specifies an invalid or duplicate client id.java.lang.IllegalStateException - - if attempting to set a connection's client identifier at
the wrong time or when it has been administratively configured.
public javax.jms.ConnectionMetaData getMetaData()
throws javax.jms.JMSException
getMetaData in interface javax.jms.Connectionjavax.jms.JMSException - - general exception if JMS implementation fails to get the Connection
meta-data for this Connection.
public javax.jms.ExceptionListener getExceptionListener()
throws javax.jms.JMSException
getExceptionListener in interface javax.jms.Connectionjavax.jms.JMSException - - general exception if JMS implementation fails to get
the Exception listener for this Connection.
public void setExceptionListener(javax.jms.ExceptionListener listener)
throws javax.jms.JMSException
setExceptionListener in interface javax.jms.Connectionlistener - - the exception listener.javax.jms.JMSException - - general exception if JMS implementation fails to set
the Exception listener for this Connection.
public void start()
throws javax.jms.JMSException
start in interface javax.jms.Connectionjavax.jms.JMSException - - if JMS implementation fails to start the message
delivery due to some internal error.
public void stop()
throws javax.jms.JMSException
stop in interface javax.jms.Connectionjavax.jms.JMSException - - if JMS implementation fails to start the message
delivery due to some internal error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||