1 45 package org.exolab.jms.net.rmi; 46 47 import java.util.Map ; 48 49 import org.exolab.jms.net.connector.AbstractConnectionFactory; 50 import org.exolab.jms.net.connector.ConnectionManager; 51 import org.exolab.jms.net.connector.ConnectionRequestInfo; 52 import org.exolab.jms.net.connector.ResourceException; 53 import org.exolab.jms.net.uri.URI; 54 55 56 62 class RMIConnectionFactory extends AbstractConnectionFactory { 63 64 67 private static final String SCHEME = "rmi"; 68 69 70 76 public RMIConnectionFactory(RMIManagedConnectionFactory factory, 77 ConnectionManager manager) { 78 super(SCHEME, factory, manager); 79 } 80 81 92 protected ConnectionRequestInfo getConnectionRequestInfo(URI uri, 93 Map properties) 94 throws ResourceException { 95 RMIRequestInfo info; 96 if (properties != null) { 97 info = new RMIRequestInfo(uri, getProperties(properties)); 98 } else { 99 info = new RMIRequestInfo(uri); 100 } 101 return info; 102 } 103 104 } 105 | Popular Tags |