|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.client.net.JmsServerStubImpl
public class JmsServerStubImpl
This class is responsible for returning a reference to the remote JMS server.
Constructor Summary | |
---|---|
JmsServerStubImpl(java.util.Map properties,
java.util.Map environment)
Construct a new JmsServerStubImpl . |
Method Summary | |
---|---|
ServerConnection |
createConnection(java.lang.String clientID,
java.lang.String user,
java.lang.String password)
Creates a connection with the specified user identity. |
void |
disconnected(org.exolab.jms.net.connector.Caller caller)
Notifies that a caller has been disconnected. |
void |
setExceptionListener(javax.jms.ExceptionListener listener)
Set the exception listener so that the client can be notified of client disconnection events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmsServerStubImpl(java.util.Map properties, java.util.Map environment)
JmsServerStubImpl
.
properties
- properties to initialise this withenvironment
- the environment used. May be null
Method Detail |
---|
public ServerConnection createConnection(java.lang.String clientID, java.lang.String user, java.lang.String password) throws javax.jms.JMSException
Connection.start
method is explicitly called.
If clientID
is specified, it indicates the pre-configured
client identifier associated with the client
ConnectionFactory
object.
createConnection
in interface ServerConnectionFactory
clientID
- the pre-configured client identifier. May be
null
.user
- the caller's user name. May be null
password
- the caller's password. May be null
javax.jms.InvalidClientIDException
- if the JMS client specifies an invalid
or duplicate client ID.
javax.jms.JMSException
- if the JMS provider fails to create the
connection due to some internal error.
javax.jms.JMSSecurityException
- if client authentication fails due to an
invalid user name or password.public void setExceptionListener(javax.jms.ExceptionListener listener)
setExceptionListener
in interface JmsServerStubIfc
listener
- the exception listenerpublic void disconnected(org.exolab.jms.net.connector.Caller caller)
disconnected
in interface org.exolab.jms.net.connector.CallerListener
caller
- the caller that was disconnected
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |