When I was doing the JMS Transport I used the
==========================================
ConnectionFactory connectionFactory = .new ActiveMQConnectionFactory(
"tcp://2.2.129.130:61616");
XFire xfire = XFireFactory.newInstance().getXFire();
JMSTransport tp = new JMSTransport(xfire, connectionFactory);
xfire.getTransportManager().register(tp);
// Pass the transport manager here to get references to the JMS Transport
ObjectServiceFactory factory = new
ObjectServiceFactory(xfireCore.getTransportManager());
factory.addSoap11Transport(JMSTransport.BINDING_ID);
Service service = factory.create(Echo.class);
service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);
XFireProxyFactory xpf = new XFireProxyFactory(xfire);
Echo echo = (Echo) xpf.create(serviceModel, "jms://Echo");
// Since JMS doesn't really have a concept of anonymous endpoints, we need
// need to let xfire know what JMS endpoint we should use
((XFireProxy)
Proxy.getInvocationHandler(echo)).getClient().setEndpointUri("jms://Echo");
echo.echo("test");
============================================
there is no xml file to configure anything
When I run the programmer,the exception is :Async exception with no
exception listener: javax.jms.JMSException: Unexpected message was
dispatched to the AdvisoryConsumer: MessageDispatch {commandId = 0, .......
and the message on the Console is:Received message
onMessage -> Source ID: 30A4FD07-0A03-26E3-D7BF-283668198A81, Message ID:
ID:XiongXiaojing-2451-1179827311250-1:0:1:1:1
INFO JMSChannel - Sent message: Source ID:
30A4FD07-0A03-26E3-D7BF-283668198A81 Destination: null JMSType: Echo
so as it shalls that,the Destination is null!
--
View this message in context:
http://www.nabble.com/the-NullPointExcepiton-of-the-JMS-Transport-tf3795309.html#a10734736
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email