|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.client.mipc.IpcJmsConnectionStub
public class IpcJmsConnectionStub
Used to create OpenJmsSessions to the server. It gets the new Session Id assigned by the server and returns a IpcJmsSessionStub.
IpcJmsServerStub
,
IpcJmsSessionStub
,
Client
Constructor Summary | |
---|---|
IpcJmsConnectionStub(IpcJmsServerStub server,
org.exolab.core.ipc.IpcIfc connection,
java.lang.String clientId,
java.lang.String connectionId,
org.exolab.jms.client.mipc.IpcJmsMessageListener listener)
Construct a new IpcJmsConnectionStub |
Method Summary | |
---|---|
void |
close()
Close the connection and deallocate any resources. |
JmsSessionStubIfc |
createSession(int ackMode,
boolean transacted)
Send a session connection message. |
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 |
Constructor Detail |
---|
public IpcJmsConnectionStub(IpcJmsServerStub server, org.exolab.core.ipc.IpcIfc connection, java.lang.String clientId, java.lang.String connectionId, org.exolab.jms.client.mipc.IpcJmsMessageListener listener)
IpcJmsConnectionStub
server
- the owner of this instanceconnection
- the connection to the server.clientId
- this client's unique id.connectionId
- this object's connection identifier.listener
- the listener for managing session MessageListenersMethod Detail |
---|
public JmsSessionStubIfc createSession(int ackMode, boolean transacted) throws javax.jms.JMSException
createSession
in interface JmsConnectionStubIfc
ackMode
- the ack mode for the sessiontransacted
- true
if the session is transacted
javax.jms.JMSException
- on failure to create a session.public void close() throws javax.jms.JMSException
JmsConnectionStubIfc
close
in interface JmsConnectionStubIfc
javax.jms.JMSException
- for any JMS errorpublic java.lang.String getConnectionId() throws javax.jms.JMSException
JmsConnectionStubIfc
getConnectionId
in interface JmsConnectionStubIfc
javax.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 |