You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Jürgen Kindler <ju...@lutz-is.de> on 2006/12/22 16:17:54 UTC
Wiring services
Hi all,
I have just tried to wire a service that resides on a separate app
server using two service units
(one consumer and one provider, both based on servicemix-http), but I
did not get it to work.
I plugged in a proxy between ServiceMix and my app server and could see
that the wsdl of the
external service is being retrieved by ServiceMix when my client
connects to ServiceMix and
tries to use the service exposed there.
But little later I get an error:
DEBUG - jetty - REQUEST /jbi/AgentService on
org.mortbay.jetty.HttpConnection@194d431
DEBUG - jetty - RESPONSE /jbi/AgentService 302
DEBUG - JettyContextManager - Dispatching job:
HEP@3083783[d=true,io=1,w=true,b=0|0]
DEBUG - jetty - EXCEPTION
java.io.IOException: An existing connection was closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
at sun.nio.ch.IOUtil.read(IOUtil.java:206)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
at org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:127)
at
org.mortbay.jetty.nio.HttpChannelEndPoint.fill(HttpChannelEndPoint.java:129)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:263)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:193)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
at
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
DEBUG - jetty - EOF
I wonder if my approach it correct at all. Is it possible to do it as
simple or am I required to have an EIP
plugged in between the consumer and the provider ???
Can you give me a hint (possibly a small configuration example)?
Kind regards & merry X-Mas
Juergen