p1.setName("java.naming.factory.initial");
p1.setValue("org.apache.activemq.jndi.ActiveMQInitialContextFactory");
JMSNamingPropertyType p2 = new JMSNamingPropertyType();
p2.setName("java.naming.provider.url");
p2.setValue("tcp://localhost:61500");
final AddressType address = new AddressType();
address.setJndiConnectionFactoryName("ConnectionFactory");
List<JMSNamingPropertyType> props = address.getJMSNamingProperty();
props.add(p1);
props.add(p2);
final JMSConfiguration jmsConfig = new JMSConfiguration();
JndiTemplate jt = new JndiTemplate();
jt.setEnvironment(JMSOldConfigHolder.getInitialContextEnv(address));
JNDIConfiguration jndiConfig = new JNDIConfiguration();
jndiConfig.setJndiConnectionFactoryName(address.getJndiConnectionFactoryName());
jmsConfig.setJndiTemplate(jt);
jmsConfig.setJndiConfig(jndiConfig);
jmsConfig.setTargetDestination("dynamicQueues/SoapService8.replyto.queue");
jmsConfig.setReplyDestination("dynamicQueues/SoapService8.reply.queue");