Camel-IPP Component On Jboss Server

The purpose of this document is to show how to deploy camel-ipp component on Jboss server.

Setup The Environment

IPP-Portal Deployment

Example

Setup The Environment

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

Then, change the jndi-name in the ipp-jcr-ds.xml file located in %JBOSS_HOME%/server/<server-name>/deploy

IPP-Portal Deployment

Once the environment is installed, we can use Maven archetype templates. To prepare a WAR deployment for JBoss 7.1, use the corresponding archetype:

Maven command sample:

mvn archetype:generate -DarchetypeGroupId=com.infinity.bpm.archetypes 
-DarchetypeArtifactId=ipp-archetype-jb71-ipp-portal-war 
-DarchetypeVersion=8.1.0 -DgroupId=com.infinity.test 
-DartifactId=ipp-portal -Dversion=1.0-SNAPSHOT

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 the portal:

  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 url such as: 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:

Camel-Jboss component setup

From Camel 2.8 onwards there is no longer the need for using the camel-jboss component as Camel is now capable of loading type converters without package scanning.

But if you are using a Camel version prior to 2.8, and 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.

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.