Search in sources :

Example 16 with JMSConfiguration

use of org.apache.cxf.transport.jms.JMSConfiguration in project jbossws-cxf by jbossws.

the class JMSEndpointOnlyDeploymentTestCase method setupProxy.

private void setupProxy(HelloWorld proxy) {
    JMSConduit conduit = (JMSConduit) ClientProxy.getClient(proxy).getConduit();
    JMSConfiguration config = conduit.getJmsConfig();
    config.setUserName(JBossWSTestHelper.getTestUsername());
    config.setPassword(JBossWSTestHelper.getTestPassword());
    Properties props = conduit.getJmsConfig().getJndiEnvironment();
    props.put(Context.SECURITY_PRINCIPAL, JBossWSTestHelper.getTestUsername());
    props.put(Context.SECURITY_CREDENTIALS, JBossWSTestHelper.getTestPassword());
}
Also used : JMSConfiguration(org.apache.cxf.transport.jms.JMSConfiguration) JMSConduit(org.apache.cxf.transport.jms.JMSConduit) Properties(java.util.Properties)

Example 17 with JMSConfiguration

use of org.apache.cxf.transport.jms.JMSConfiguration in project jbossws-cxf by jbossws.

the class JMSHTTPEndpointDeploymentTestCase method setupProxy.

private void setupProxy(HelloWorld proxy) {
    JMSConduit conduit = (JMSConduit) ClientProxy.getClient(proxy).getConduit();
    JMSConfiguration config = conduit.getJmsConfig();
    config.setUserName(JBossWSTestHelper.getTestUsername());
    config.setPassword(JBossWSTestHelper.getTestPassword());
    Properties props = conduit.getJmsConfig().getJndiEnvironment();
    props.put(Context.SECURITY_PRINCIPAL, JBossWSTestHelper.getTestUsername());
    props.put(Context.SECURITY_CREDENTIALS, JBossWSTestHelper.getTestPassword());
}
Also used : JMSConfiguration(org.apache.cxf.transport.jms.JMSConfiguration) JMSConduit(org.apache.cxf.transport.jms.JMSConduit) Properties(java.util.Properties)

Aggregations

JMSConfiguration (org.apache.cxf.transport.jms.JMSConfiguration)17 JMSConduit (org.apache.cxf.transport.jms.JMSConduit)7 Test (org.junit.Test)7 QName (javax.xml.namespace.QName)4 Properties (java.util.Properties)3 Bus (org.apache.cxf.Bus)3 Conduit (org.apache.cxf.transport.Conduit)3 JmsConfigurator (org.talend.esb.mep.requestcallback.beans.JmsConfigurator)3 Connection (javax.jms.Connection)2 Session (javax.jms.Session)2 Source (javax.xml.transform.Source)2 Service (javax.xml.ws.Service)2 ActiveMQConnectionFactory (org.apache.activemq.ActiveMQConnectionFactory)2 Client (org.apache.cxf.endpoint.Client)2 EndpointImpl (org.apache.cxf.jaxws.EndpointImpl)2 EndpointInfo (org.apache.cxf.service.model.EndpointInfo)2 JMSDestination (org.apache.cxf.transport.jms.JMSDestination)2 Configuration (org.talend.esb.mep.requestcallback.feature.Configuration)2 Closeable (java.io.Closeable)1 BytesMessage (javax.jms.BytesMessage)1