|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.client.http.HttpJmsConnectionStub
public class HttpJmsConnectionStub
Used to create OpenJmsSessions to the server. It gets the new Session Id assigned by the server and returns a HttpJmsSessionStub.
HttpClient
Constructor Summary | |
---|---|
HttpJmsConnectionStub(org.exolab.core.ipc.IpcIfc connection,
java.lang.String clientId,
java.lang.String connectionId)
Construct an instance of this class with the specified id's. |
Method Summary | |
---|---|
void |
close()
Send a close request to the server. |
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()
Return the client connection id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpJmsConnectionStub(org.exolab.core.ipc.IpcIfc connection, java.lang.String clientId, java.lang.String connectionId) throws javax.jms.JMSException
connection
- The http connection to the server.clientId
- This clients unique id.connectionId
- This objects connection identifier.
javax.jms.JMSException
- If the connection has failed.Method 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
close
in interface JmsConnectionStubIfc
javax.jms.JMSException
- On failure to close connection.public java.lang.String getConnectionId()
getConnectionId
in interface JmsConnectionStubIfc
public void destroy()
JmsConnectionStubIfc
destroy
in interface JmsConnectionStubIfc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |