You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/07/20 11:36:52 UTC

[jira] Created: (CAMEL-2970) JmsProducer should support non blocking routing engine

JmsProducer should support non blocking routing engine
------------------------------------------------------

                 Key: CAMEL-2970
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2970
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-jms
    Affects Versions: 2.4.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.5.0


The JMS component is the most complex, and we left out improvements on purpose as we wanted 2.4 out before.

Now its time to let the JmsProducer in request/reply mode leverage async processing so threads are not blocked while waiting for reply.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2970) JmsProducer should support non blocking routing engine

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2970.
--------------------------------

    Resolution: Fixed

> JmsProducer should support non blocking routing engine
> ------------------------------------------------------
>
>                 Key: CAMEL-2970
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2970
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> The JMS component is the most complex, and we left out improvements on purpose as we wanted 2.4 out before.
> Now its time to let the JmsProducer in request/reply mode leverage async processing so threads are not blocked while waiting for reply.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2970) JmsProducer should support non blocking routing engine

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60880#action_60880 ] 

Claus Ibsen commented on CAMEL-2970:
------------------------------------

Due the asynchronous producer it impacts running camel-jms unit tests as they mostly in-memory JMS based, and therefore is ultra fast. There is no IO-bound, and therefor those tests will run faster when synchronous due no thread context switching etc.

But tests over network (IO is involved) should improve scalability due asynchronous producer.

Notice this only applies for JMS using request/reply (eg InOut).

> JmsProducer should support non blocking routing engine
> ------------------------------------------------------
>
>                 Key: CAMEL-2970
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2970
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> The JMS component is the most complex, and we left out improvements on purpose as we wanted 2.4 out before.
> Now its time to let the JmsProducer in request/reply mode leverage async processing so threads are not blocked while waiting for reply.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2970) JmsProducer should support non blocking routing engine

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60884#action_60884 ] 

Claus Ibsen commented on CAMEL-2970:
------------------------------------

trunk: 978995.

This was tough work to implement. Had to rework the request-reply logic due the async routing.
I also made the logic more easy to understand with better code comments, javadoc, and class/method names etc.

There is a high performance {{JmsRouteRequestReplyTest}} which tests with option {{useMessageIDasCorrelationID}} enabled. This puts a burden on the test, because it's in memory only and uses 100+ threads. This means that in some situations a reply could be received, before Camel itself have updated its internal correlation mapping table, with the actual JMSCorrelationID that was used (have to get this information *after* the message has been sent). So some waiting logic is needed so we can lookup the correlation.

> JmsProducer should support non blocking routing engine
> ------------------------------------------------------
>
>                 Key: CAMEL-2970
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2970
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 2.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> The JMS component is the most complex, and we left out improvements on purpose as we wanted 2.4 out before.
> Now its time to let the JmsProducer in request/reply mode leverage async processing so threads are not blocked while waiting for reply.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.