| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.exolab.jms.client.mipc.IpcJmsServerStub
This class is repsonsible for opening an ipc connection to the server and creating IpcJmsConnections.
IpcJmsConnectionStub, 
DisconnectionEventListener| Constructor Summary | |
| IpcJmsServerStub()Default constructor for serialization | |
| IpcJmsServerStub(java.util.Hashtable env)The constructor has a collection of environment variables which it uses to construct a connection to the remote server | |
| IpcJmsServerStub(java.lang.String host,
                 int port)Instantiate an instance of this stub with the specified host and port numbers | |
| Method Summary | |
|  void | close() | 
|  void | closed(IpcJmsConnectionStub connection) | 
| protected  org.exolab.core.mipc.MultiplexConnectionIfc | createClientConnection(java.lang.String serverAddress,
                       java.lang.String internalServerAddress,
                       int port)Create a multiplexed connection to the server | 
|  JmsConnectionStubIfc | createConnection(java.lang.String clientId,
                 java.lang.String username,
                 java.lang.String password)Create a connection to the JMS Server. | 
|  void | disconnected(org.exolab.core.mipc.MultiplexConnectionIfc connection) | 
|  java.lang.String | getServerAddress()Returns the server host | 
|  int | getServerPort()Returns the server port | 
|  void | setExceptionListener(javax.jms.ExceptionListener listener)Set the exception listener so that the client can be notified of client disconnection events. | 
|  void | setServerAddress(java.lang.String host)Set the server host. | 
|  void | setServerPort(int port)Set the server port. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public IpcJmsServerStub()
public IpcJmsServerStub(java.util.Hashtable env)
env -  
public IpcJmsServerStub(java.lang.String host,
                        int port)
host - server host addressport - server port number| Method Detail | 
public JmsConnectionStubIfc createConnection(java.lang.String clientId,
                                             java.lang.String username,
                                             java.lang.String password)
                                      throws javax.jms.JMSException
createConnection in interface JmsServerStubIfcclientId - the identity of clientusername - the client usernamepassword - the client passwordjavax.jms.JMSException -  public void setServerAddress(java.lang.String host)
host - the name of the hostpublic java.lang.String getServerAddress()
public void setServerPort(int port)
port - the server port numberpublic int getServerPort()
public void disconnected(org.exolab.core.mipc.MultiplexConnectionIfc connection)
disconnected in interface org.exolab.core.mipc.DisconnectionEventListenerpublic void setExceptionListener(javax.jms.ExceptionListener listener)
JmsServerStubIfcsetExceptionListener in interface JmsServerStubIfcorg.exolab.jms.client.JmsServerStubIfclistener - the exception listenerpublic void close()
public void closed(IpcJmsConnectionStub connection)
protected org.exolab.core.mipc.MultiplexConnectionIfc createClientConnection(java.lang.String serverAddress,
                                                                             java.lang.String internalServerAddress,
                                                                             int port)
                                                                      throws java.lang.Exception
serverAddress - the address of the serverinternalServerAddress - internal server address. May be null.port - the port number to usejava.io.IOException - if the connection cannot be established| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||