camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhushand <bhushan_bde...@yahoo.co.in>
Subject Re: soap over jms
Date Fri, 20 Jul 2012 05:15:22 GMT
Hello Willem
           As I am trying to run example shared by Christian, all
configuration are from that files. Please find below configurations
For server:
<jaxws:endpoint address="camel://direct:greeterServerEndpoint"
		id="server"
		implementor="#greeterImpl"
		endpointName="s2:JMSGreeterPortType" serviceName="s2:JMSGreeterService"
		xmlns:s2="http://examples/jms-greeter" />
		
<bean id="greeterImpl"
class="main.java.demo.jms_greeter.server.GreeterJMSImpl"/>

& route is

<route>
	<from uri="jms:MyQueueName?exchangePattern=InOnly" />
	<to uri="direct:greeterServerEndpoint" />
	
	<setHeader headerName="SOAPJMS_contentType">
		<constant>text/xml</constant>
	</setHeader>
	<setHeader headerName="SOAPJMS_requestURI">
		<constant>jms://queue:MyQueueName</constant>
	</setHeader>
</route>

For Client:
<jaxws:client id="greeterProxy"
address="camel://direct:greeterClientEndpoint"
		endpointName="s2:JMSGreeterPortType" serviceName="s2:JMSGreeterService"
		xmlns:s2="http://examples/jms-greeter"
		serviceClass="main.java.examples.jms_greeter.JMSGreeterPortType" />
		
<bean id="client" class="main.java.demo.jms_greeter.client.Client">
	<property name="greeter" ref="greeterProxy" />
</bean>

route is as follow,
<route>
	<from uri="direct:greeterClientEndpoint" />
	<setHeader headerName="SOAPJMS_contentType">
		<constant>text/xml</constant>
	</setHeader>
	<setHeader headerName="SOAPJMS_requestURI">
		<constant>jms://queue:MyQueueName</constant>
	</setHeader>
	<to uri="jms:MyQueueName?exchangePattern=InOnly" />
</route>


Here I am running client & getting previous error. From configuration my
understanding is, When client is executed it will place message over queue
then it will call server impl class. If  I am wrong, please correct me. 


--Thanks 
     Bhushan



--
View this message in context: http://camel.465427.n5.nabble.com/soap-over-jms-tp5715942p5716279.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message