Greeter greeter = service.getPort(portName, Greeter.class);
doService(greeter, true);
}
@Test
public void testNonAopTransaction() throws Exception {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(Greeter.class);
factory.setAddress("jms://");
JMSConfiguration jmsConfig = new JMSConfiguration();
ConnectionFactory connectionFactory
= new org.apache.activemq.ActiveMQConnectionFactory("tcp://localhost:" + JMS_PORT);
jmsConfig.setConnectionFactory(connectionFactory);
jmsConfig.setTargetDestination("greeter.queue.noaop");
jmsConfig.setPubSubDomain(false);
jmsConfig.setUseJms11(true);
JMSConfigFeature jmsConfigFeature = new JMSConfigFeature();
jmsConfigFeature.setJmsConfig(jmsConfig);
factory.getFeatures().add(jmsConfigFeature);
Greeter greeter = (Greeter)factory.create();
doService(greeter, false);
}