org.exolab.jms.client.http
Class HttpJmsConnectionStub
java.lang.Object
|
+--org.exolab.jms.client.http.HttpJmsConnectionStub
- All Implemented Interfaces:
- JmsConnectionStubIfc
- public class HttpJmsConnectionStub
- extends java.lang.Object
- implements JmsConnectionStubIfc
Used to create OpenJmsSessions to the server. It gets the new Session Id
assigned by the server and returns a HttpJmsSessionStub.
- Version:
- $Revision: 1.5 $ $Date: 2003/08/25 03:33:19 $
- Author:
- Jim Mourikis
- See Also:
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 |
HttpJmsConnectionStub
public HttpJmsConnectionStub(org.exolab.core.ipc.IpcIfc connection,
java.lang.String clientId,
java.lang.String connectionId)
throws javax.jms.JMSException
- Construct an instance of this class with the specified id's.
These id's are used when creating sessions.
- Parameters:
connection
- The http connection to the server.clientId
- This clients unique id.connectionId
- This objects connection identifier.- Throws:
javax.jms.JMSException
- If the connection has failed.
createSession
public JmsSessionStubIfc createSession(int ackMode,
boolean transacted)
throws javax.jms.JMSException
- Send a session connection message. Create a new HttpJmsSessionStub
if this createSession request was successfull.
- Specified by:
createSession
in interface JmsConnectionStubIfc
- Parameters:
ackMode
- - the ack mode for the sessiontransacted
- - true if the session is transacted- Returns:
- JmsSessionStubIfc The Session interface.
- Throws:
javax.jms.JMSException
- On failure to create a session.
close
public void close()
throws javax.jms.JMSException
- Send a close request to the server.
- Specified by:
close
in interface JmsConnectionStubIfc
- Throws:
javax.jms.JMSException
- On failure to close connection.
getConnectionId
public java.lang.String getConnectionId()
- Return the client connection id.
- Specified by:
getConnectionId
in interface JmsConnectionStubIfc
- Returns:
- the client connection id.
destroy
public void destroy()
- Description copied from interface:
JmsConnectionStubIfc
- Release all local resources used by this object.
- Specified by:
destroy
in interface JmsConnectionStubIfc
- Following copied from interface:
org.exolab.jms.client.JmsConnectionStubIfc
- Throws:
javax.jms.JMSException
- for any JMS error
Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.