Hello everyone!
I have a client-server application which deals messages via http. Now I want
to use ServiceMix with the httpConnector to handle the message exchange.
Because I need to send plaintext I decided to create my own marshaler to
append the messages as CData.
Now I have a problem with the xbean.xml files in my provider and consumer
su’s. In order to work with my own marshaler, I changed the tag
<http:endpoint to <http:consumer and <http:provider.
But it doesn’t work after this changes any more.
WARN - jetty - handle failed
java.lang.IllegalStateException
at
org.mortbay.jetty.client.HttpConnection$Handler.startRequest(HttpConnection.java:398)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:369)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at
org.mortbay.jetty.client.HttpConnection.handle(HttpConnection.java:240)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
So I tried to exclude the marshaler so that the xbean.xml for the Consumer
looks like:
<beans xmlns:http="http://servicemix.apache.org/http/1.0">
<http:consumer service="http:consumer"
endpoint="httpconsumer"
targetService="http:provider"
targetEndpoint="httpprovider"
locationURI="http://0.0.0.0:4444/" />
</beans>
and the xbean.xml of the Provider :
<beans xmlns:http="http://servicemix.apache.org/http/1.0">
<http:provider service="http:provider"
endpoint="httpprovider"
locationURI="http://localhost:8888/" />
</beans>
If I specify in the xbean.xml's a <http:endpoint, it works.
So i think there could be an error in my configuration but i can't figure
out what it is!
Please help me…
--
View this message in context:
http://www.nabble.com/Using-own-marshaler-doesn%27t-work-tp18689229p18689229.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.