You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Kevin kalmbach (JIRA)" <ji...@apache.org> on 2008/02/07 16:21:35 UTC

[jira] Created: (SM-1219) camel pipeline does not copy over properties

camel pipeline does not copy over properties
--------------------------------------------

                 Key: SM-1219
                 URL: https://issues.apache.org/activemq/browse/SM-1219
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-camel
    Affects Versions: 3.2.1
         Environment: Windows/sm 3.2.1
            Reporter: Kevin kalmbach
            Priority: Minor


I created a camel pipeline using the following command in MyRouteBuilder.java
           
from("jbi:service:.....pipeline")
               .pipeline("jbi:endpoint:....endpoint1",
                   "jbi:endpoint:...endpoint2",
                   "jbi:endpoint:..endpoint3"
                );
          }

In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).

None of these properties gets propagated to the next steps in the pipeline.


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


[jira] Updated: (SM-1219) camel pipeline does not copy over properties

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

Guillaume Nodet updated SM-1219:
--------------------------------

    Fix Version/s: servicemix-camel-2008.01

> camel pipeline does not copy over properties
> --------------------------------------------
>
>                 Key: SM-1219
>                 URL: https://issues.apache.org/activemq/browse/SM-1219
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2.1
>         Environment: Windows/sm 3.2.1
>            Reporter: Kevin kalmbach
>            Assignee: Bruce Snyder
>            Priority: Minor
>             Fix For: 3.2.2, 3.3, servicemix-camel-2008.01
>
>         Attachments: ToJbiHeader.diff, ToJbiProcessor.java.diff
>
>
> I created a camel pipeline using the following command in MyRouteBuilder.java
>            
> from("jbi:service:.....pipeline")
>                .pipeline("jbi:endpoint:....endpoint1",
>                    "jbi:endpoint:...endpoint2",
>                    "jbi:endpoint:..endpoint3"
>                 );
>           }
> In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).
> None of these properties gets propagated to the next steps in the pipeline.

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


[jira] Commented: (SM-1219) camel pipeline does not copy over properties

Posted by "Bruce Snyder (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41494#action_41494 ] 

Bruce Snyder commented on SM-1219:
----------------------------------

Yeah, Kevin, the attached diff is a reverse diff. To fix it, you'll need to change the order of the files you're diffing. Below is the command you need to run when sitting in the root ServiceMix 3 trunk directory: 

{panel}
$ svn diff ./deployables/serviceengines/servicemix-camel/src/main/java/org/apache/servicemix/camel/ToJbiProcessor.java > SM-1219.diff.txt
{panel}

> camel pipeline does not copy over properties
> --------------------------------------------
>
>                 Key: SM-1219
>                 URL: https://issues.apache.org/activemq/browse/SM-1219
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2.1
>         Environment: Windows/sm 3.2.1
>            Reporter: Kevin kalmbach
>            Assignee: Chris Custine
>            Priority: Minor
>         Attachments: ToJbiProcessor.java.diff
>
>
> I created a camel pipeline using the following command in MyRouteBuilder.java
>            
> from("jbi:service:.....pipeline")
>                .pipeline("jbi:endpoint:....endpoint1",
>                    "jbi:endpoint:...endpoint2",
>                    "jbi:endpoint:..endpoint3"
>                 );
>           }
> In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).
> None of these properties gets propagated to the next steps in the pipeline.

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


[jira] Updated: (SM-1219) camel pipeline does not copy over properties

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

Chris Custine updated SM-1219:
------------------------------

    Assignee: Hadrian Zbarcea

> camel pipeline does not copy over properties
> --------------------------------------------
>
>                 Key: SM-1219
>                 URL: https://issues.apache.org/activemq/browse/SM-1219
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2.1
>         Environment: Windows/sm 3.2.1
>            Reporter: Kevin kalmbach
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>         Attachments: ToJbiProcessor.java.diff
>
>
> I created a camel pipeline using the following command in MyRouteBuilder.java
>            
> from("jbi:service:.....pipeline")
>                .pipeline("jbi:endpoint:....endpoint1",
>                    "jbi:endpoint:...endpoint2",
>                    "jbi:endpoint:..endpoint3"
>                 );
>           }
> In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).
> None of these properties gets propagated to the next steps in the pipeline.

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


[jira] Updated: (SM-1219) camel pipeline does not copy over properties

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

Guillaume Nodet updated SM-1219:
--------------------------------

      Assignee: Chris Custine  (was: Hadrian Zbarcea)
    Patch Info: [Patch Available]

The given patch needs to be reviewed for applying onto servicemix-camel component.
Note that the patch is the opposite: all removed lines actually need to be added ;-)

> camel pipeline does not copy over properties
> --------------------------------------------
>
>                 Key: SM-1219
>                 URL: https://issues.apache.org/activemq/browse/SM-1219
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2.1
>         Environment: Windows/sm 3.2.1
>            Reporter: Kevin kalmbach
>            Assignee: Chris Custine
>            Priority: Minor
>         Attachments: ToJbiProcessor.java.diff
>
>
> I created a camel pipeline using the following command in MyRouteBuilder.java
>            
> from("jbi:service:.....pipeline")
>                .pipeline("jbi:endpoint:....endpoint1",
>                    "jbi:endpoint:...endpoint2",
>                    "jbi:endpoint:..endpoint3"
>                 );
>           }
> In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).
> None of these properties gets propagated to the next steps in the pipeline.

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


[jira] Resolved: (SM-1219) camel pipeline does not copy over properties

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

Bruce Snyder resolved SM-1219.
------------------------------

         Assignee: Bruce Snyder  (was: Chris Custine)
    Fix Version/s: 3.2.2
                   3.3
       Resolution: Fixed

Fix committed to both the 3.2 branch and the trunk (3.3). See the Subversion Commits tab for more info. 

> camel pipeline does not copy over properties
> --------------------------------------------
>
>                 Key: SM-1219
>                 URL: https://issues.apache.org/activemq/browse/SM-1219
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2.1
>         Environment: Windows/sm 3.2.1
>            Reporter: Kevin kalmbach
>            Assignee: Bruce Snyder
>            Priority: Minor
>             Fix For: 3.2.2, 3.3
>
>         Attachments: ToJbiHeader.diff, ToJbiProcessor.java.diff
>
>
> I created a camel pipeline using the following command in MyRouteBuilder.java
>            
> from("jbi:service:.....pipeline")
>                .pipeline("jbi:endpoint:....endpoint1",
>                    "jbi:endpoint:...endpoint2",
>                    "jbi:endpoint:..endpoint3"
>                 );
>           }
> In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).
> None of these properties gets propagated to the next steps in the pipeline.

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


[jira] Updated: (SM-1219) camel pipeline does not copy over properties

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

Kevin kalmbach updated SM-1219:
-------------------------------

    Attachment: ToJbiHeader.diff

A new diff file using svn diff

> camel pipeline does not copy over properties
> --------------------------------------------
>
>                 Key: SM-1219
>                 URL: https://issues.apache.org/activemq/browse/SM-1219
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2.1
>         Environment: Windows/sm 3.2.1
>            Reporter: Kevin kalmbach
>            Assignee: Chris Custine
>            Priority: Minor
>         Attachments: ToJbiHeader.diff, ToJbiProcessor.java.diff
>
>
> I created a camel pipeline using the following command in MyRouteBuilder.java
>            
> from("jbi:service:.....pipeline")
>                .pipeline("jbi:endpoint:....endpoint1",
>                    "jbi:endpoint:...endpoint2",
>                    "jbi:endpoint:..endpoint3"
>                 );
>           }
> In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).
> None of these properties gets propagated to the next steps in the pipeline.

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


[jira] Commented: (SM-1219) camel pipeline does not copy over properties

Posted by "Chris Custine (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41273#action_41273 ] 

Chris Custine commented on SM-1219:
-----------------------------------

Hadrian, could you take a look at this?  If this is a servicemix-camel component problem let me know and I will look in more detail.

> camel pipeline does not copy over properties
> --------------------------------------------
>
>                 Key: SM-1219
>                 URL: https://issues.apache.org/activemq/browse/SM-1219
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2.1
>         Environment: Windows/sm 3.2.1
>            Reporter: Kevin kalmbach
>            Assignee: Hadrian Zbarcea
>            Priority: Minor
>         Attachments: ToJbiProcessor.java.diff
>
>
> I created a camel pipeline using the following command in MyRouteBuilder.java
>            
> from("jbi:service:.....pipeline")
>                .pipeline("jbi:endpoint:....endpoint1",
>                    "jbi:endpoint:...endpoint2",
>                    "jbi:endpoint:..endpoint3"
>                 );
>           }
> In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).
> None of these properties gets propagated to the next steps in the pipeline.

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


[jira] Updated: (SM-1219) camel pipeline does not copy over properties

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

Kevin kalmbach updated SM-1219:
-------------------------------

    Attachment: ToJbiProcessor.java.diff

I think I have a fix to this problem (It may not be the best fix, but it seems to work).

In toJbiProcessor.java, once the jbi processor is finished, only the out content is copied form the jbi exchange back to the camel exchange.

Here is a quick diff that I made that now also copies the properties from the messageExchange's out to the camel's out exchange..

This change also copies the properties from the exchange itself to the camelExchange.

> camel pipeline does not copy over properties
> --------------------------------------------
>
>                 Key: SM-1219
>                 URL: https://issues.apache.org/activemq/browse/SM-1219
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2.1
>         Environment: Windows/sm 3.2.1
>            Reporter: Kevin kalmbach
>            Priority: Minor
>         Attachments: ToJbiProcessor.java.diff
>
>
> I created a camel pipeline using the following command in MyRouteBuilder.java
>            
> from("jbi:service:.....pipeline")
>                .pipeline("jbi:endpoint:....endpoint1",
>                    "jbi:endpoint:...endpoint2",
>                    "jbi:endpoint:..endpoint3"
>                 );
>           }
> In my first endpoint, I set several Properties (I set the same property several places: exchange.getProperty, exchange.getMessage("in").setProperty and exchange.getMessage("out").setProperty).
> None of these properties gets propagated to the next steps in the pipeline.

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