You can't send a jms request to an http component, because the protocol
they are using is different.
You can send to a jms message to an jms consumer and route it to the
jsr181 component.
or you could send a jms message to a jms consumer, route it to an http
provider that is targeted at
http://0.0.0.0:8192/PersonService/
so the flow would be jms message->jms consumer->http provider->http
consumer->jsr181 su
Hope that helps.
ykj wrote:
hello ,everyone
I am a new servicemixguy. I can run the bridge example
successfully.now. I want to send the
message by jms ,then get it from httpComponet? I write the flows,but it
does't successfully.
jms - jsr181-httpcomponent.
1.jms 'xbean.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
<jms:endpoint service="b:Request_in"
endpoint="Request_in"
targetEndpoint="Request_out"
role="consumer"
destinationStyle="queue"
targetService="b:Request_out"
jmsProviderDestinationName="UII_Request_in"
connectionFactory="#connectionFactory"
defaultMep="http://www.w3.org/2004/08/wsdl/in-only"/>
<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
</beans>
jsr181's xbean.xml:
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
<jsr181:endpoint
pojoClass="org.apache.servicemix.samples.wsdl_first.PersonImpl"
wsdlResource="classpath:person.wsdl"
style="document"/>
</beans>
httpcomponent's xbean.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:b="http://servicemix.apache.org/samples/UII">
<http:endpoint service="b:Request_out"
endpoint="Request_out"
role="consumer"
soap="true"
locationURI="http://0.0.0.0:8192/PersonService/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
soapAction="getPerson"/>
</beans>
jms act as provider role. httpcomponent act as cosumer role.in the
httpComponent ,the
locationURl is http://0.0.0.0:8192/PersonService/ .jsr181 make it as
avaiable service.
when I test, i send the message in UII_Request_in, I want to receive the
message in http://0.0.0.0:8192/PersonService/.but i fail.
I need the help from you. thank you in advances.