|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.server.mipc.IpcJmsServer
This class implements the JmsServerIfc and provides an IPC-based JMS Server.
org.exolab.jms.server.JmsServer,
org.exolab.jms.server.mipc.IpcJmsReceiver| Fields inherited from interface jrun.jms.core.server.JmsServerIfc |
Name |
| Constructor Summary | |
IpcJmsServer()
Retrieve the server paramaters from the config file and initialise the server, with an appropriate port number and callback handle. |
|
| Method Summary | |
void |
addConnection(JmsServerSession session,
MultiplexConnectionIfc connection)
Add a new connection for this client. |
void |
bindConnectionFactories(javax.naming.Context context)
Bind any factory object specified in the configuration file to the specified JNDI context. |
void |
connected(MultiplexConnectionIfc newConnection)
ConnectionNotifierIfc method implementation. |
protected MultiplexConnectionServerIfc |
createServer(int port)
Create an normal connection. |
protected java.lang.String |
getClientClassName()
Get the client side mipc implementation. |
protected Logger |
getLogger()
Return a reference to the logger |
protected java.lang.String |
getScheme()
Returns the connector scheme for this server. |
void |
init()
This method is called to initialise the JMS service.Control returns when the server has exited. |
static IpcJmsServer |
instance()
Return the one and only instance of this object if it exists otherwise, create it, then return the instance. |
void |
removeAllConnections()
Remove all managed client connections |
void |
removeConnection(JmsServerSession session)
Remove this sessions connection |
void |
start()
Start the Ipc service in its own thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IpcJmsServer()
throws java.io.IOException
java.io.IOException - if the connection server cannot be created| Method Detail |
public void init()
JmsServerIfcinit in interface JmsServerIfcjrun.jms.core.server.JmsServerIfcFailedToInitialiseServerException - public void start()
public void connected(MultiplexConnectionIfc newConnection)
connected in interface ConnectionNotifierIfcjrun.jms.core.kernel.mipc.ConnectionNotifierIfcnewConnection - The new connection that was established.
public void addConnection(JmsServerSession session,
MultiplexConnectionIfc connection)
throws java.io.IOException
session - the sessionconnection - the connection to the clientjava.io.IOException - if a connection error occurspublic void removeConnection(JmsServerSession session)
session - the sessionpublic void removeAllConnections()
public void bindConnectionFactories(javax.naming.Context context)
throws FailedToBindFactoriesException
JmsServerIfcIf it cannot bind the connection factories then an exception is thrown.
bindConnectionFactories in interface JmsServerIfcjrun.jms.core.server.JmsServerIfccontext - context to bind factory objectsFailedToBindFactoriesException - public static IpcJmsServer instance()
protected MultiplexConnectionServerIfc createServer(int port)
throws java.io.IOException
port - The port number to use.java.io.IOException - if the server fails to initialise the ip serviceprotected java.lang.String getScheme()
protected Logger getLogger()
protected java.lang.String getClientClassName()
String value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||