org.objectweb.joram.client.jms.local
Class LocalConnection

java.lang.Object
  extended byorg.objectweb.joram.client.jms.local.LocalConnection
All Implemented Interfaces:
ConnectionItf

public class LocalConnection
extends java.lang.Object
implements ConnectionItf


Constructor Summary
LocalConnection(java.lang.String userName, java.lang.String password)
           
 
Method Summary
 void close()
          Closes the connection.
 Driver createDriver(Connection cnx)
          Creates a driver for providing the connection with server's replies.
 void send(AbstractJmsRequest request)
          Sends a JMS request to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalConnection

public LocalConnection(java.lang.String userName,
                       java.lang.String password)
                throws javax.jms.JMSException
Method Detail

send

public void send(AbstractJmsRequest request)
          throws javax.jms.IllegalStateException
Description copied from interface: ConnectionItf
Sends a JMS request to the server.

Specified by:
send in interface ConnectionItf
Throws:
javax.jms.IllegalStateException - If the connection failed to route the sending because it is broken or not established.

createDriver

public Driver createDriver(Connection cnx)
Description copied from interface: ConnectionItf
Creates a driver for providing the connection with server's replies.

Specified by:
createDriver in interface ConnectionItf
Parameters:
cnx - The calling Connection instance.

close

public void close()
Description copied from interface: ConnectionItf
Closes the connection.

Specified by:
close in interface ConnectionItf


Copyright ? 2004 Scalagent - All rights reserved