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
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
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:
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:
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:
In this section we will deploy a simple model using Camel Trigger which intercept information from file and put them in structured data.
Before deploying the model there are some changes in ipp-portal.war that must be performed:
<bean id="jbossResolver" class="org.apache.camel.jboss.JBossPackageScanClassResolver"/>
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.