|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.client.rmi.RmiJmsConnectionStub
This class is repsonsible for returning a reference to a remote JMS connection. If it cannot access get a remote connection then the constructor will fail with a JMSException
Field Summary | |
protected RemoteJmsServerConnectionIfc |
_delegate
This is a reference to the remote connection stub that is constructed during object initialisation. |
protected RmiJmsServerStub |
_owner
This is a reference to the server stub that created this connection |
java.lang.String |
MAX_RETRY_PROP
System property to override the max retries for failed rmi requests. |
java.lang.String |
RETRY_INTERVAL_PROP
System property, which specifies the interval between successive retries. |
Constructor Summary | |
RmiJmsConnectionStub(RemoteJmsServerConnectionIfc connection,
int pingInterval,
RmiJmsServerStub server)
Instantiate an instance of this class with the specified remote object. |
Method Summary | |
void |
close()
Close the connection and deallocate any resources. |
JmsSessionStubIfc |
createSession(int ackMode,
boolean transacted)
Create a session. |
void |
destroy()
Release all local resources used by this object. |
java.lang.String |
getConnectionId()
Retrieve the identity of this conection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected volatile RemoteJmsServerConnectionIfc _delegate
protected RmiJmsServerStub _owner
public final java.lang.String MAX_RETRY_PROP
public final java.lang.String RETRY_INTERVAL_PROP
Constructor Detail |
public RmiJmsConnectionStub(RemoteJmsServerConnectionIfc connection, int pingInterval, RmiJmsServerStub server) throws javax.jms.JMSException
RemoteJmsServerConnectionIfc
- pingInterval
- interval between client pingsserver
- the server creating the connectionjavax.jms.JMSException
- Method Detail |
public JmsSessionStubIfc createSession(int ackMode, boolean transacted) throws javax.jms.JMSException
JmsConnectionStubIfc
createSession
in interface JmsConnectionStubIfc
org.exolab.jms.client.JmsConnectionStubIfc
ackMode
- the session ack modetransacted
- true
if it is a transacted sessionjavax.jms.JMSException
- for any JMS errorpublic void close() throws javax.jms.JMSException
JmsConnectionStubIfc
close
in interface JmsConnectionStubIfc
org.exolab.jms.client.JmsConnectionStubIfc
javax.jms.JMSException
- for any JMS errorpublic java.lang.String getConnectionId() throws javax.jms.JMSException
JmsConnectionStubIfc
getConnectionId
in interface JmsConnectionStubIfc
org.exolab.jms.client.JmsConnectionStubIfc
javax.jms.JMSException
- for any JMS errorpublic void destroy()
JmsConnectionStubIfc
destroy
in interface JmsConnectionStubIfc
org.exolab.jms.client.JmsConnectionStubIfc
javax.jms.JMSException
- for any JMS error
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |