[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] 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

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

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

Charles I have also upload a new zip file with the missing cxf file remove (not needed)

Please check if that works for 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
>            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=48641#action_48641 ]

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

Additional remark

I know that this tutorial does not explain in detail How CXF works and is integrated but it should be interesting for the users that you explain why you have switched the endpoint from jaxws to cxf and what are the difference between the two endpoints (ex : it is not possible to pass a spring reference into cxf endpoint for the service class, ...) ?

> 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=48678#action_48678 ]

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

@Charles

Could you log the issue with the missing possibility to refer to a spring bean for the serviceClass? That would be a nice option to have.
I think it should support the # notation so you can refer to it just as:

{code}
cxf://localhost:8080/myapp/myserver?serviceClass=#myCoolService
{code}

And the spring XML
{code}
<bean id=myCoolService class="..."/>
{code}

The # notation is now possible in Camel 2.0 for all setter properties on a given Endpoint.

> 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=48692#action_48692 ]

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

I created the ticket CAMEL-1254

> 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=48694#action_48694 ]

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

I must revert my code to test it again. But if my memory is correct, when I try to do the following , exception was raised because it is not possible to pass the bean reference as an interface to the serviceclass.

    <!-- implementation of the webservice -->
    <osgi:reference id="reportIncidentEndpoint" interface="org.apache.camel.example.reportincident.ReportIncidentService"/>

       <!-- webservice endpoint -->            
        <cxf:cxfEndpoint id="reportIncident"
                     address="/incident" wsdlURL="/WEB-INF/wsdl/report_incident.xml"
                     serviceClass="org.apache.camel.example.reportincident.service.ReportIncidentImpl"
                     endpointName="s:ReportIncidentPort"
                     serviceName="s:ReportIncidentService"
                     xmlns:s="http://reportincident.example.camel.apache.org"/>

    With a jaxws endpoint, it is possible to provide the bean reference

    <!-- export the webservice using jaxws -->
    <jaxws:endpoint id="reportIncident"
                    implementor="#reportIncidentEndpoint"
                    address="/incident"
                    wsdlLocation="/wsdl/report_incident.wsdl"
                    endpointName="s:ReportIncidentPort"
                    serviceName="s:ReportIncidentService"
                    xmlns:s="http://reportincident.example.camel.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
>          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=48713#action_48713 ]

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

@ Charles,

You are right , here is the [mail thread|http://www.nabble.com/org.apache.cxf.interceptor.Fault%3A-Message-part-%7Bhttp%3A--reportincident.example.camel.apache.org%7DinputReportIncident-was-not-recognized.--(Does-it-exist-in-service-WSDL-)-td20937098s22882.html#a20950634}  that we were discussing.

I just checked the CXF code of dealing #reportIncidentEndpoint, I don't think it is difficult to support it in camel-cxf ;)


> 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=48718#action_48718 ]

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

@Willem,

Great. When the patch will be available, I will use it for the second part of my tutorial.

> 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=48765#action_48765 ]

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

@Charles

Could you check my latest changes on CAMEL-1254 ?
I introduce a new operation serviceClassInstance in URI for looking up the service class from camel context registry.

> 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=48857#action_48857 ]

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

I need to write part 6 that is the XML based router.

The code is now provided in camel 2.0 as an example (based on part-5)

> 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] Updated: (CAMEL-797) camel-example-reportincident tutorial - ideas for new parts to add

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 updated CAMEL-797:
------------------------------

    Summary: camel-example-reportincident tutorial - ideas for new parts to add  (was: 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)

> camel-example-reportincident tutorial - ideas for new parts to add
> ------------------------------------------------------------------
>
>                 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] Resolved: (CAMEL-797) camel-example-reportincident tutorial - ideas for new parts to add

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 resolved CAMEL-797.
-------------------------------

    Resolution: Fixed

The tutorial is finished. No time to write more on it.

> camel-example-reportincident tutorial - ideas for new parts to add
> ------------------------------------------------------------------
>
>                 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