You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2008/06/26 17:13:00 UTC

[jira] Created: (CAMEL-639) Tracer to show the from nodes

Tracer to show the from nodes
-----------------------------

                 Key: CAMEL-639
                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
             Project: Apache Camel
          Issue Type: Improvement
            Reporter: James Strachan
             Fix For: 1.5.0




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


[jira] Commented: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen commented on CAMEL-639:
-----------------------------------

BTW: We need to commit some part of it for the UnitOfWork as its cumbersome for end-users to remove sync hooks in the done callback due to concurrent modification exception if attempted.

So that is why the Service interface is used to cleanup in the stop method.

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Updated: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen updated CAMEL-639:
------------------------------

    Fix Version/s: 2.0.0
                       (was: 1.5.0)

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>             Fix For: 2.0.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Resolved: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen resolved CAMEL-639.
-------------------------------

    Resolution: Fixed

Sending        camel-core/src/main/java/org/apache/camel/impl/DefaultUnitOfWork.java
Sending        camel-core/src/main/java/org/apache/camel/model/OtherwiseType.java
Sending        camel-core/src/main/java/org/apache/camel/processor/interceptor/Debugger.java
Sending        camel-core/src/main/java/org/apache/camel/processor/interceptor/DefaultTraceFormatter.java
Sending        camel-core/src/main/java/org/apache/camel/processor/interceptor/TraceEventMessage.java
Sending        camel-core/src/main/java/org/apache/camel/processor/interceptor/TraceInterceptor.java
Sending        camel-core/src/main/java/org/apache/camel/processor/interceptor/Tracer.java
Adding         camel-core/src/main/java/org/apache/camel/spi/TraceableUnitOfWork.java
Sending        camel-core/src/test/java/org/apache/camel/processor/interceptor/TraceInterceptorDestinationTest.java
Transmitting file data .........
Committed revision 733758.

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Work started: (CAMEL-639) Tracer to show the from nodes

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

Work on CAMEL-639 started by Claus Ibsen.

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>


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


[jira] Commented: (CAMEL-639) Tracer to show the from nodes

Posted by "James Strachan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48596#action_48596 ] 

James Strachan commented on CAMEL-639:
--------------------------------------

we can now use Exchange.getFromEndpoint() to know the URI an exchange camel from

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>             Fix For: 2.0.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Commented: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen commented on CAMEL-639:
-----------------------------------

@James

That is nice. The getFromEndpoint() however shows the *starting* endpoint. What we are also looking for is those intermediate node ids that an Exchange passes in the route graph, especially for processors, choice, and other DSL that isn't an Endpoint.

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>             Fix For: 2.0.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Work stopped: (CAMEL-639) Tracer to show the from nodes

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

Work on CAMEL-639 stopped by Claus Ibsen.

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Commented: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen commented on CAMEL-639:
-----------------------------------

Now it looks like this, but I am not convinced its correct as I am doing a bit of cheating to get the first node (the one = null above):

{code}
2008-09-19 09:52:26,500 [main           ] INFO  TraceInterceptor               - ID-claus-acer/2222-1221810744375/2-0 From[direct:start] -> MyProcessor :  Body:Hello London
2008-09-19 09:52:26,500 [main           ] INFO  TraceInterceptor               - ID-claus-acer/2222-1221810744375/2-0 MyProcessor -> mock:a :  Body:Hello London
2008-09-19 09:52:26,500 [main           ] INFO  TraceInterceptor               - ID-claus-acer/2222-1221810744375/2-0 mock:a -> mock:b :  Body:Hello London

2008-09-19 09:52:31,109 [main           ] INFO  TraceInterceptor               - ID-claus-acer/2222-1221810744375/2-1 From[direct:start] -> MyProcessor :  Body:This is Copenhagen calling
2008-09-19 09:52:31,125 [main           ] INFO  TraceInterceptor               - ID-claus-acer/2222-1221810744375/2-1 MyProcessor -> mock:a :  Body:This is Copenhagen calling
2008-09-19 09:52:31,140 [main           ] INFO  TraceInterceptor               - ID-claus-acer/2222-1221810744375/2-1 mock:a -> mock:b :  Body:This is Copenhagen calling
{code}

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>            Reporter: James Strachan
>             Fix For: 1.5.0
>
>


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


[jira] Assigned: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen reassigned CAMEL-639:
---------------------------------

    Assignee:     (was: Claus Ibsen)

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>             Fix For: 2.0.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Commented: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen commented on CAMEL-639:
-----------------------------------

James hinted that we might use UnitOfWork as a route session

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>             Fix For: 2.0.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Assigned: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen reassigned CAMEL-639:
---------------------------------

    Assignee: Claus Ibsen

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Updated: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen updated CAMEL-639:
------------------------------

    Component/s: camel-core

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>


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


[jira] Updated: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen updated CAMEL-639:
------------------------------

    Attachment: camel_639.patch

patch as work in progress of my experiment.

Will look it later, but have some other issues to work on to make it into 1.5.
Also I want more feedback of a more generic solution as how the exchange is currently being routed. There could be benefits for this to be used in JMX console, Debugger, Tooling etc.

This experiment is only at the Tracer interceptor itself and not a generic solution.

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: camel_639.patch
>
>


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


[jira] Commented: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen commented on CAMEL-639:
-----------------------------------

The problem is that FromType is not a ProcessorType and thus we can not append some interceptor to trigger the route flow when a message is started from here.

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>


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


[jira] Assigned: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen reassigned CAMEL-639:
---------------------------------

    Assignee: Claus Ibsen

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>


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


[jira] Commented: (CAMEL-639) Tracer to show the from nodes

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

Claus Ibsen commented on CAMEL-639:
-----------------------------------

I am experimenting with something here. I can get it somehow to work. But the very first step is not recorded easily as I just use the Tracer interceptor.
Notice the *null* in the 1st and 4th line. Line 1-3 is one exchange. Line 4-6 is another exchange.

{code}
2008-09-18 21:55:55,656 [main           ] INFO  TraceInterceptor               - ID-claus-acer/3994-1221767755421/2-0 null -> Processor[MyProcessor] :  Body:Hello London
2008-09-18 21:55:55,671 [main           ] INFO  TraceInterceptor               - ID-claus-acer/3994-1221767755421/2-0 Processor[MyProcessor] -> To[mock:a] :  Body:Hello London
2008-09-18 21:55:55,671 [main           ] INFO  TraceInterceptor               - ID-claus-acer/3994-1221767755421/2-0 To[mock:a] -> To[mock:b] :  Body:Hello London

2008-09-18 21:55:55,687 [main           ] INFO  TraceInterceptor               - ID-claus-acer/3994-1221767755421/2-1 null -> Processor[MyProcessor] :  Body:This is Copenhagen calling
2008-09-18 21:55:55,703 [main           ] INFO  TraceInterceptor               - ID-claus-acer/3994-1221767755421/2-1 Processor[MyProcessor] -> To[mock:a] :  Body:This is Copenhagen calling
2008-09-18 21:55:55,703 [main           ] INFO  TraceInterceptor               - ID-claus-acer/3994-1221767755421/2-1 To[mock:a] -> To[mock:b] :  Body:This is Copenhagen calling
{code}

> Tracer to show the from nodes
> -----------------------------
>
>                 Key: CAMEL-639
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-639
>             Project: Apache Camel
>          Issue Type: Improvement
>            Reporter: James Strachan
>             Fix For: 1.5.0
>
>


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