[jboss-svn-commits] JBL Code SVN: r19957 - in labs/jbossesb/workspace/CDL/product/install: governance and 7 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu May 15 03:52:29 EDT 2008


Author: jeff.yuchang
Date: 2008-05-15 03:52:29 -0400 (Thu, 15 May 2008)
New Revision: 19957

Added:
   labs/jbossesb/workspace/CDL/product/install/governance/
   labs/jbossesb/workspace/CDL/product/install/governance/build.xml
   labs/jbossesb/workspace/CDL/product/install/governance/conf/
   labs/jbossesb/workspace/CDL/product/install/governance/conf/jbossesb-properties-monitor.xml
   labs/jbossesb/workspace/CDL/product/install/governance/models/
   labs/jbossesb/workspace/CDL/product/install/governance/models/trailblazer.zip
   labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/
   labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/META-INF/
   labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/META-INF/deployment.xml
   labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/META-INF/jboss-esb.xml
   labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/models/
   labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/models/TrailBlazer.cdm
   labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/monitor-config.xml
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/META-INF/
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/META-INF/jboss-service.xml
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.eclipse.emf.common_2.3.0.v200709252135.jar
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.eclipse.emf.ecore.xmi_2.3.1.v200709252135.jar
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.eclipse.emf.ecore_2.3.1.v200709252135.jar
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.cdl.jar
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.common.jar
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.jboss.jar
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.jbossesb.jar
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.service.jar
   labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/pi4soa.xml
   labs/jbossesb/workspace/CDL/product/install/governance/readme.txt
Log:
Add governance libraries/WS-CDL integration libraries


Added: labs/jbossesb/workspace/CDL/product/install/governance/build.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/build.xml	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/build.xml	2008-05-15 07:52:29 UTC (rev 19957)
@@ -0,0 +1,37 @@
+<project name="governance" default="deploy" basedir=".">	
+	
+	<property name="install.dir" value="../"/>
+	<property file="${install.dir}/deployment.properties"/>
+
+        <property name="target-server" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}" />
+
+	<target name="deploy" 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}/pi4soa.sar"/>
+		   </copy>
+		   <copy todir="${target-server}/deploy/monitor.esb">
+			   <fileset dir="${basedir}/monitor.esb" />
+		   </copy>
+	</target>
+	
+	<target name="undeploy" 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}/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="${install.dir}/conf/jbossesb-properties.xml" tofile="${target-server}/deploy/jbossesb.sar/jbossesb-properties.xml" />
+	</target>
+	
+	        
+</project>


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/build.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: labs/jbossesb/workspace/CDL/product/install/governance/conf/jbossesb-properties-monitor.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/conf/jbossesb-properties-monitor.xml	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/conf/jbossesb-properties-monitor.xml	2008-05-15 07:52:29 UTC (rev 19957)
@@ -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.10" value="org.pi4soa.jbossesb.monitor.MonitorFilter" />
+    </properties>
+</esb>


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/conf/jbossesb-properties-monitor.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: labs/jbossesb/workspace/CDL/product/install/governance/models/trailblazer.zip
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/models/trailblazer.zip
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/META-INF/deployment.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/META-INF/deployment.xml	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/META-INF/deployment.xml	2008-05-15 07:52:29 UTC (rev 19957)
@@ -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/install/governance/monitor.esb/META-INF/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/META-INF/jboss-esb.xml	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/META-INF/jboss-esb.xml	2008-05-15 07:52:29 UTC (rev 19957)
@@ -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/install/governance/monitor.esb/models/TrailBlazer.cdm
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/models/TrailBlazer.cdm	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/models/TrailBlazer.cdm	2008-05-15 07:52:29 UTC (rev 19957)
@@ -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/install/governance/monitor.esb/monitor-config.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/monitor-config.xml	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/monitor.esb/monitor-config.xml	2008-05-15 07:52:29 UTC (rev 19957)
@@ -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/install/governance/pi4soa.sar/META-INF/jboss-service.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/META-INF/jboss-service.xml	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/META-INF/jboss-service.xml	2008-05-15 07:52:29 UTC (rev 19957)
@@ -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/install/governance/pi4soa.sar/org.eclipse.emf.common_2.3.0.v200709252135.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.eclipse.emf.common_2.3.0.v200709252135.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.eclipse.emf.ecore.xmi_2.3.1.v200709252135.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/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/install/governance/pi4soa.sar/org.eclipse.emf.ecore_2.3.1.v200709252135.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.eclipse.emf.ecore_2.3.1.v200709252135.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.cdl.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.cdl.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.common.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.common.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.jboss.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.jboss.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.jbossesb.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.jbossesb.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.service.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/org.pi4soa.service.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/pi4soa.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/pi4soa.xml	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/pi4soa.sar/pi4soa.xml	2008-05-15 07:52:29 UTC (rev 19957)
@@ -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

Added: labs/jbossesb/workspace/CDL/product/install/governance/readme.txt
===================================================================
--- labs/jbossesb/workspace/CDL/product/install/governance/readme.txt	                        (rev 0)
+++ labs/jbossesb/workspace/CDL/product/install/governance/readme.txt	2008-05-15 07:52:29 UTC (rev 19957)
@@ -0,0 +1,38 @@
+
+Required to deploy the governance libraries.
+- ANT
+
+Folder structures
+-----------------------
+1 - pi4soa.sar    
+
+2 - monitor.esb   It contains the monitor config file (WS-CDL file) that will be used by the Filter.
+
+3 - conf/         It contains the proper configuration for governance deployment.
+
+4 - models        It contains the WS-CDL models archive.
+
+
+
+Instructions for deploying/undeploying governance libraries
+-----------------------------------------------------------
+1 - Make sure the "governance" folder is under the $JBossESB/install folder.
+
+2 - Run "ant deploy" to deploy the governance libraries.
+
+3 - Run "ant undeploy" to undeploy the governance libraries. 
+
+
+
+Deploying governance libraries manually
+-----------------------------------------------------------
+
+1 - Copy the "pi4soa.sar", "monitor.esb" two libraries to the $JBossESB/server/$domain/deploy folder. 
+
+2 - Open up the "jbossesb-properties.xml", which is loated in the $JBossESB/server/$domain/deploy/jbossesb.sar folder.
+    
+    Add following "monitor filter" in the file, at the bottom of the '<properties name="filter">' xml block.
+
+    ' <property name="org.jboss.soa.esb.filter.10" value="org.pi4soa.jbossesb.monitor.MonitorFilter" /> '
+
+




More information about the jboss-svn-commits mailing list