[jira] Created: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

classic Classic list List threaded Threaded
31 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-797
                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
             Project: Apache Camel
          Issue Type: Improvement
            Reporter: Charles Moulliard


Hi,

First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.

What I would like to propose is to add a fourth part to this tutorial to show :

- How to turn on the code to DSL language and/or spring xml configuration file ?
- How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?

Task to do

1) Adapt the architecture to allow Camel to become the entry point of the web services
2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-797:
------------------------------

        Fix Version/s: 1.5.0
    Affects Version/s: 1.4.0
          Component/s: documentation
                       examples

Yes after some of the heat settled I will sit down with a few beers and craft some more parts. However any contribution is of course much appreciated.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44858#action_44858 ]

Charles Moulliard commented on CAMEL-797:
-----------------------------------------

How can I help you ?

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44860#action_44860 ]

Claus Ibsen commented on CAMEL-797:
-----------------------------------

Charles do you have edit rights to the wiki? If not then you can get it but you need to have signed the Apache CLA so Apache have the rights to whatever you write on the wiki.

If so then you can also write / edit the tutorial.

I will take a look at a part 4 this weekend. I think I will keep it basic at first to introduce the routing in only Java.
And then part 5 can be more about spring how to setup Camel using spring xml files.
And then a part 6 about the camel-cxf integration as its a bit *not easy*.

Oh and then definitely a part about unit testing with the camel test kit as its very important as well.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44862#action_44862 ]

Charles Moulliard commented on CAMEL-797:
-----------------------------------------

I will sign the Apache SLA and send it back in order for me to have access to the wiki.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44924#action_44924 ]

Charles Moulliard commented on CAMEL-797:
-----------------------------------------

New ideas

Part 7 : Add transaction support
Part 8 : Deploy Camel in an application server (JBOSS, Tomcat), WebSphere, BEA,  ...), OSGI server (Spring Application Platform suite, Equinox, Felix, ...) or JBI ESB (ServiceMix, Petals, ...)

The next step will be the redaction of a book ;)

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-797:
---------------------------------

    Assignee: Claus Ibsen

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-797 started by Claus Ibsen.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45066#action_45066 ]

Charles Moulliard commented on CAMEL-797:
-----------------------------------------

Is the code of the tutorial available under SVN ?

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45067#action_45067 ]

Claus Ibsen commented on CAMEL-797:
-----------------------------------

Each part has a file attached with the source code.

At the end I will add a new example to camel 1.5 that is based on the tutorial with a finished integration on this use-case. However this example will be more like the last parts with spring, routes, and everything.
Currently that code is not in SVN (yet)

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45070#action_45070 ]

Willem Jiang commented on CAMEL-797:
------------------------------------

I think we could put these codes into the svn  example directory, in this way we could make the tutorial codes sync with the latest Camel.


> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea updated CAMEL-797:
----------------------------------

    Attachment: part-four.zip

Ah, there was an issue for this.  I presented camel @trijug yesterday and I used the attached version for step 4.  It does 1. and 2, and I sent it to Claus if he wants to add more of his magic before attaching it to the wiki.  Sometimes mail client are smart enough to send my messages to trash, so I'll attach it here too :) if anybody wants to improve on it.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45149#action_45149 ]

Claus Ibsen commented on CAMEL-797:
-----------------------------------

Part 4 now done. Will add a part 5 later. Should be either more about unit testing with Camel test kit (such as mocks) or to introduce spring.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45154#action_45154 ]

Hadrian Zbarcea commented on CAMEL-797:
---------------------------------------

The attached code does not include a solution for the first bullet in the original description of this task:
1) Adapt the architecture to allow Camel to become the entry point of the web services

I think this is an important aspect to demonstrate.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45179#action_45179 ]

Claus Ibsen commented on CAMEL-797:
-----------------------------------

@Hadrian

I agree but I wanted to introduce the "Camel calls CXF entry automatically" when Willem have improve the CXF so I dont have to go through hoops to get the input object. And as I understand it he has fixed/improved this recently. But the *very reasons* for not doing this from the start is the fact that I wanted to demo that Camel doens't take the power from the ordinary developer. The cursor is blinking in his code editor and he is in control and can write the code to start the *show* ;) Camel is all about this also, just being there when you need it and it can be a very powerful helper/friend.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45211#action_45211 ]

Claus Ibsen commented on CAMEL-797:
-----------------------------------

From James in another ticket. A good idea. So I comment it here to not forget to write something about this in the tutorial.

BTW I wonder if we should encourage the use of

{code}
when().xpath("/foo")
{code}

rather than
{code}
when(header....)
{code}

as the when(). is typically more feature rich and has better IDE smart completion

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45274#action_45274 ]

Claus Ibsen commented on CAMEL-797:
-----------------------------------

After messing with letting camel handle the entry point with cxf I am not happy with it. It will require quite a context change for end-users to let it handle it properly, and I feel as a developer I lose a little control.

Also I had to use cxf:endpoint to configure it using spring xml and not jaxws (I got a ClassCastException). Will report it later.

And frankly to handle any exceptions during the routing requires to use a more powerful DSL style and I frankly don't think we are there yet int the tutorial. (Maybe for part 7+).

{code:java}
    private static OutputReportIncident OK = new OutputReportIncident();
    private static OutputReportIncident VALIDATION = new OutputReportIncident();
    private static OutputReportIncident ERROR = new OutputReportIncident();

    public void configure() throws Exception {
        OK.setCode("0");
        VALIDATION.setCode("1");
        ERROR.setCode("9");

        // first part from the webservice -> file backup
        from("cxf:bean:reportIncident")
                .tryBlock()
                    .convertBodyTo(InputReportIncident.class)
                    .bean(ValidateIncidentService.class)
                    .setHeader(FileComponent.HEADER_FILE_NAME, bean(FilenameGenerator.class, "generateFilename"))
                    .to("velocity:MailBody.vm")
                    .transform(constant(OK))
                .handle(IncidentValidationException.class)
                    .transform(constant(VALIDATION))
                .handle(Exception.class)
                    .transform(constant(ERROR))
                .end();
    }
{code}

So part 5 will be a gentle introduction to let Spring create the camel context and we will take it from there in baby steps.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48494#action_48494 ]

Claus Ibsen commented on CAMEL-797:
-----------------------------------

Okay I have added a part 5 to demonstrate how to embed Camel with Spring so it's started and stopped by Spring
And finally I also added how to use camel-cxf endpoints directly in the routing so it's nice.

I plan to do a part 6 to introduce the equal Spring DSL version

Any feedback and review is of course welcome

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48615#action_48615 ]

Charles Moulliard commented on CAMEL-797:
-----------------------------------------

Is the following sentence of the part 5 correct ?

" The idea now is to replace the endpoint the starts the ball going from "direct:start" to the CXF endpoint."

or 'the starts' should be 'TO starts'

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-797) Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48629#action_48629 ]

Claus Ibsen commented on CAMEL-797:
-----------------------------------

Thanks Charles for review. I have fixed it.

> Add a part 4 to the tutorial (camel-example-reportincident) to show how to turn on the code to route messages using DSL language and/or spring xml configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-797
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-797
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: documentation, examples
>    Affects Versions: 1.4.0
>            Reporter: Charles Moulliard
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial. This is a great job for the camel community to have now a second tutorial showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show :
> - How to turn on the code to DSL language and/or spring xml configuration file ?
> - How the architecture can be adapted to use Camel as the entry point of the web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web services
> 2) Transpose the code to routes the messages between the endpoints using DSL language through a java class
> 3) Idem bu using a spring configuration file

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

12