When I send a soap message to test following routing (HTTP to JMS) I get
following exception:
org.apache.servicemix.soap.api.Fault: javax.xml.stream.XMLStreamException:
Can not create Stax reader for the Source passed -- neither reader, input
stream nor system id was accessible; can not use other types of sources
(like embedded SAX streams)
If I use a <jms:endpoint service="test:MyJMSService"
endpoint="MyJMSService1"
role="provider"
destinationStyle="queue"
jmsProviderDestinationName="BarQueue"
connectionFactory="#connectionFactory"
soap="false"
/>
instead of <jms: provider ..> my test works.
Here is my configuration in beans.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ctx="http://www.springframework.org/schema/context"
xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:jms="http://servicemix.apache.org/jms/1.0"
xmlns:test="http://testServer"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://servicemix.apache.org/http/1.0
http://servicemix.apache.org/schema/servicemix-http-3.2.3.xsd
http://servicemix.apache.org/jms/1.0
http://servicemix.apache.org/schema/servicemix-jms-3.2.3.xsd
http://activemq.org/config/1.0
http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd">
<http:endpoint service="test:MyJMSService"
endpoint="MyJMSService"
role="consumer"
locationURI="http://0.0.0.0:8080/MyJMSService/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
soap="true" />
<jms:provider service="test:MyJMSService"
endpoint="MyJMSService1"
destinationName="BarQueue"
connectionFactory="#connectionFactory"
/>
<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61618"/>
</bean>
<bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
</beans>
--
View this message in context:
http://old.nabble.com/Unable-to-use-%3Cjms%3Aprovider%3E-Endpoint-tp28550317p28550317.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.