[jboss-svn-commits] JBL Code SVN: r11651 - in labs/jbossesb/trunk/product/samples/quickstarts: bpm_orchestration1 and 13 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu May 3 17:06:18 EDT 2007
Author: burrsutter
Date: 2007-05-03 17:06:18 -0400 (Thu, 03 May 2007)
New Revision: 11651
Added:
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jboss-esb.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jbossesb-properties.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jndi.properties
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/juddi.properties
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/lib/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/log4j.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/gpd.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/processdefinition.xml
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/processimage.jpg
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service1.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service2.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service3.groovy
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/MessageSpy.java
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/ProcessInfo.java
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/process_actions/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/process_actions/MyBPMActionHandler.java
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/test/
labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/test/SendTestMessage.java
Log:
initial checkin of working BPM & ESB demo
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/build.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/build.xml 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,87 @@
+<project name="Quickstart_bpm_orchestration1" default="esb" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <!-- Import the base Ant build script... -->
+ <import file="../conf/base-build.xml"/>
+
+ <property name="jbpm.services.build.dir" value="${product.dir}/build/services/jbpm.esb" />
+ <property name="jbossesb.inputdir" location="/tmp"/>
+ <property name="project.process.dir" value="processDefinition1"/>
+
+ <!-- note: this overrides the one from base-build.xml -->
+ <!-- we need to reset the base-build.xml so that it allows for the BPM feature -->
+
+ <path id="quickstart-dependencies-classpath">
+ <fileset dir="${basedir}" includes="build/**/*.jar"/>
+ <fileset dir="${basedir}" includes="build/**/*.xml"/>
+ <fileset dir="${jbpm.services.build.dir}" includes="*jar"/>
+ </path>
+
+ <target name="prepare" depends="clean">
+ <copy todir="build/${ant.project.name}.esb">
+ <fileset dir="${jbpm.services.build.dir}" />
+ </copy>
+ <mkdir dir="build/classes" />
+ </target>
+
+ <target name="esb" depends="prepare,compile">
+ <copy overwrite="true" file="jboss-esb.xml" todir="build/${ant.project.name}.esb/META-INF" />
+ <copy overwrite="true" file="${project.process.dir}/processdefinition.xml" todir="build/${ant.project.name}.esb" />
+ <copy todir="build/${ant.project.name}.esb">
+ <fileset dir="build/classes" includes="**/*" />
+ </copy>
+ <mkdir dir="build/${ant.project.name}.esb/scripts"/>
+ <copy todir="build/${ant.project.name}.esb/scripts">
+ <fileset dir="scripts" includes="**/*" />
+ </copy>
+ </target>
+
+ <target name="deploy" depends="esb">
+ <description>deploy will deploy the Quickstart .esb archive to JBoss ESB Server
+ </description>
+ <echo>Deploying Quickstart to JBoss ESB Server...</echo>
+
+ <copy overwrite="true" todir="${org.jboss.esb.server.deploy.dir}/${ant.project.name}.esb">
+ <fileset dir="${build.dir}/${ant.project.name}.esb" />
+ </copy>
+ <echo message='${line.separator}******************' />
+ <echo>Quickstart deployed to target JBoss ESB Server at '${esb.deploy.dir}'.</echo>
+ <echo>1. Check your ESB Server console to make sure the deployment was executed without errors.</echo>
+ <echo>2. Run 'ant deployProcess' and 'ant startProcess' to run the Quickstart.</echo>
+ <echo>3. Check your ESB Server console again. The Quickstart should have produced some output.</echo>
+ <echo message='******************' />
+
+ </target>
+
+ <target name="refreshProcess">
+ <echo>Moves the changed process definition to the server without restarting all the services</echo>
+ <copy overwrite="true"
+ file="${project.process.dir}/processdefinition.xml"
+ tofile="${org.jboss.esb.server.deploy.dir}/${ant.project.name}.esb/processdefinition.xml"/>
+ </target>
+
+ <target name="deployProcess" depends="compile">
+ <echo>Sends a message to deploy the process definition</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage" failonerror="true">
+ <arg value="${jbossesb.inputdir}"/>
+ <arg value=".deployProcessGW"/> <!-- file ext -->
+ <arg value="Go Deploy It"/> <!-- the file contents -->
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="startProcess" depends="compile">
+ <echo>Sends a message to start the process instance</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage" failonerror="true">
+ <arg value="${jbossesb.inputdir}"/>
+ <arg value=".startProcessGW"/> <!-- file ext -->
+ <arg value="Start It Up"/> <!-- the file contents -->
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+</project>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jboss-esb.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jboss-esb.xml 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,196 @@
+<?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">
+
+ <providers>
+ <fs-provider name="FSprovider1">
+
+ <fs-bus busid="deployGwChannel" >
+ <fs-message-filter
+ directory="/tmp"
+ input-suffix=".deployProcessGW"
+ post-delete="true"
+ error-delete="true"
+ />
+ </fs-bus>
+ <fs-bus busid="deployEsbChannel" >
+ <fs-message-filter
+ directory="/tmp"
+ input-suffix=".deployProcessESB"
+ post-delete="true"
+ error-delete="true"
+ />
+ </fs-bus>
+
+ <fs-bus busid="startGwChannel" >
+ <fs-message-filter
+ directory="/tmp"
+ input-suffix=".startProcessGW"
+ work-suffix=".startProcessGWWorking"
+ post-delete="true"
+ error-delete="true"
+ />
+ </fs-bus>
+ <fs-bus busid="startEsbChannel" >
+ <fs-message-filter
+ directory="/tmp"
+ input-suffix=".startProcessESB"
+ post-delete="true"
+ error-delete="true"
+ />
+ </fs-bus>
+ <fs-bus busid="service1EsbChannel" >
+ <fs-message-filter
+ directory="/tmp"
+ input-suffix=".service1ESB"
+ post-delete="true"
+ error-delete="true"
+ />
+ </fs-bus>
+ <fs-bus busid="service2EsbChannel" >
+ <fs-message-filter
+ directory="/tmp"
+ input-suffix=".service2ESB"
+ post-delete="true"
+ error-delete="true"
+ />
+ </fs-bus>
+ <fs-bus busid="service3EsbChannel" >
+ <fs-message-filter
+ directory="/tmp"
+ input-suffix=".service3ESB"
+ post-delete="true"
+ error-delete="true"
+ />
+ </fs-bus>
+ <fs-bus busid="resultsService" >
+ <fs-message-filter
+ directory="/tmp"
+ input-suffix=".resultsServiceESB"
+ post-delete="true"
+ error-delete="true"
+ />
+ </fs-bus>
+ </fs-provider>
+ </providers>
+
+ <services>
+ <service category="BPM_Orchestration_Deploy_Service" name="Deploy_Service"
+ description="BPM Orchestration Sample 1: Use this service to deploy a process instance">
+ <listeners>
+ <fs-listener name="Gateway" busidref="deployGwChannel"
+ maxThreads="1"
+ is-gateway="true" />
+ <fs-listener name="ESB-Listener" busidref="deployEsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="DeployFromFile"
+ class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
+ <property name="command" value="DeployProcessDefinition" />
+ <property name="process-definition-file" value="/processdefinition.xml" />
+ </action>
+ </actions>
+ </service>
+
+ <service category="BPM_Orchestration_Starter_Service" name="Starter_Service"
+ description="BPM Orchestration Sample 1: Use this service to start a process instance">
+ <listeners>
+ <fs-listener name="Gateway" busidref="startGwChannel"
+ maxThreads="4"
+ is-gateway="true" />
+ <fs-listener name="ESB-Listener" busidref="startEsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="spy"
+ class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.esb_actions.MessageSpy"/>
+
+ <!-- move the body.getContents() into jBPM -->
+ <action name="create_new_process_instance"
+ class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
+ <property name="command" value="NewProcessInstanceCommand" />
+ <property name="process-definition-name" value="processDefinition1"/>
+ <property name="actor" value="FrankSinatra"/>
+ <property name="esb-to-jbpm">
+ <!-- esb-name maps to getBody().get("eVar1") -->
+ <variables>
+ <variable esb-name="eVar1" jbpm-name="counter" value="45" />
+ <variable esb-name="BODY_CONTENT" jbpm-name="theBody" />
+ </variables>
+ </property>
+ </action>
+
+ <action name="displayProcessInfo"
+ class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.esb_actions.ProcessInfo"/>
+
+ <action name="spy"
+ class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.esb_actions.MessageSpy"/>
+
+ <action name="signal_the_new_process_instance"
+ class="org.jboss.soa.esb.services.jbpm.actions.BpmProcessor">
+ <property name="command" value="SignalCommand" />
+ <property name="esb-to-jbpm">
+ <!-- esb-name maps to getBody().get("eVar1") -->
+ <variables>
+ <variable esb-name="eVar1" jbpm-name="counter" value="45" />
+ <variable esb-name="BODY_CONTENT" jbpm-name="theBody" />
+ </variables>
+ </property>
+ </action>
+
+ <action name="spy"
+ class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.esb_actions.MessageSpy"/>
+
+ </actions>
+ </service>
+
+ <service category="BPM_Orchestration_Service1" name="Service1"
+ description="BPM Orchestration Sample 1: this is a service invoked within the process">
+ <listeners>
+ <fs-listener name="ESB-Listener" busidref="service1EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service1.groovy" />
+ </action>
+ </actions>
+ </service>
+ <service category="BPM_Orchestration_Service2" name="Service2"
+ description="BPM Orchestration Sample 1: this is a service invoked within the process">
+ <listeners>
+ <fs-listener name="ESB-Listener" busidref="service2EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service2.groovy" />
+ </action>
+ </actions>
+ </service>
+ <service category="BPM_Orchestration_Service3" name="Service3"
+ description="BPM Orchestration Sample 1: this is a service invoked within the process">
+ <listeners>
+ <fs-listener name="ESB-Listener" busidref="service3EsbChannel"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor">
+ <property name="script" value="/scripts/service3.groovy" />
+ </action>
+ </actions>
+ </service>
+ <service category="BPM_Orchestration_ResultsService" name="ResultsService"
+ description="BPM Orchestration Sample 1: Sends outbound results of the process flow">
+ <listeners>
+ <fs-listener name="ESB-Listener" busidref="resultsService"
+ maxThreads="1"/>
+ </listeners>
+ <actions>
+ <action name="spy"
+ class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.esb_actions.MessageSpy"/>
+ </actions>
+ </service>
+ </services>
+</jbossesb>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jbossesb-properties.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jbossesb-properties.xml 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,84 @@
+<?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.type" value="jboss"/>
+ <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"/>
+ </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"/>
+ <!-- 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"/>
+ </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"/>
+ </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">
+ <property name="org.jboss.soa.esb.persistence.db.connection.url" value="jdbc:hsqldb:hsql://localhost:9001/jbossesb"/>
+ <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"/>
+ <!-- # of milliseconds to timeout waiting for a connection from pool -->
+ <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>
+</esb>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jndi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jndi.properties (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/jndi.properties 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+java.naming.factory.url.pkgs=org.jnp.interfaces
+
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/juddi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/juddi.properties (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/juddi.properties 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,69 @@
+# jUDDI Registry Properties (used by RegistryServer)
+# see http://www.juddi.org for more information
+
+# The UDDI Operator Name
+juddi.operatorName = jUDDI.org
+
+# The i18n locale default codes
+juddi.i18n.languageCode = en
+juddi.i18n.countryCode = US
+
+# The UDDI DiscoveryURL Prefix
+juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
+
+# The UDDI Operator Contact Email Address
+juddi.operatorEmailAddress = admin at juddi.org
+
+# The maximum name size and maximum number
+# of name elements allows in several of the
+# FindXxxx and SaveXxxx UDDI functions.
+juddi.maxNameLength=255
+juddi.maxNameElementsAllowed=5
+
+# The maximum number of UDDI artifacts allowed
+# per publisher. A value of '-1' indicates any
+# number of artifacts is valid (These values can be
+# overridden at the individual publisher level).
+juddi.maxBusinessesPerPublisher=25
+juddi.maxServicesPerBusiness=20
+juddi.maxBindingsPerService=10
+juddi.maxTModelsPerPublisher=100
+
+# jUDDI Authentication module to use
+juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
+
+# jUDDI DataStore module currently to use
+juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
+
+# use a dataSource (if set to false a direct
+# jdbc connection will be used.
+juddi.isUseDataSource=false
+juddi.jdbcDriver=com.mysql.jdbc.Driver
+juddi.jdbcUrl=jdbc:mysql://localhost:3306/juddi
+juddi.jdbcUsername=root
+juddi.jdbcPassword=admin
+# jUDDI DataSource to use
+# juddi.dataSource=java:comp/env/jdbc/MySqlDS
+
+# jUDDI UUIDGen implementation to use
+juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
+
+# jUDDI Cryptor implementation to use
+juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
+
+# jUDDI Validator to use
+juddi.validator=org.apache.juddi.validator.DefaultValidator
+
+# jUDDI Proxy Properties (used by RegistryProxy)
+juddi.proxy.adminURL = http://localhost:8080/juddi/admin
+juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
+juddi.proxy.publishURL = http://localhost:8080/juddi/publish
+juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
+juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
+juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
+
+# JNDI settings (used by RMITransport)
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/log4j.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/log4j.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/log4j.xml 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.26.2.5 2005/09/15 09:31:02 dimitris Exp $ -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Target" value="System.out"/>
+ <param name="Threshold" value="INFO"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A size based file rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File" value="./listener.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%t][%c] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.jboss">
+ <priority value="WARN"/>
+ </category>
+ <category name="org.jboss.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.jboss.internal.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.apache">
+ <priority value="ERROR"/>
+ </category>
+ <category name="quickstart">
+ <priority value="DEBUG"/>
+ </category>
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/gpd.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/gpd.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/gpd.xml 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process-diagram name="processDefinition1" width="640" height="677">
+ <node name="start" x="149" y="25" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="node1" x="56" y="111" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="node2" x="306" y="151" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="node3" x="158" y="232" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+ <node name="end1" x="157" y="378" width="140" height="40"/>
+ <node name="Send Results" x="158" y="304" width="140" height="40">
+ <transition name="">
+ <label x="5" y="-10"/>
+ </transition>
+ </node>
+</process-diagram>
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/processdefinition.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/processdefinition.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/processdefinition.xml 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process-definition
+ xmlns="" name="processDefinition1">
+ <start-state name="start">
+ <event type="node-enter">
+ <action name="action1" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.process_actions.MyBPMActionHandler" config-type="bean"></action>
+ </event>
+ <transition name="" to="node1"></transition>
+ </start-state>
+
+ <node name="node1">
+ <event type="node-enter">
+ <action name="action2" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration_Service1</esbCategoryName>
+ <esbServiceName>Service1</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="node2"></transition>
+ </node>
+ <node name="node2">
+ <event type="node-enter">
+ <action name="action2" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration_Service2</esbCategoryName>
+ <esbServiceName>Service2</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="node3"></transition>
+ </node>
+ <node name="node3">
+ <event type="node-enter">
+ <action name="action2" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration_Service3</esbCategoryName>
+ <esbServiceName>Service3</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+ <transition name="" to="Send Results"></transition>
+ </node>
+ <end-state name="end1"></end-state>
+ <node name="Send Results">
+ <event type="node-enter">
+ <action name="action1" class="org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.process_actions.MyBPMActionHandler" config-type="bean"></action>
+ <action name="action2" class="org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler">
+ <esbCategoryName>BPM_Orchestration_ResultsService</esbCategoryName>
+ <esbServiceName>ResultsService</esbServiceName>
+ <millisToWaitForResponse>5000</millisToWaitForResponse>
+ <jbpmToEsb_variables>theBody</jbpmToEsb_variables>
+ <jbpmToEsb_esbNames>BODY_CONTENT</jbpmToEsb_esbNames>
+ <return_variables>theBody</return_variables>
+ <return_esbNames>BODY_CONTENT</return_esbNames>
+ </action>
+ </event>
+
+ <transition name="" to="end1"></transition>
+ </node>
+</process-definition>
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/processimage.jpg
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/processDefinition1/processimage.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service1.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service1.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service1.groovy 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,11 @@
+import org.jboss.soa.esb.message.*
+
+println "1********** Begin Service 1 ***********"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = ("Service 1 " + new String(message.body.contents)).getBytes()
+
+println "Out: " + new String(message.body.contents)
+
+println "************ End Service 1 ************"
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service2.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service2.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service2.groovy 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,13 @@
+import org.jboss.soa.esb.message.*
+
+println "2********** Begin Service 2 ***********"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = ("Service 2 " + new String(message.body.contents)).getBytes()
+
+println "Out: " + new String(message.body.contents)
+
+println "************ End Service 2 ************"
+
+
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service3.groovy
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service3.groovy (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/scripts/service3.groovy 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,10 @@
+import org.jboss.soa.esb.message.*
+
+println "3********** Begin Service 3 ***********"
+
+println "In: " + new String(message.body.contents)
+
+message.body.contents = ("Service 3 " + new String(message.body.contents)).getBytes()
+
+println "Out: " + new String(message.body.contents)
+println "************ End Service 3 ************"
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/MessageSpy.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/MessageSpy.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/MessageSpy.java 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,47 @@
+/*
+ * 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.
+ */
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.esb_actions;
+
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+import org.apache.log4j.Logger;
+
+public class MessageSpy extends AbstractActionLifecycle {
+
+ protected ConfigTree _config;
+ private Logger logger = Logger.getLogger(MessageSpy.class);
+
+ // modify to use the logger
+ public Message process(Message message) throws Exception {
+ if (message.getBody() != null && message.getBody().getContents() != null) {
+ logger.info("Body: " + new String(message.getBody().getContents()));
+ } else {
+ logger.info("Body Contents are NULL");
+ }
+ return message;
+ }
+
+ public MessageSpy(ConfigTree config) { _config = config; }
+
+}
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/ProcessInfo.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/ProcessInfo.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/esb_actions/ProcessInfo.java 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,44 @@
+/*
+ * 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.
+ */
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.esb_actions;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+import org.apache.log4j.Logger;
+
+public class ProcessInfo extends AbstractActionLifecycle {
+
+ protected ConfigTree _config;
+ private Logger logger = Logger.getLogger(ProcessInfo.class);
+
+ public Message process(Message message) {
+ logger.info("Token ID: " + message.getBody().get("jbpmTokenId"));
+ logger.info("Process Name: " + message.getBody().get("jbpmProcessDefName"));
+ logger.info("Process Version: " + message.getBody().get("jbpmProcessDefVersion"));
+ return message;
+ }
+
+ public ProcessInfo(ConfigTree config) {
+ _config = config;
+ }
+}
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/process_actions/MyBPMActionHandler.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/process_actions/MyBPMActionHandler.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/process_actions/MyBPMActionHandler.java 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ */
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.process_actions;
+
+import org.jbpm.context.exe.ContextInstance;
+import org.jbpm.graph.def.ActionHandler;
+import org.jbpm.graph.exe.ExecutionContext;
+import org.jbpm.graph.exe.Token;
+
+public class MyBPMActionHandler implements ActionHandler
+{
+ private static final long serialVersionUID = 1L;
+
+ Long startFrom;
+
+ public void execute(ExecutionContext exCtx) throws Exception
+ {
+ // Token token = exCtx.getToken();
+ // ContextInstance context = token.getProcessInstance().getContextInstance();
+ // Object obj = context.getVariable("counter",token);
+
+ System.out.println("Executed by the process, not by the ESB");
+
+ //context.setVariable("counter", counter , token);
+ }
+
+}
Added: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/test/SendTestMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/test/SendTestMessage.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration1/src/org/jboss/soa/esb/samples/quickstarts/bpm_orchestration1/test/SendTestMessage.java 2007-05-03 21:06:18 UTC (rev 11651)
@@ -0,0 +1,55 @@
+/*
+ * 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.
+ */
+package org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test;
+
+
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileWriter;
+import java.util.Calendar;
+
+public class SendTestMessage {
+
+ public SendTestMessage() {
+
+ }
+ public static void main(String args[]) throws Exception
+ {
+ System.out.println("Here");
+ String inputDirectory = args[0];
+ String fileExt = args[1];
+ String fileContents = args[2];
+
+ String prefix = Long.toString(Calendar.getInstance().getTimeInMillis());
+ File x = File.createTempFile(prefix + "_",fileExt,new File(inputDirectory));
+
+
+ try {
+ BufferedWriter out = new BufferedWriter(new FileWriter(x));
+ out.write(fileContents.toCharArray());
+ out.close();
+ } catch (Exception e) {
+ System.out.println("Error while writing the file: " + x.getAbsolutePath());
+ System.out.println(e.getMessage());
+ }
+ }
+
+}
More information about the jboss-svn-commits
mailing list