Camel-IPP Component On Jboss Server

The purpose of this document is to show how to deploy camel-ipp component on Jboss server. In our case we use Jboss-5.1.0, Camel-2.9.2 and IPP-7.1.0

Setup The Environement

IPP-Portal Deployement

Example

Setup The Environement

Before starting there are prerequisites must be performed to setup the Infinity Process Platform Portal and the Process Engine in JBoss.

Add a little modification to ipp-jcr-ds.xml file located in %JBOSS_HOME%/server/<server-name>/deploy, change the jndi-name

IPP-Portal Deployement

Once the environment is installed we can use Maven archetype templates to generate preconfigured deployment provided by The Infinity Process Platform.

To prepare a WAR deployment for JBoss 5.1, use the following archetype:

Maven command:

mvn archetype:generate -DarchetypeGroupId=com.infinity.bpm.archetypes 
-DarchetypeArtifactId=ipp-archetype-jb51-ipp-portal-war 
-DarchetypeVersion=7.1.0 -DgroupId=com.infinity.test 
-DartifactId=ipp-portal -Dversion=1.0-SNAPSHOT -Dgoals=dependency:unpack

Then go to the section Spring Deployment from Infinity Process Platform Online Documentation and perform all tasks.

Do the following modification to the file WEB-INF/config/ipp/spring/jackrabbit-jcr-context.xml:

  1. Change the value of class to "org.eclipse.stardust.vfs.jcr.spring.JcrSpringSessionFactory"
  2. Change the value of the jndiName to "java:jcr/jackrabbit"

In web.xml change:

<context-param>
    <param-name>carnot.login.MODEL_REQUIRED</param-name>
    <param-value>false</param-value>>
</context-param>

Do the following steps to log into infinity process platform:

  1. Use maven to build ipp-portal.war and deploy it in %JBOSS_HOME%/server/<server-name>/deploy
  2. Run the Jboss server and access to the infinity process platform using this url: http://localhost:8080/ipp-portal/

Example

In this section we will deploy a simple model using Camel Trigger which intercept information from file and put them in structured data.

The model:

Before deploying the model there are some changes in ipp-portal.war that must be performed:

  1. add camel-context.xml file in WEB-INF/config/ipp/spring
  2. add the JBoss resolver to the camel-context file, for more details see the Camel documentation http://camel.apache.org/camel-jboss.html
  3. <bean id="jbossResolver" class="org.apache.camel.jboss.JBossPackageScanClassResolver"/>
    
  4. add camel-jboss-2.3.0.jar in WEB-INF/lib
  5. add camel-core-2.9.2.jar in WEB-INF/lib
  6. add camel-spring-2.9.2.jar in WEB-INF/lib

Once the changes are done, run the server and deploy model from administrator view in portal:

Administration> Model Management> Deploy New Model

The following screenshot shows the content of file, Once you put file in folder Camel Trigger load it and send data to IPP.