In the following video we will create a JBoss Enterprise Application Platform 5 cluster by deploying two instances to my platform with JON.
JON Videos
- JON Video – Installation (link)
- JON Video – Application Server Provisioning
JON Site
JBoss EAP 5 Recipe
<?xml version="1.0"?>
<project name="eap5-bundle" default="main"
xmlns:rhq="antlib:org.rhq.bundle">
<!-- bundle definition -->
<rhq:bundle name="eap5" version="5.1.2" description="JBoss EAP 5">
<!-- properties -->
<rhq:input-property name="profile" description="Profile"
required="true" defaultValue="all" type="string">
</rhq:input-property>
<rhq:input-property name="binding.set" description="Binding Set"
required="true" defaultValue="ports-default" type="string">
</rhq:input-property>
<rhq:input-property name="server.peer.id" description="Server Peer ID"
required="true" defaultValue="0" type="integer">
</rhq:input-property>
<!-- archive -->
<rhq:deployment-unit name="eap5" postinstallTarget="run">
<rhq:archive name="jboss-eap-5.1.2.zip" exploded="true">
</rhq:archive>
<rhq:file name="jmx-console-users.properties"
destinationDir="jboss-eap-5.1/jboss-as/server/all/conf/props"
replace="true">
</rhq:file>
</rhq:deployment-unit>
</rhq:bundle>
<target name="main"></target>
<!-- start the server -->
<target name="run">
<property name="eap.dir" value="${rhq.deploy.dir}/jboss-eap-5.1">
</property>
<chmod file="${eap.dir}/jboss-as/bin/run.sh" perm="+x"></chmod>
<exec executable="${eap.dir}/jboss-as/bin/run.sh" spawn="true">
<arg line="-c ${profile}
-Djboss.service.binding.set=${binding.set}
-Djboss.messaging.ServerPeerID=${server.peer.id}">
</arg>
</exec>
</target>
</project>