|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.jms.client.rmi.RmiJmsConnectionStub
public class 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 connection
javax.jms.JMSException| Method Detail |
|---|
public JmsSessionStubIfc createSession(int ackMode,
boolean transacted)
throws javax.jms.JMSException
JmsConnectionStubIfc
createSession in interface JmsConnectionStubIfcackMode - the session ack modetransacted - true if it is a transacted session
javax.jms.JMSException - for any JMS error
public void close()
throws javax.jms.JMSException
JmsConnectionStubIfc
close in interface JmsConnectionStubIfcjavax.jms.JMSException - for any JMS error
public java.lang.String getConnectionId()
throws javax.jms.JMSException
JmsConnectionStubIfc
getConnectionId in interface JmsConnectionStubIfcjavax.jms.JMSException - for any JMS errorpublic void destroy()
JmsConnectionStubIfc
destroy in interface JmsConnectionStubIfc
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||