org.exolab.jms.net.connector
Interface Connection


public interface Connection

A Connection represents an application-level handle that is used by a client to access the underlying physical connection. The actual physical connection associated with a Connection instance is represented by a ManagedConnection instance.

Version:
$Revision: 1.2 $ $Date: 2005/11/16 12:32:49 $
Author:
Tim Anderson
See Also:
ManagedConnection

Method Summary
 void close()
          Close this connection, releasing any allocated resources.
 URI getLocalURI()
          Returns the local address that this connection is bound to
 URI getRemoteURI()
          Returns the remote address to which this is connected
 Response invoke(Request request)
          Invoke a method on a remote object
 

Method Detail

invoke

public Response invoke(Request request)
                throws java.lang.Throwable
Invoke a method on a remote object
Parameters:
request - the request
Returns:
the result of the invocation
Throws:
java.lang.Throwable - for any transport error

getRemoteURI

public URI getRemoteURI()
                 throws ResourceException
Returns the remote address to which this is connected
Returns:
the remote address to which this is connected
Throws:
ResourceException - for any error

getLocalURI

public URI getLocalURI()
                throws ResourceException
Returns the local address that this connection is bound to
Returns:
the local address that this connection is bound to
Throws:
ResourceException - for any error

close

public void close()
           throws ResourceException
Close this connection, releasing any allocated resources.
Throws:
ResourceException - for any error.


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.