Package org.apache.cxf.transport.jms.util

Examples of org.apache.cxf.transport.jms.util.UserCredentialsConnectionFactoryAdapter


        String password = jndiConfig.getConnectionPassword();
        try {
            ConnectionFactory cf = jmsConfig.getJndiTemplate().
                lookup(connectionFactoryName, ConnectionFactory.class);
            if (userName != null) {
                UserCredentialsConnectionFactoryAdapter uccf = new UserCredentialsConnectionFactoryAdapter();
                uccf.setUsername(userName);
                uccf.setPassword(password);
                uccf.setTargetConnectionFactory(cf);
                cf = uccf;
            }
           
            return cf;
        } catch (NamingException e) {
View Full Code Here

TOP

Related Classes of org.apache.cxf.transport.jms.util.UserCredentialsConnectionFactoryAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.