You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "Rally, Varun" <va...@fiserv.com> on 2008/03/07 07:37:14 UTC

Servicemix-camel component

Hello All,

 

I have configured a servicemix-camel component using wiretap pattern,
such that when a HTTP request comes, it is forwarded to JMS queue and
another HTTP endpoint which is the final destination. The whole process
is running fine and messages are going to JMS and HTTP endpoint, but on
Servicemix console I am getting the following output.

 

 

WARN  - jetty                          - /latestService/

java.lang.Exception: Timeout

        at
org.apache.servicemix.http.processors.ConsumerProcessor.process(Consumer
Processor.java:189)

        at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.ja
va:71)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)

        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandler
Collection.java:211)

        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.jav
a:114)

        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

        at org.mortbay.jetty.Server.handle(Server.java:313)

        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)

        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:375)

        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
396)

        at
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(Selec
tChannelConnector.java:511)

        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.ja
va:442)

 

 

-          /latestService/ is the name of my HTTP consumer endpoint on
servicemix that receives the requests.

 

Please let me know what I am doing wrong.

 

Regards,

Varun Rally

---------------------------------------------------

Fiserv, A-94/8, SECTOR 58 NOIDA UP INDIA 201301

Phone- 91-120-4023000  extn. 3268 Cell- 91-98990-37800

VOIP - 434-509-0698 Extn. 121

 


Re: Servicemix-camel component

Posted by pratibhaG <pr...@in2m.com>.
Hello,

I think you are far ahead of me to use servicemix and camel.
could you please help me to achieve a flow like this
HTTP request --> JMS queue .
As you have already done it please help me

Thanks,
Partibha
-- 
View this message in context: http://www.nabble.com/Servicemix-camel-component-tp15890740p17053943.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Servicemix-camel component

Posted by Guillaume Nodet <gn...@gmail.com>.
One reason may be that the servicemix-http component sends an InOut request,
while the camel one does not send any response.  In the camel route
configuration,
try to include the following parameter on the entry endpoint uri:
    jbi:xxx?mep=in-out
Also, make sure that the camel route sends a response.

Or configure the servicemix-http endpoint to send an InOnly exchange instead.

On Fri, Mar 7, 2008 at 8:37 AM, Rally, Varun <va...@fiserv.com> wrote:
> Hello All,
>
>
>
>  I have configured a servicemix-camel component using wiretap pattern,
>  such that when a HTTP request comes, it is forwarded to JMS queue and
>  another HTTP endpoint which is the final destination. The whole process
>  is running fine and messages are going to JMS and HTTP endpoint, but on
>  Servicemix console I am getting the following output.
>
>
>
>
>
>  WARN  - jetty                          - /latestService/
>
>  java.lang.Exception: Timeout
>
>         at
>  org.apache.servicemix.http.processors.ConsumerProcessor.process(Consumer
>  Processor.java:189)
>
>         at
>  org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.ja
>  va:71)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>
>         at
>  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>
>         at
>  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
>
>         at
>  org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
>
>         at
>  org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandler
>  Collection.java:211)
>
>         at
>  org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.jav
>  a:114)
>
>         at
>  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>
>         at org.mortbay.jetty.Server.handle(Server.java:313)
>
>         at
>  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
>
>         at
>  org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:375)
>
>         at
>  org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
>  396)
>
>         at
>  org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(Selec
>  tChannelConnector.java:511)
>
>         at
>  org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.ja
>  va:442)
>
>
>
>
>
>  -          /latestService/ is the name of my HTTP consumer endpoint on
>  servicemix that receives the requests.
>
>
>
>  Please let me know what I am doing wrong.
>
>
>
>  Regards,
>
>  Varun Rally
>
>  ---------------------------------------------------
>
>  Fiserv, A-94/8, SECTOR 58 NOIDA UP INDIA 201301
>
>  Phone- 91-120-4023000  extn. 3268 Cell- 91-98990-37800
>
>  VOIP - 434-509-0698 Extn. 121
>
>
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/