[jboss-svn-commits] JBL Code SVN: r19899 - in labs/jbossesb/workspace/CDL/product/samples/trailblazer: esb/conf and 7 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu May 8 05:30:38 EDT 2008
Author: jeff.yuchang
Date: 2008-05-08 05:30:38 -0400 (Thu, 08 May 2008)
New Revision: 19899
Added:
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties-monitor.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/deployment.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/jboss-esb.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/models/
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/models/TrailBlazer.cdm
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/monitor-config.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/META-INF/
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/META-INF/jboss-service.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.common_2.3.0.v200709252135.jar
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.ecore.xmi_2.3.1.v200709252135.jar
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.ecore_2.3.1.v200709252135.jar
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.cdl.jar
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.common.jar
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.jboss.jar
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.jbossesb.jar
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.service.jar
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/pi4soa.xml
Removed:
labs/jbossesb/workspace/CDL/product/samples/trailblazer/models/
Modified:
labs/jbossesb/workspace/CDL/product/samples/trailblazer/build.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/readme.txt
Log:
Add the pi4soa.sar, monitor.esb library.
Modified: labs/jbossesb/workspace/CDL/product/samples/trailblazer/build.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/build.xml 2008-05-07 21:38:00 UTC (rev 19898)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/build.xml 2008-05-08 09:30:38 UTC (rev 19899)
@@ -54,7 +54,9 @@
value="${soa.esb.lib.src.dir}"/>
<property name="soa.esb.lib.ext.dir" value="${soa.esb.lib.dir}/ext"/>
-
+
+ <property name="target-server" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}" />
+
<!-- classpath -->
<path id="esb.samples.trailblazer.esb.classpath">
<fileset dir="${soa.esb.lib.dir}/ext" includes="*.jar"/>
@@ -219,8 +221,6 @@
<target name="deploy" depends="jar, war">
- <property name="target-server" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}" />
-
<echo message="Deploying Trailblazer EAR and WAR files to target server '${target-server}'."/>
<copy todir="${target-server}/deploy">
<fileset dir="${esb.dest}/dist/" includes="trailblazer.esb" />
@@ -228,6 +228,36 @@
</copy>
</target>
+
+ <target name="deploy-monitor-lib" depends="register-monitor-filter">
+ <echo message="Deploy pi4soa.sar, monitor.esb files to the target server '${target-server}'." />
+ <copy todir="${target-server}/deploy/pi4soa.sar">
+ <fileset dir="${basedir}/esb/lib/cdl/pi4soa.sar"/>
+ </copy>
+ <copy todir="${target-server}/deploy/monitor.esb">
+ <fileset dir="${basedir}/esb/lib/cdl/monitor.esb" />
+ </copy>
+ </target>
+
+ <target name="undeploy-monitor-lib" depends="unregister-monitor-filter">
+ <echo message="Undeploy pi4soa.sar, monitor.esb files from the target sever '${target-server}'."/>
+ <delete dir="${target-server}/deploy/pi4soa.sar" />
+ <delete dir="${target-server}/deploy/monitor.esb" />
+ </target>
+
+ <target name="register-monitor-filter">
+ <echo message="register the monitor filter in the jbossesb-properties file" />
+ <delete file="${target-server}/deploy/jbossesb.sar/jbossesb-properties.xml" />
+ <copy file="${basedir}/esb/conf/jbossesb-properties-monitor.xml" tofile="${target-server}/deploy/jbossesb.sar/jbossesb-properties.xml" />
+ </target>
+
+ <target name="unregister-monitor-filter">
+ <echo message="unregister the monitor filter from the jbossesb-properties file" />
+ <delete file="${target-server}/deploy/jbossesb.sar/jbossesb-properties.xml" />
+ <copy file="${basedir}/esb/conf/jbossesb-properties.xml" tofile="${target-server}/deploy/jbossesb.sar/jbossesb-properties.xml" />
+ </target>
+
+
<!-- Short target names -->
<target name="compile" depends="esb.compile,client.compile"/>
<target name="jar" depends="esb.jar"/>
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties-monitor.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties-monitor.xml (rev 0)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties-monitor.xml 2008-05-08 09:30:38 UTC (rev 19899)
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and others contributors as indicated
+ by the @authors tag. All rights reserved.
+ See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+ This copyrighted material is made available to anyone wishing to use,
+ modify, copy, or redistribute it subject to the terms and conditions
+ of the GNU Lesser General Public License, v. 2.1.
+ This program is distributed in the hope that it will be useful, but WITHOUT A
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public License,
+ v.2.1 along with this distribution; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ MA 02110-1301, USA.
+
+ (C) 2005-2006,
+ @author JBoss Inc.
+-->
+<!-- $Id: jbossesb-unittest-properties.xml $ -->
+<!--
+ These options are described in the JBossESB manual.
+ Defaults are provided here for convenience only.
+
+ Please read through this file prior to using the system, and consider
+ updating the specified entries.
+-->
+<esb
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
+ <properties name="core">
+ <property name="org.jboss.soa.esb.jndi.server.context.factory" value="org.jnp.interfaces.NamingContextFactory"/>
+ <property name="org.jboss.soa.esb.jndi.server.url" value="localhost"/>
+ <property name="org.jboss.soa.esb.persistence.connection.factory" value="org.jboss.internal.soa.esb.persistence.format.MessageStoreFactoryImpl"/>
+ <property name="org.jboss.soa.esb.loadbalancer.policy" value="org.jboss.soa.esb.listeners.ha.RoundRobin"/>
+ </properties>
+ <properties name="registry">
+ <property name="org.jboss.soa.esb.registry.queryManagerURI" value="org.apache.juddi.registry.local.InquiryService#inquire"/>
+ <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="org.apache.juddi.registry.local.PublishService#publish"/>
+ <property name="org.jboss.soa.esb.registry.implementationClass" value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
+ <property name="org.jboss.soa.esb.registry.factoryClass" value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
+ <property name="org.jboss.soa.esb.registry.user" value="jbossesb"/>
+ <property name="org.jboss.soa.esb.registry.password" value="password"/>
+ <!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
+ <property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.LocalTransport"/>
+ </properties>
+ <properties name="transports" depends="core">
+ <property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
+ <property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
+ <property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
+ <property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
+ <property name="org.jboss.soa.esb.mail.smtp.auth" value="true"/>
+ <property name="org.jboss.soa.esb.ftp.localdir" value="/tmp"/>
+ <property name="org.jboss.soa.esb.ftp.remotedir" value="/tmp"/>
+ <property name="org.jboss.soa.esb.jms.connectionPool" value="20"/>
+ <property name="org.jboss.soa.esb.jms.sessionSleep" value="30"/>
+ </properties>
+ <properties name="connection">
+ <property name="min-pool-size" value="5"/>
+ <property name="max-pool=size" value="10"/>
+ <property name="blocking-timeout-millis" value="5000"/>
+ <property name="abandoned-connection-timeout" value="10000"/>
+ <property name="abandoned-connection-time-interval" value="30000"/>
+ </properties>
+ <properties name="dbstore">
+
+ <!-- connection manager type -->
+ <!-- <property name="org.jboss.soa.esb.persistence.db.conn.manager" value="org.jboss.internal.soa.esb.persistence.manager.StandaloneConnectionManager"/> -->
+ <property name="org.jboss.soa.esb.persistence.db.conn.manager" value="org.jboss.internal.soa.esb.persistence.manager.J2eeConnectionManager"/>
+
+ <!-- this property is only used if using the j2ee connection manager -->
+ <property name="org.jboss.soa.esb.persistence.db.datasource.name" value="java:/JBossESBDS"/>
+
+ <!-- standalone connection pooling settings -->
+ <property name="org.jboss.soa.esb.persistence.db.connection.url" value="jdbc:hsqldb:hsql://localhost:9001/"/>
+ <property name="org.jboss.soa.esb.persistence.db.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
+ <property name="org.jboss.soa.esb.persistence.db.user" value="sa"/>
+ <property name="org.jboss.soa.esb.persistence.db.pwd" value=""/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.initial.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.min.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.max.size" value="5"/>
+ <!--table managed by pool to test for valid connections - created by pool automatically -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.test.table" value="pooltest"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.timeout.millis" value="5000"/>
+
+ </properties>
+
+ <properties name="filters">
+ <property name="org.jboss.soa.esb.filter.1" value="org.jboss.internal.soa.esb.message.filter.MetaDataFilter"/>
+ <property name="org.jboss.soa.esb.filter.2" value="org.jboss.internal.soa.esb.message.filter.GatewayFilter"/>
+ <property name="org.jboss.soa.esb.filter.3" value="org.pi4soa.jbossesb.monitor.MonitorFilter" />
+ </properties>
+</esb>
\ No newline at end of file
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties-monitor.xml
___________________________________________________________________
Name: svn:executable
+ *
Modified: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties.xml 2008-05-07 21:38:00 UTC (rev 19898)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jbossesb-properties.xml 2008-05-08 09:30:38 UTC (rev 19899)
@@ -31,32 +31,31 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
<properties name="core">
- <property name="org.jboss.soa.esb.jndi.server.type" value="jboss"/>
+ <property name="org.jboss.soa.esb.jndi.server.context.factory" value="org.jnp.interfaces.NamingContextFactory"/>
<property name="org.jboss.soa.esb.jndi.server.url" value="localhost"/>
<property name="org.jboss.soa.esb.persistence.connection.factory" value="org.jboss.internal.soa.esb.persistence.format.MessageStoreFactoryImpl"/>
+ <property name="org.jboss.soa.esb.loadbalancer.policy" value="org.jboss.soa.esb.listeners.ha.RoundRobin"/>
</properties>
- <properties name="registry">
- <property name="org.jboss.soa.esb.registry.queryManagerURI"
- value="jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire"/>
- <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI"
- value="jnp://localhost:1099/PublishService?org.apache.juddi.registry.rmi.Publish#publish" />
- <property name="org.jboss.soa.esb.registry.implementationClass"
- value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
- <property name="org.jboss.soa.esb.registry.factoryClass"
- value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
- <property name="org.jboss.soa.esb.registry.user"
- value="jbossesb"/>
- <property name="org.jboss.soa.esb.registry.password"
- value="password"/>
+ <properties name="registry">
+ <property name="org.jboss.soa.esb.registry.queryManagerURI" value="org.apache.juddi.registry.local.InquiryService#inquire"/>
+ <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI" value="org.apache.juddi.registry.local.PublishService#publish"/>
+ <property name="org.jboss.soa.esb.registry.implementationClass" value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
+ <property name="org.jboss.soa.esb.registry.factoryClass" value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
+ <property name="org.jboss.soa.esb.registry.user" value="jbossesb"/>
+ <property name="org.jboss.soa.esb.registry.password" value="password"/>
<!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
- <property name="org.jboss.soa.esb.scout.proxy.transportClass"
- value="org.apache.ws.scout.transport.RMITransport"/>
+ <property name="org.jboss.soa.esb.scout.proxy.transportClass" value="org.apache.ws.scout.transport.LocalTransport"/>
</properties>
<properties name="transports" depends="core">
<property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
<property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
<property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
<property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
+ <property name="org.jboss.soa.esb.mail.smtp.auth" value="true"/>
+ <property name="org.jboss.soa.esb.ftp.localdir" value="/tmp"/>
+ <property name="org.jboss.soa.esb.ftp.remotedir" value="/tmp"/>
+ <property name="org.jboss.soa.esb.jms.connectionPool" value="20"/>
+ <property name="org.jboss.soa.esb.jms.sessionSleep" value="30"/>
</properties>
<properties name="connection">
<property name="min-pool-size" value="5"/>
@@ -66,26 +65,29 @@
<property name="abandoned-connection-time-interval" value="30000"/>
</properties>
<properties name="dbstore">
- <property name="org.jboss.soa.esb.persistence.db.conn.manager" value="org.jboss.internal.soa.esb.persistence.manager.StandaloneConnectionManager"/>
-
+
+ <!-- connection manager type -->
+ <!-- <property name="org.jboss.soa.esb.persistence.db.conn.manager" value="org.jboss.internal.soa.esb.persistence.manager.StandaloneConnectionManager"/> -->
+ <property name="org.jboss.soa.esb.persistence.db.conn.manager" value="org.jboss.internal.soa.esb.persistence.manager.J2eeConnectionManager"/>
+
+ <!-- this property is only used if using the j2ee connection manager -->
+ <property name="org.jboss.soa.esb.persistence.db.datasource.name" value="java:/JBossESBDS"/>
+
+ <!-- standalone connection pooling settings -->
<property name="org.jboss.soa.esb.persistence.db.connection.url" value="jdbc:hsqldb:hsql://localhost:9001/"/>
<property name="org.jboss.soa.esb.persistence.db.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
- <property name="org.jboss.soa.esb.persistence.db.user" value="sa"/>
- <property name="org.jboss.soa.esb.persistence.db.pwd" value=""/>
+ <property name="org.jboss.soa.esb.persistence.db.user" value="sa"/>
+ <property name="org.jboss.soa.esb.persistence.db.pwd" value=""/>
<property name="org.jboss.soa.esb.persistence.db.pool.initial.size" value="2"/>
- <property name="org.jboss.soa.esb.persistence.db.pool.min.size" value="2"/>
- <property name="org.jboss.soa.esb.persistence.db.pool.max.size" value="5"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.min.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.max.size" value="5"/>
<!--table managed by pool to test for valid connections - created by pool automatically -->
- <property name="org.jboss.soa.esb.persistence.db.pool.test.table" value="pooltest"/>
- <!-- # of milliseconds to timeout waiting for a connection from pool -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.test.table" value="pooltest"/>
<property name="org.jboss.soa.esb.persistence.db.pool.timeout.millis" value="5000"/>
- </properties>
- <properties name="messagerouting">
- <property name="org.jboss.soa.esb.routing.cbrClass" value="org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter"/>
- </properties>
-
+
+ </properties>
<properties name="filters">
<property name="org.jboss.soa.esb.filter.1" value="org.jboss.internal.soa.esb.message.filter.MetaDataFilter"/>
- <property name="org.jboss.soa.esb.filter.2" value="org.pi4soa.jbossesb.monitor.MonitorFilter"/>
+ <property name="org.jboss.soa.esb.filter.2" value="org.jboss.internal.soa.esb.message.filter.GatewayFilter"/>
</properties>
-</esb>
+</esb>
\ No newline at end of file
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/deployment.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/deployment.xml (rev 0)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/deployment.xml 2008-05-08 09:30:38 UTC (rev 19899)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=jbossesb.esb</depends>
+ <depends>pi4soa:service=pi4soa</depends>
+</jbossesb-deployment>
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/jboss-esb.xml (rev 0)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/META-INF/jboss-esb.xml 2008-05-08 09:30:38 UTC (rev 19899)
@@ -0,0 +1,6 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5">
+ <!--
+ jbossesb internal services
+ -->
+</jbossesb>
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/models/TrailBlazer.cdm
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/models/TrailBlazer.cdm (rev 0)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/models/TrailBlazer.cdm 2008-05-08 09:30:38 UTC (rev 19899)
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<org.pi4soa.cdl:Package xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:org.pi4soa.cdl="http:///org/pi4soa/cdl.ecore" description="The choreography description for TrailBlazer" name="TrailBlazer" author="gary" version="0.1" targetNamespace="http://www.pi4soa.org/TrailBlazer">
+ <typeDefinitions>
+ <nameSpaces description="Target Namespace for TrailBlazer" prefix="tns" uRI="http://www.pi4soa.org/TrailBlazer"/>
+ <nameSpaces description="XML Schema Namespace" prefix="xsd" uRI="http://www.w3.org/2001/XMLSchema"/>
+ <informationTypes description="This is the information type CreditCheckReq" name="CreditCheckReq" elementName="creditCheck"/>
+ <informationTypes description="This is the information type CreditCheckResp" name="CreditCheckResp" elementName="creditCheckResult"/>
+ <informationTypes description="This is the information type InsufficientCredit" name="InsufficientCredit" elementName="insufficientCredit"/>
+ <informationTypes description="This is the information type Quote" name="Quote" elementName="quote"/>
+ <informationTypes description="This is the information type QuoteRefType" name="QuoteRefType" typeName="xsd:string"/>
+ <informationTypes description="This is the information type QuoteReq" name="QuoteReq" elementName="quoteRequest"/>
+ <informationTypes description="This is the information type SSNType" name="SSNType" typeName="xsd:string"/>
+ <informationTypes description="This is the information type URIType" name="URIType" typeName="xsd:anyURI"/>
+ <tokens description="This is the token QuoteRef" name="QuoteRef" informationType="//@typeDefinitions/@informationTypes.4"/>
+ <tokens description="This is the token SSN" name="SSN" informationType="//@typeDefinitions/@informationTypes.6"/>
+ <tokens description="This is the token URI" name="URI" informationType="//@typeDefinitions/@informationTypes.7"/>
+ <tokenLocators description="This is the token locator QuoteRef4InsufficientCredit" token="//@typeDefinitions/@tokens.0" informationType="//@typeDefinitions/@informationTypes.2" query="//ref/text()" name="QuoteRef4InsufficientCredit"/>
+ <tokenLocators description="This is the token locator QuoteRef4Quote" token="//@typeDefinitions/@tokens.0" informationType="//@typeDefinitions/@informationTypes.3" query="//ref/text()" name="QuoteRef4Quote"/>
+ <tokenLocators description="This is the token locator QuoteRef4QuoteReq" token="//@typeDefinitions/@tokens.0" informationType="//@typeDefinitions/@informationTypes.5" query="//@ref" name="QuoteRef4QuoteReq"/>
+ <tokenLocators description="This is the token locator SSN4CreditCheckReq" token="//@typeDefinitions/@tokens.1" informationType="//@typeDefinitions/@informationTypes.0" query="//@ssn" name="SSN4CreditCheckReq"/>
+ <tokenLocators description="This is the token locator SSN4CreditCheckResp" token="//@typeDefinitions/@tokens.1" informationType="//@typeDefinitions/@informationTypes.1" query="//@ssn" name="SSN4CreditCheckResp"/>
+ <tokenLocators description="This is the token locator SSN4InsufficientCredit" token="//@typeDefinitions/@tokens.1" informationType="//@typeDefinitions/@informationTypes.2" query="//customerUID/text()" name="SSN4InsufficientCredit"/>
+ <tokenLocators description="This is the token locator SSN4Quote" token="//@typeDefinitions/@tokens.1" informationType="//@typeDefinitions/@informationTypes.3" query="//customerUID/text()" name="SSN4Quote"/>
+ <tokenLocators description="This is the token locator SSN4QuoteReq" token="//@typeDefinitions/@tokens.1" informationType="//@typeDefinitions/@informationTypes.5" query="//@ssn" name="SSN4QuoteReq"/>
+ <roleTypes description="This is the role type Bank" name="Bank">
+ <behaviors description="This is the behavior BankBehavior" name="BankBehavior" interface="bank"/>
+ </roleTypes>
+ <roleTypes description="This is the role type CreditAgency" name="CreditAgency">
+ <behaviors description="This is the behavior CreditAgencyBehavior" name="CreditAgencyBehavior" interface="creditAgency"/>
+ </roleTypes>
+ <roleTypes description="This is the role type LoanBroker" name="LoanBroker">
+ <behaviors description="This is the behavior LoanBrokerBehavior" name="LoanBrokerBehavior" interface="loanBroker"/>
+ </roleTypes>
+ <roleTypes description="This is the role type Notifier" name="Notifier">
+ <behaviors description="This is the behavior NotifierBehavior" name="NotifierBehavior" interface="notifier"/>
+ </roleTypes>
+ <relationshipTypes description="Relationship between LoanBroker and Bank" name="LoanBrokerToBankRel" firstRoleType="//@typeDefinitions/@roleTypes.2" secondRoleType="//@typeDefinitions/@roleTypes.0"/>
+ <relationshipTypes description="Relationship between LoanBroker and CreditAgency" name="LoanBrokerToCreditAgencyRel" firstRoleType="//@typeDefinitions/@roleTypes.2" secondRoleType="//@typeDefinitions/@roleTypes.1"/>
+ <relationshipTypes description="Relationship between LoanBroker and Notifier" name="LoanBrokerToNotifierRel" firstRoleType="//@typeDefinitions/@roleTypes.2" secondRoleType="//@typeDefinitions/@roleTypes.3"/>
+ <participantTypes description="This is the participant type BankParticipant" name="BankParticipant" roleTypes="//@typeDefinitions/@roleTypes.0"/>
+ <participantTypes description="This is the participant type CreditAgencyParticipant" name="CreditAgencyParticipant" roleTypes="//@typeDefinitions/@roleTypes.1"/>
+ <participantTypes description="This is the participant type LoanBrokerParticipant" name="LoanBrokerParticipant" roleTypes="//@typeDefinitions/@roleTypes.2"/>
+ <participantTypes description="This is the participant type NotifierParticipant" name="NotifierParticipant" roleTypes="//@typeDefinitions/@roleTypes.3"/>
+ <channelTypes description="This is the channel type BankChannelType" name="BankChannelType" referenceToken="//@typeDefinitions/@tokens.2" roleType="//@typeDefinitions/@roleTypes.0">
+ <identities description="SSN Id and Quote Ref" tokens="//@typeDefinitions/@tokens.1 //@typeDefinitions/@tokens.0"/>
+ <identities description="SSN Id" type="Association" tokens="//@typeDefinitions/@tokens.1"/>
+ </channelTypes>
+ <channelTypes description="This is the channel type CreditAgencyChannelType" name="CreditAgencyChannelType" referenceToken="//@typeDefinitions/@tokens.2" roleType="//@typeDefinitions/@roleTypes.1">
+ <identities description="SSN Id" tokens="//@typeDefinitions/@tokens.1"/>
+ </channelTypes>
+ <channelTypes description="This is the channel type NotifierChannelType" name="NotifierChannelType" referenceToken="//@typeDefinitions/@tokens.2" roleType="//@typeDefinitions/@roleTypes.3">
+ <identities description="SSN Id" type="Association" tokens="//@typeDefinitions/@tokens.1"/>
+ <identities description="SSN Id and Quote Ref" tokens="//@typeDefinitions/@tokens.1 //@typeDefinitions/@tokens.0"/>
+ </channelTypes>
+ </typeDefinitions>
+ <choreographies description="Choreography flow for the TrailBlazer process" name="TrailBlazerProcess" root="true">
+ <enclosedChoreographies name="RequestQuote">
+ <variableDefinitions description="Channel to facilitate interaction to Bank" name="BankChannel" type="//@typeDefinitions/@channelTypes.0" roleTypes="//@typeDefinitions/@roleTypes.0 //@typeDefinitions/@roleTypes.2"/>
+ <variableDefinitions description="Channel to facilitate interaction to Notifier" name="NotifierChannel" type="//@typeDefinitions/@channelTypes.2" roleTypes="//@typeDefinitions/@roleTypes.2 //@typeDefinitions/@roleTypes.3"/>
+ <activities xsi:type="org.pi4soa.cdl:Interaction" name="QuoteRequest" operation="requestQuote" channelVariable="//@choreographies.0/@enclosedChoreographies.0/@variableDefinitions.0" relationship="//@typeDefinitions/@relationshipTypes.0">
+ <exchangeDetails description="This is the exchange details for the request exchange associated with interaction QuoteRequest" name="QuoteRequestRequestExchange" type="//@typeDefinitions/@informationTypes.5"/>
+ <exchangeDetails description="This is the exchange details for the respond exchange associated with interaction QuoteRequest" name="QuoteRequestRespondExchange" type="//@typeDefinitions/@informationTypes.3" action="Respond"/>
+ </activities>
+ <activities xsi:type="org.pi4soa.cdl:Interaction" name="NotifyCustomer" operation="notify" channelVariable="//@choreographies.0/@enclosedChoreographies.0/@variableDefinitions.1" relationship="//@typeDefinitions/@relationshipTypes.2">
+ <exchangeDetails description="This is the exchange details for the request exchange associated with interaction NotifyCustomer" name="NotifyCustomerRequestExchange" type="//@typeDefinitions/@informationTypes.3"/>
+ </activities>
+ </enclosedChoreographies>
+ <variableDefinitions description="Channel to facilitate interaction to CreditAgency" name="CreditAgencyChannel" type="//@typeDefinitions/@channelTypes.1" roleTypes="//@typeDefinitions/@roleTypes.1 //@typeDefinitions/@roleTypes.2"/>
+ <variableDefinitions description="This is the variable NotifierChannel" name="NotifierChannel" type="//@typeDefinitions/@channelTypes.2" roleTypes="//@typeDefinitions/@roleTypes.2 //@typeDefinitions/@roleTypes.3"/>
+ <variableDefinitions description="This is the variable creditCheckResult" name="creditCheckResult" type="//@typeDefinitions/@informationTypes.1" roleTypes="//@typeDefinitions/@roleTypes.2"/>
+ <activities xsi:type="org.pi4soa.cdl:Interaction" name="CreditCheck" operation="checkCredit" channelVariable="//@choreographies.0/@variableDefinitions.0" relationship="//@typeDefinitions/@relationshipTypes.1">
+ <exchangeDetails description="This is the exchange details for the request exchange associated with interaction CreditCheck" name="CreditCheckRequestExchange" type="//@typeDefinitions/@informationTypes.0"/>
+ </activities>
+ <activities xsi:type="org.pi4soa.cdl:Interaction" name="CreditCheck" operation="checkCredit" channelVariable="//@choreographies.0/@variableDefinitions.0" relationship="//@typeDefinitions/@relationshipTypes.1">
+ <exchangeDetails description="This is the exchange details for the respond exchange associated with interaction CreditCheck" name="CreditCheckRespondExchange" type="//@typeDefinitions/@informationTypes.1" action="Respond" receiveVariable="//@choreographies.0/@variableDefinitions.2"/>
+ </activities>
+ <activities xsi:type="org.pi4soa.cdl:Choice">
+ <activities xsi:type="org.pi4soa.cdl:Conditional" description="Sufficient credit to request quotes" name="ValidCredit" expression="cdl:getVariable('creditCheckResult','','//@score') >= 4">
+ <activities xsi:type="org.pi4soa.cdl:Parallel">
+ <activities xsi:type="org.pi4soa.cdl:Sequence" description="First quote">
+ <activities xsi:type="org.pi4soa.cdl:Perform" choreography="//@choreographies.0/@enclosedChoreographies.0"/>
+ </activities>
+ <activities xsi:type="org.pi4soa.cdl:Sequence" description="Second quote">
+ <activities xsi:type="org.pi4soa.cdl:Perform" choreography="//@choreographies.0/@enclosedChoreographies.0"/>
+ </activities>
+ </activities>
+ </activities>
+ <activities xsi:type="org.pi4soa.cdl:Sequence" description="Insufficient credit">
+ <activities xsi:type="org.pi4soa.cdl:Interaction" name="NotifyCustomer" operation="notify" channelVariable="//@choreographies.0/@variableDefinitions.1" relationship="//@typeDefinitions/@relationshipTypes.2">
+ <exchangeDetails description="This is the exchange details for the request exchange associated with interaction NotifyCustomer" name="NotifyCustomerRequestExchange" type="//@typeDefinitions/@informationTypes.2"/>
+ </activities>
+ </activities>
+ </activities>
+ </choreographies>
+</org.pi4soa.cdl:Package>
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/monitor-config.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/monitor-config.xml (rev 0)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/monitor.esb/monitor-config.xml 2008-05-08 09:30:38 UTC (rev 19899)
@@ -0,0 +1,46 @@
+<!--
+/*
+# * Copyright 2005-8 Pi4 Technologies Ltd
+# *
+# * Licensed under the Apache License, Version 2.0 (the "License");
+# * you may not use this file except in compliance with the License.
+# * You may obtain a copy of the License at
+# *
+# * http://www.apache.org/licenses/LICENSE-2.0
+# *
+# * Unless required by applicable law or agreed to in writing, software
+# * distributed under the License is distributed on an "AS IS" BASIS,
+# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# * See the License for the specific language governing permissions and
+# * limitations under the License.
+# *
+# *
+# * Change History:
+# * 14, April 2008: Initial version created by gary
+# */
+-->
+
+<monitor>
+ <service cdmFilePath="models/TrailBlazer.cdm" participantType="LoanBrokerParticipant" >
+ <output epr="queue/esb-tb-creditAgencyQueue" />
+ <input epr="queue/esb-tb-creditAgencyQueue_reply" />
+ <output epr="queue/esb-tb-jmsBankRequestQueue" />
+ <output epr="queue/esb-tb-fileBankRequestQueue" />
+ <input epr="queue/esb-tb-jmsBankResponseQueue" />
+ <output epr="queue/esb-tb-customerNotifier" />
+ <input epr="queue/esb-tb-fileBankResponseQueue" />
+ </service>
+ <service cdmFilePath="models/TrailBlazer.cdm" participantType="CreditAgencyParticipant" >
+ <input epr="queue/esb-tb-creditAgencyQueue" />
+ <output epr="queue/esb-tb-creditAgencyQueue_reply" />
+ </service>
+ <service cdmFilePath="models/TrailBlazer.cdm" participantType="BankParticipant" >
+ <input epr="queue/esb-tb-jmsBankRequestQueue" />
+ <input epr="queue/esb-tb-fileBankRequestQueue" />
+ <output epr="queue/esb-tb-jmsBankResponseQueue" />
+ <output epr="queue/esb-tb-fileBankResponseQueue" />
+ </service>
+ <service cdmFilePath="models/TrailBlazer.cdm" participantType="NotifierParticipant" >
+ <input epr="queue/esb-tb-customerNotifier" />
+ </service>
+</monitor>
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/META-INF/jboss-service.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/META-INF/jboss-service.xml (rev 0)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/META-INF/jboss-service.xml 2008-05-08 09:30:38 UTC (rev 19899)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<service>
+ <mbean code="org.pi4soa.jboss.service.Pi4SOAService"
+ name="pi4soa:service=pi4soa">
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Topic"
+ name="jboss.mq.destination:service=Topic,name=tracker">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+</service>
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.common_2.3.0.v200709252135.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.common_2.3.0.v200709252135.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.ecore.xmi_2.3.1.v200709252135.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.ecore.xmi_2.3.1.v200709252135.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.ecore_2.3.1.v200709252135.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.eclipse.emf.ecore_2.3.1.v200709252135.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.cdl.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.cdl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.common.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.common.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.jboss.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.jboss.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.jbossesb.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.jbossesb.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.service.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/org.pi4soa.service.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/pi4soa.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/pi4soa.xml (rev 0)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/lib/cdl/pi4soa.sar/pi4soa.xml 2008-05-08 09:30:38 UTC (rev 19899)
@@ -0,0 +1,38 @@
+<!--
+/*
+# * Copyright 2005-8 Pi4 Technologies Ltd
+# *
+# * Licensed under the Apache License, Version 2.0 (the "License");
+# * you may not use this file except in compliance with the License.
+# * You may obtain a copy of the License at
+# *
+# * http://www.apache.org/licenses/LICENSE-2.0
+# *
+# * Unless required by applicable law or agreed to in writing, software
+# * distributed under the License is distributed on an "AS IS" BASIS,
+# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# * See the License for the specific language governing permissions and
+# * limitations under the License.
+# *
+# *
+# * Change History:
+# * 14, April 2008: Initial version created by gary
+# */
+-->
+
+<pi4soa>
+ <container>
+ <serviceTracker class="org.pi4soa.service.tracker.jms.JMSServiceTracker" >
+ <jmsConnectionFactory>ConnectionFactory</jmsConnectionFactory>
+ <jmsDestination>topic/tracker</jmsDestination>
+ <recordMessagePayload>true</recordMessagePayload>
+ </serviceTracker>
+ </container>
+ <monitor>
+ <serviceTracker class="org.pi4soa.service.tracker.jms.JMSServiceTracker" >
+ <jmsConnectionFactory>ConnectionFactory</jmsConnectionFactory>
+ <jmsDestination>topic/tracker</jmsDestination>
+ <recordMessagePayload>true</recordMessagePayload>
+ </serviceTracker>
+ </monitor>
+</pi4soa>
\ No newline at end of file
Modified: labs/jbossesb/workspace/CDL/product/samples/trailblazer/readme.txt
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/readme.txt 2008-05-07 21:38:00 UTC (rev 19898)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/readme.txt 2008-05-08 09:30:38 UTC (rev 19899)
@@ -23,7 +23,8 @@
File : jboss-esb.xml (TB_ROOT/esb/conf/jboss-esb.xml)
- there is a "<fs-provider>..</fs-provider>" block, update the "directory" attribute value as same as file.output.directory value in bank.properties file.
--------------------------------------------
+Basic Trailblazer example running instructions:
+------------------------------------------------
To run the Trailblazer, follow these steps:
1 - run your JBoss AS - you will need to have the 4.2.1 or higher with the EJB3 support installed. This is required because the TB uses the JSR-181 pojo style web service.
@@ -31,12 +32,26 @@
2 - from the TB_ROOT, execute the command to start the ESB: "ant deploy"
* this should deploy the ESB and WAR files to your JBoss AS server/default.
-3 - from the TB_ROOT/banks execute the command to start the JMS Bank service: "ant runJMSBank"
+3 - from the TB_ROOT/banks execute the command to start the JMS Bank service: "ant runJMSBank".
-4 - start another window/shell, from the TB_ROOT/banks execute the command to start the File bank service: "ant runFileBank"
+4 - start another window/shell, from the TB_ROOT/banks execute the command to start the File bank service: "ant runFileBank".
5 - from the jsp: localhost:8080/trailblazer.
That's it. Now you can submit quotes, You will see either a loan request rejected (single email)
because the score is less than 4, or two emails (one from JMS bank and one from FileBased
bank) with valid quotes.
+
+
+With monitoring functionality running instructions:
+------------------------------------------------------
+To run the Trailblazer example with monitoring functionality.
+
+1 - please make sure you have done everything needed that shown in the "Required to run
+the Trailblazer" and the "Settings required to edit before running" section.
+
+2 - from the TB_ROOT, execute the command to deploy monitor related packages: "ant deploy-monitor-lib".
+
+3 - following in instructions in the "Basic Trailblazer example running instructions" section.
+
+
More information about the jboss-svn-commits
mailing list