1 7 package org.jboss.jms.client.standard; 8 9 import javax.jms.JMSException ; 10 import javax.naming.NamingException ; 11 import javax.naming.Reference ; 12 import javax.naming.StringRefAddr ; 13 14 import org.jboss.jms.client.ConnectionDelegate; 15 import org.jboss.jms.client.ImplementationDelegate; 16 import org.jboss.jms.client.JBossConnectionFactory; 17 import org.jboss.remoting.Client; 18 19 25 public class StandardImplementation 26 implements ImplementationDelegate 27 { 28 30 32 34 35 private Client client; 36 37 39 public StandardImplementation(Client client) 40 throws JMSException 41 { 42 this.client = client; 43 } 44 45 47 49 public ConnectionDelegate createConnection(String userName, String password) throws JMSException 50 { 51 return null; 53 } 54 55 public Reference getReference() throws NamingException 56 { 57 return new Reference 58 ( 59 JBossConnectionFactory.class.getName(), 60 new StringRefAddr ("locatorURI", client.getInvoker().getLocator().getLocatorURI()), 61 StandardImplementationFactory.class.getName(), 62 null 63 ); 64 } 65 66 68 70 72 74 } 75 | Popular Tags |