You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2009/12/23 10:03:40 UTC

[jira] Created: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

Provide example : camel-loadbalancing-cxf-jax-rs-dao
----------------------------------------------------

                 Key: SMX4-454
                 URL: https://issues.apache.org/activemq/browse/SMX4-454
             Project: ServiceMix 4
          Issue Type: New Feature
            Reporter: Charles Moulliard
             Fix For: 4.1.0


I will provide my code for the users interested to do this kind of architecture in SMX4

REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint

Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)

Technology involved :

- Spring OSGI Service
- Spring ORM 
- EclipseLink JPA
- Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
- DAO


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


[jira] Commented: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56721#action_56721 ] 

Charles Moulliard commented on SMX4-454:
----------------------------------------

Tested successfully on last SMX4 snapshot

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Commented: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56640#action_56640 ] 

Jean-Baptiste Onofré commented on SMX4-454:
-------------------------------------------

I'm going to test the example and add it in the SMX4 samples set.

Thanks Charles

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Updated: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

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

Charles Moulliard updated SMX4-454:
-----------------------------------

    Attachment: reportincident-rest.zip

Here is the maven project + README file

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Updated: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

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

Charles Moulliard updated SMX4-454:
-----------------------------------

    Attachment:     (was: reportincident-rest.zip)

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Updated: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

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

Chris Custine updated SMX4-454:
-------------------------------

    Fix Version/s: 4.4.0
                       (was: 4.2.0)

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.4.0
>
>         Attachments: reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Updated: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

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

Charles Moulliard updated SMX4-454:
-----------------------------------

    Attachment: reportincident-rest.zip

README file modified for SMX4 :
- display list of bundles for SMX4
- change eclipselink --> eclipsejpa folder (error)
- add bundle spring:file:etc/activemq-broker.xml

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip, reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Updated: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

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

Charles Moulliard updated SMX4-454:
-----------------------------------

    Attachment: reportincident-rest.zip

error in the pom.xml file (test module removed)

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip, reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Commented: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56654#action_56654 ] 

Charles Moulliard commented on SMX4-454:
----------------------------------------

Remark : The activemq-camel bundle 5.3.0 does not work for the moment as the version range does not accept camel 2.x. The workaround is to open the jar file before to install it in SMW4/Karaf  using winrar and changing in the MANIFEST file the version range of the camel import package to [2.0,2.5) or [1.5,2.5)

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Assigned: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned SMX4-454:
-----------------------------------------

    Assignee: Jean-Baptiste Onofré

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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


[jira] Updated: (SMX4-454) Provide example : camel-loadbalancing-cxf-jax-rs-dao

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

Charles Moulliard updated SMX4-454:
-----------------------------------

    Attachment:     (was: reportincident-rest.zip)

> Provide example : camel-loadbalancing-cxf-jax-rs-dao
> ----------------------------------------------------
>
>                 Key: SMX4-454
>                 URL: https://issues.apache.org/activemq/browse/SMX4-454
>             Project: ServiceMix 4
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0
>
>         Attachments: reportincident-rest.zip
>
>
> I will provide my code for the users interested to do this kind of architecture in SMX4
> REST requests can be balanced across several jetty / HTTP Servers. The requests are processed by CXF Bean endpoint extracting the information (operation type; parameters) and placed in ActiveMQ queue. Another camel route process the messages from the queue and dependingon the operation type call the method of a service bean (= DAO). This class is handled by Spring/EclipseLink and connect to a DB (HSQLDB/Derby) to post or retrieve data. The result is send back to the CXF bean endpoint
> Remark : To have a real cluster architecture, users could deploy the second camel route in several instances (same SMX4 server or separate) in order to show that we can consume messages of a queue from different endpoints (if one fails, another can process it)
> Technology involved :
> - Spring OSGI Service
> - Spring ORM 
> - EclipseLink JPA
> - Camel (camel-jetty, camel-cxf, camel-http, camel-jms, loadbalancing, routing)
> - DAO

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