1 45 package org.exolab.jms.net.rmi; 46 47 import java.rmi.RemoteException ; 48 49 import org.exolab.jms.net.connector.Connection; 50 import org.exolab.jms.net.connector.Request; 51 import org.exolab.jms.net.connector.Response; 52 import org.exolab.jms.net.uri.URI; 53 54 55 63 class RMIConnection implements Connection { 64 65 68 private RMIManagedConnection _connection; 69 70 71 76 public RMIConnection(RMIManagedConnection connection) { 77 _connection = connection; 78 } 79 80 87 public Response invoke(Request request) throws RemoteException { 88 return _connection.invoke(this, request); 89 } 90 91 96 public URI getRemoteURI() { 97 return _connection.getRemoteURI(); 98 } 99 100 105 public URI getLocalURI() { 106 return _connection.getLocalURI(); 107 } 108 109 } 110 111 | Popular Tags |