Hi, the syntax you are using is trying to create two endpoind with the same name. This is not admitted in esb because the endpoint identify a point exposed over the bus. You have to use two different destinations or define an in-out pattern over the queue. This is my experience, I don't know if there is much more, but I obtained the same reply... you can't do that. Cheers, Simone
-----Messaggio originale----- Da: skg [mailto:[EMAIL PROTECTED] Inviato: mar 01/07/2008 12.49 A: [email protected] Oggetto: Re: R: Web service with JMS For consumer web service :- <beans xmlns:jms="http://servicemix.apache.org/jms/1.0" xmlns:tutorial="urn:org:apache:servicemix:tutorial:camel" xmlns:amq="http://activemq.org/config/1.0"> <jms:consumer service="tutorial:jms" endpoint="consumer" destinationName="tutorial.camel.queue" connectionFactory="#connectionFactory" targetService="tutorial:jms" targetEndpoint="consumer" /> <amq:connectionFactory id="connectionFactory" brokerURL="tcp://localhost:61616" /> </beans> The xbean.xml file of second web service which should work as the provider is : <beans xmlns:jms="http://servicemix.apache.org/jms/1.0" xmlns:tutorial="urn:org:apache:servicemix:tutorial:camel" xmlns:amq="http://activemq.org/config/1.0"> <jms:provider service="tutorial:jms" endpoint="provider" destinationName="tutorial.camel.queue" connectionFactory="#connectionFactory" /> <amq:connectionFactory id="connectionFactory" brokerURL="tcp://localhost:61616" /> </beans> Edell Nolan wrote: > > Is it possible you can send the xbean.xml files for both your projects ? > > On Tue, Jul 1, 2008 at 11:33 AM, <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> whould you like to make this on the same queue or you need to endponts? >> I do not understand what you are looking for. >> Remember that two processes exposed over the bus speak between them using >> NMR and not JMS, it is simply the "interface protocol" they use to tell >> with >> the world outside!! >> regards >> Simone >> >> >> -----Messaggio originale----- >> Da: skg [mailto:[EMAIL PROTECTED] >> Inviato: mar 01/07/2008 12.01 >> A: [email protected] >> Oggetto: Web service with JMS >> >> >> Hi, >> I worked on the example to use jms to act as consumer and provide within >> same web service but i want to create them seperately. I mean , i want to >> have two web services, one should act as consumer and other as the >> provider. >> What do i need to do for that. >> I tried by creating two different projects but it is throwing error when >> i >> deploy the second service assembly (either provider or consumer one). Is >> there any configuration that i need to do for the same. >> -- >> View this message in context: >> http://www.nabble.com/Web-service-with-JMS-tp18213011p18213011.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> >> > > -- View this message in context: http://www.nabble.com/Web-service-with-JMS-tp18213011p18213666.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
