Hi Benson,
the important question is: Where do you set the connection factory. The code snippet you provided does not set one.

Regards

Christian


Am 19.09.2010 21:11, schrieb Benson Margulies:
I'm trying out the new JMS in the Java-first case, and I've hit my
first pothole.

I'm going to commit the sample in the state that gets this error.

  Object implementor = new HelloWorldImpl();
         JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
         svrFactory.setServiceClass(HelloWorld.class);
         
svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID);
         
svrFactory.setAddress("jms:queue:test.cxf.jmstransport.queue?timeToLive=1000");
         svrFactory.setServiceBean(implementor);
         svrFactory.create();


INFO: Setting the server's publish address to be
jms:queue:test.cxf.jmstransport.queue?timeToLive=1000
Exception in thread "main" java.lang.IllegalArgumentException: Target
ConnectionFactory must not be null
        at org.springframework.util.Assert.notNull(Assert.java:112)
        at 
org.springframework.jms.connection.SingleConnectionFactory.<init>(SingleConnectionFactory.java:130)
        at 
org.apache.cxf.transport.jms.JMSConfiguration.getOrCreateWrappedConnectionFactory(JMSConfiguration.java:441)
        at 
org.apache.cxf.transport.jms.JMSConfiguration.ensureProperlyConfigured(JMSConfiguration.java:104)
        at 
org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination.java:111)
        at 
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
        at 
org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:181)
        at 
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:835)
        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127)
        at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:186)
        at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)
        at demo.server.ServerJMS.main(ServerJMS.java:63)


--
----
http://www.liquid-reality.de

Reply via email to