|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.client.net.JmsConnectionStubImpl
public class JmsConnectionStubImpl
Wraps a ServerConnection
.
Constructor Summary | |
---|---|
JmsConnectionStubImpl(ServerConnection connection,
org.exolab.jms.net.orb.ORB orb,
java.lang.String uri,
java.lang.String principal,
java.lang.String credentials)
Construct a new JmsConnectionStubImpl . |
Method Summary | |
---|---|
void |
close()
Closes the connection. |
ServerSession |
createSession(int acknowledgeMode,
boolean transacted)
Create a new session. |
java.lang.String |
getClientID()
Returns the client identifier |
long |
getConnectionId()
Returns the connection identifier |
void |
setClientID(java.lang.String clientID)
Sets the client identifier for this connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmsConnectionStubImpl(ServerConnection connection, org.exolab.jms.net.orb.ORB orb, java.lang.String uri, java.lang.String principal, java.lang.String credentials)
JmsConnectionStubImpl
.
connection
- the connection to delegate calls toorb
- the ORB to export objects withuri
- the URI to export objects onprincipal
- the security principal. May be null
credentials
- the security credentials. May be null
Method Detail |
---|
public long getConnectionId() throws javax.jms.JMSException
getConnectionId
in interface ServerConnection
javax.jms.JMSException
- for any JMS errorpublic java.lang.String getClientID() throws javax.jms.JMSException
getClientID
in interface ServerConnection
javax.jms.JMSException
- for any JMS errorpublic void setClientID(java.lang.String clientID) throws javax.jms.JMSException
setClientID
in interface ServerConnection
clientID
- the unique client identifier
javax.jms.JMSException
- if the JMS provider fails to set the
client ID for this connection due to
some internal error.
javax.jms.InvalidClientIDException
- if the JMS client specifies an invalid
or duplicate client ID.
java.lang.IllegalStateException
- if the JMS client attempts to set a
connection's client ID at the wrong time
or when it has been administratively
configured.public ServerSession createSession(int acknowledgeMode, boolean transacted) throws javax.jms.JMSException
createSession
in interface ServerConnection
acknowledgeMode
- indicates whether the consumer or the client will
acknowledge any messages it receives; ignored if
the session is transacted. Legal values are
Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, and
Session.DUPS_OK_ACKNOWLEDGE
.transacted
- indicates whether the session is transacted
javax.jms.JMSException
- for any JMS errorpublic void close() throws javax.jms.JMSException
close
in interface ServerConnection
javax.jms.JMSException
- for any JMS error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |