[jboss-svn-commits] JBL Code SVN: r12746 - in labs/jbossesb/workspace/dbevenius/trunk/product: samples/quickstarts and 10 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jun 21 11:00:55 EDT 2007
Author: beve
Date: 2007-06-21 11:00:55 -0400 (Thu, 21 Jun 2007)
New Revision: 12746
Added:
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/build.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/deployment.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jndi.properties
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/juddi.properties
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/log4j.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/readme.txt
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java
Removed:
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/build.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/deployment.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jndi.properties
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/juddi.properties
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/log4j.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/readme.txt
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java
Modified:
labs/jbossesb/workspace/dbevenius/trunk/product/lib/ext/juddi-1.0-SNAPSHOT.jar
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/conf/base-build.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendEsbMessage.java
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_bpel/jbm-queue-service.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/jbm-queue-service.xml
labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_war1/jbm-queue-service.xml
Log:
Merge from main 12715:12744
Modified: labs/jbossesb/workspace/dbevenius/trunk/product/lib/ext/juddi-1.0-SNAPSHOT.jar
===================================================================
(Binary files differ)
Modified: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/conf/base-build.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/conf/base-build.xml 2007-06-21 14:49:04 UTC (rev 12745)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/conf/base-build.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -198,8 +198,8 @@
<!-- spring config -->
<fileset dir="${product.dir}/server/default/deploy/spring.esb" includes="*.jar"/>
<pathelement location="${product.dir}/server/default/deploy/spring.esb"/>
- <!-- soap config -->
- <fileset dir="${product.dir}/server/default/deploy/soap.esb" includes="*.jar"/>
+ <!-- soap config -->
+ <fileset dir="${product.dir}/server/default/deploy/soap.esb" includes="*.jar"/>
<pathelement location="${product.dir}/server/default/deploy/soap.esb"/>
<!-- general libs -->
<pathelement location="${product.dir}/server/default/lib/commons-logging.jar"/>
@@ -404,8 +404,8 @@
<!-- ==================================================================== -->
<target name="assert-ws-available">
- <available property="ws-available" file="${org.jboss.esb.server.deploy.dir}/jbossws.sar" type="dir" />
- <fail unless="ws-available">**** DEPLOYMENT FAILED... Sorry, this Quickstart requires a JBoss Webservice container. '${org.jboss.esb.server.home}' does not have a Webservice container. Check the 'org.jboss.esb.server.home' property in ../quickstarts.properties"</fail>
+ <available property="ws-available" file="${org.jboss.esb.server.deploy.dir}/jbossws.sar/jbossws.beans"/>
+ <fail unless="ws-available">**** DEPLOYMENT FAILED... Sorry, this Quickstart requires the JBoss Webservice container from http://anonsvn.labs.jboss.com/labs/jbossesb/workspace/jbossws2_0_0. '${org.jboss.esb.server.home}' does not appear to contain that Webservice container. Check the 'org.jboss.esb.server.home' property in ../quickstarts.properties"</fail>
<echo message="JBoss Webservice container found on target '${org.jboss.esb.server.deploy.dir}'." />
</target>
Modified: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendEsbMessage.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendEsbMessage.java 2007-06-21 14:49:04 UTC (rev 12745)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendEsbMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -44,6 +44,9 @@
{
public static void main(String args[]) throws Exception
{
+// Setting the ConnectionFactory such that it will use scout
+ System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");
+
if (args.length < 3)
{
System.out.println("Usage SendEsbMessage <category> <name> <text to send>");
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list)
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,27 +0,0 @@
-#created on: 20070601
-package com.jboss.soa.esb.routing.cbr
-
-#list any import classes here.
-import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.esb.message.format.MessageType;
-
-expander XPathLanguage.dsl
-
-#declare any global variables here
-global java.util.List destinations;
-
-rule "Routing Rule using XPATH equals regular"
- when
- xpathLessThan "/Order/@totalAmount", "100.00"
- then
- Log : "regular destination";
- Destination : "regular";
-end
-
-rule "Routing Rule using XPATH equals confirm"
- when
- xpathGreaterThan "/Order/@totalAmount", "99.99"
- then
- Log : "confirm destination";
- Destination : "extra";
-end
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/MyESBRules-XPath.drl 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,27 @@
+#created on: 20070601
+package com.jboss.soa.esb.routing.cbr
+
+#list any import classes here.
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageType;
+
+expander XPathLanguage.dsl
+
+#declare any global variables here
+global java.util.List destinations;
+
+rule "Routing Rule using XPATH equals regular"
+ when
+ xpathLessThan "/Order/@totalAmount", "100.00"
+ then
+ Log : "regular destination";
+ Destination : "regular";
+end
+
+rule "Routing Rule using XPATH equals confirm"
+ when
+ xpathGreaterThan "/Order/@totalAmount", "99.99"
+ then
+ Log : "confirm destination";
+ Destination : "extra";
+end
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,3 +0,0 @@
-<Order sampleData="CBR - Static Router Recipient List test" testDate="20070518" totalAmount="10.00">
- <Customer userName="user1" firstName="Harry" lastName="Fletcher" state="SD"/>
-</Order>
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/SampleOrder.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,3 @@
+<Order sampleData="CBR - Static Router Recipient List test" testDate="20070518" totalAmount="10.00">
+ <Customer userName="user1" firstName="Harry" lastName="Fletcher" state="SD"/>
+</Order>
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/build.xml 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/build.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,61 +0,0 @@
-<project name="Quickstart_recipient_list" default="runtest" basedir=".">
-
- <description>
- ${ant.project.name}
- ${line.separator}
- </description>
-
- <property name="additional.deploys" value="MyESBRules-XPath.drl"/>
-
- <!-- Import the base Ant build script... -->
- <import file="../conf/base-build.xml"/>
-
- <target name="runtest-cbr" depends="compile">
- <echo>Runs Content Based Router Test</echo>
- <java fork="yes" classname="quickstart.recipientList.test.SendCBRJMSMessage" failonerror="true">
- <arg value="ESB recipient list pattern quickstart - content based router test"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="runtest" depends="compile">
- <echo>Runs JMS Sender - to destination channel</echo>
- <java fork="yes" classname="quickstart.recipientList.test.SendJMSMessage" failonerror="true">
- <arg value="ESB recipient list pattern quickstart - message to destination channel"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="static-router" depends="compile">
- <echo>Runs Static-Router Test</echo>
- <java fork="yes" classname="quickstart.recipientList.test.SendStaticRouterJMSMessage" failonerror="true">
- <arg value="ESB recipient list pattern quickstart - static router test"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="receive-destination" depends="compile">
- <echo>Runs Test Recipient List destination regular message receiver</echo>
- <java fork="yes" classname="quickstart.recipientList.test.ReceiveJMSMessage" failonerror="true">
- <arg value="queue/qsrecipientlist_regular_Request"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="receive-destination1" depends="compile">
- <echo>Runs Test Recipient List destination 1 message receiver</echo>
- <java fork="yes" classname="quickstart.recipientList.test.ReceiveJMSMessage" failonerror="true">
- <arg value="queue/qsrecipientlist_1_Request"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="receive-destination2" depends="compile">
- <echo>Runs Test Recipient List destination 2 message receiver</echo>
- <java fork="yes" classname="quickstart.recipientList.test.ReceiveJMSMessage" failonerror="true">
- <arg value="queue/qsrecipientlist_2_Request"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
-</project>
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/build.xml (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/build.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/build.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/build.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,61 @@
+<project name="Quickstart_recipient_list" default="runtest" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="additional.deploys" value="MyESBRules-XPath.drl"/>
+
+ <!-- Import the base Ant build script... -->
+ <import file="../conf/base-build.xml"/>
+
+ <target name="runtest-cbr" depends="compile">
+ <echo>Runs Content Based Router Test</echo>
+ <java fork="yes" classname="quickstart.recipientList.test.SendCBRJMSMessage" failonerror="true">
+ <arg value="ESB recipient list pattern quickstart - content based router test"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="runtest" depends="compile">
+ <echo>Runs JMS Sender - to destination channel</echo>
+ <java fork="yes" classname="quickstart.recipientList.test.SendJMSMessage" failonerror="true">
+ <arg value="ESB recipient list pattern quickstart - message to destination channel"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="static-router" depends="compile">
+ <echo>Runs Static-Router Test</echo>
+ <java fork="yes" classname="quickstart.recipientList.test.SendStaticRouterJMSMessage" failonerror="true">
+ <arg value="ESB recipient list pattern quickstart - static router test"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="receive-destination" depends="compile">
+ <echo>Runs Test Recipient List destination regular message receiver</echo>
+ <java fork="yes" classname="quickstart.recipientList.test.ReceiveJMSMessage" failonerror="true">
+ <arg value="queue/qsrecipientlist_regular_Request"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="receive-destination1" depends="compile">
+ <echo>Runs Test Recipient List destination 1 message receiver</echo>
+ <java fork="yes" classname="quickstart.recipientList.test.ReceiveJMSMessage" failonerror="true">
+ <arg value="queue/qsrecipientlist_1_Request"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="receive-destination2" depends="compile">
+ <echo>Runs Test Recipient List destination 2 message receiver</echo>
+ <java fork="yes" classname="quickstart.recipientList.test.ReceiveJMSMessage" failonerror="true">
+ <arg value="queue/qsrecipientlist_2_Request"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+</project>
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/deployment.xml 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/deployment.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,7 +0,0 @@
-<jbossesb-deployment>
- <depends>jboss.esb:deployment=jbrules.esb</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_regular_Request</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_Esb_Request</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_cbr_Request</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_static_router_Request</depends>
-</jbossesb-deployment>
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/deployment.xml (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/deployment.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/deployment.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/deployment.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,7 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=jbrules.esb</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_regular_Request</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_Esb_Request</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_cbr_Request</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_static_router_Request</depends>
+</jbossesb-deployment>
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_cbr_Request"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_Esb_Request"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_static_router_Request"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_1_Request"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_2_Request"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_regular_Request"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-
-</server>
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbm-queue-service.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_cbr_Request"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_Esb_Request"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_static_router_Request"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_1_Request"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_2_Request"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_regular_Request"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+</server>
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <mbean code="org.jboss.mq.server.jmx.Queue"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_regular_Request">
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
-
- <mbean code="org.jboss.mq.server.jmx.Queue"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_Esb_Request">
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
-
- <mbean code="org.jboss.mq.server.jmx.Queue"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_cbr_Request">
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
-
- <mbean code="org.jboss.mq.server.jmx.Queue"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_static_router_Request">
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
-
- <mbean code="org.jboss.mq.server.jmx.Queue"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_1_Request">
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
-
- <mbean code="org.jboss.mq.server.jmx.Queue"
- name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_2_Request">
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
-
-</server>
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbmq-queue-service.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_regular_Request">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_Esb_Request">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_cbr_Request">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_static_router_Request">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_1_Request">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=qsrecipientlist_2_Request">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+
+</server>
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,148 +0,0 @@
-<?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>
- <jms-provider name="JBossMQ" connection-factory="ConnectionFactory">
-
- <jms-bus busid="recipientlistCBRChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/qsrecipientlist_cbr_Request" />
- </jms-bus>
-
- <jms-bus busid="recipientlistChannel1">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/B" />
- </jms-bus>
-
- <jms-bus busid="recipientlistChannel2">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/C" />
- </jms-bus>
-
- <jms-bus busid="recipientlistChannel3">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/D" />
- </jms-bus>
-
- <jms-bus busid="recipientlistChannel4">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/A" />
- </jms-bus>
-
- <jms-bus busid="recipientlistStaticRouterChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/qsrecipientlist_static_router_Request" />
- </jms-bus>
-
- <jms-bus busid="recipientlistEsbChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/qsrecipientlist_Esb_Request" />
- </jms-bus>
-
- <!-- Note that only queues that are listened to (input) require jms-provider
- definitions. jms-provider definitions are not required for these queues as
- the quickstart only notifies the queues (output): queue/qsrecipientlist_regular_Request,
- queue/qsrecipientlist_1_Request, queue/qsrecipientlist_2_Request -->
-
- </jms-provider>
- </providers>
-
- <services>
-
- <!-- CBR Service -->
- <service category="recipientlistCBRServices" name="FirstRecipientlistCBRServiceESB" description="ESB Listener" >
- <listeners>
- <jms-listener name="the-CBR-gateway" busidref="recipientlistCBRChannel" maxThreads="1" is-gateway="true" />
- <jms-listener name="XPathContentBasedRouter" busidref="recipientlistEsbChannel" maxThreads="1" />
- </listeners>
- <actions>
- <action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter">
- <property name="ruleSet" value="MyESBRules-XPath.drl"/>
- <property name="ruleLanguage" value="XPathLanguage.dsl"/>
- <property name="ruleReload" value="true"/>
- <property name="destinations">
- <route-to destination-name="regular" service-category="recipientlistCategory1" service-name="regularService"/>
- <route-to destination-name="extra" service-category="recipientlistCategory2" service-name="ExtraStaticListener"/>
- </property>
- </action>
- </actions>
- </service>
-
- <service category="recipientlistCategory1" name="regularService" description="regular service">
- <listeners>
- <jms-listener name="native1" busidref="recipientlistChannel1" maxThreads="1" />
- </listeners>
- <actions>
-
- <action name="notificationAction" class="org.jboss.soa.esb.actions.Notifier">
- <property name="okMethod" value="notifyOK" />
- <property name="notification-details">
- <NotificationList type="OK">
- <target class="NotifyConsole" />
- <target class="NotifyQueues">
- <queue jndiName="queue/qsrecipientlist_regular_Request">
- <messageProp name="quickstart" value="regular_output" />
- </queue>
- </target>
- </NotificationList>
- </property>
- </action>
- </actions>
- </service>
-
- <service category="recipientlistCategory2" name="ExtraStaticListener" description="Static Router">
- <listeners>
- <jms-listener name="test-Gateway" busidref="recipientlistStaticRouterChannel" maxThreads="1" is-gateway="true" />
- <jms-listener name="native3" busidref="recipientlistChannel3" maxThreads="1" />
- </listeners>
- <actions>
- <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter">
- <property name="destinations">
- <route-to service-category="recipientlistCategory1" service-name="regularService" />
- <route-to service-category="recipientlistCategory4" service-name="extraService1" />
- <route-to service-category="recipientlistCategory5" service-name="extraService2" />
- </property>
- </action>
- </actions>
- </service>
-
- <service category="recipientlistCategory4" name="extraService1" description="extra service1">
- <listeners>
- <jms-listener name="native4" busidref="recipientlistChannel4" maxThreads="1" />
- </listeners>
- <actions>
-
- <action name="notificationAction4" class="org.jboss.soa.esb.actions.Notifier">
- <property name="okMethod" value="notifyOK" />
- <property name="notification-details">
- <NotificationList type="OK">
- <target class="NotifyConsole" />
- <target class="NotifyQueues">
- <queue jndiName="queue/qsrecipientlist_1_Request">
- <messageProp name="quickstart" value="extra_output1" />
- </queue>
- </target>
- </NotificationList>
- </property>
- </action>
- </actions>
- </service>
-
- <service category="recipientlistCategory5" name="extraService2" description="extra service2">
- <listeners>
- <jms-listener name="native2" busidref="recipientlistChannel2" maxThreads="1" />
- </listeners>
- <actions>
-
- <action name="notificationAction42" class="org.jboss.soa.esb.actions.Notifier">
- <property name="okMethod" value="notifyOK" />
- <property name="notification-details">
- <NotificationList type="OK">
- <target class="NotifyConsole" />
- <target class="NotifyQueues">
- <queue jndiName="queue/qsrecipientlist_2_Request">
- <messageProp name="quickstart" value="extra_output2" />
- </queue>
- </target>
- </NotificationList>
- </property>
- </action>
- </actions>
- </service>
-
- </services>
-
-</jbossesb>
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jboss-esb.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,148 @@
+<?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>
+ <jms-provider name="JBossMQ" connection-factory="ConnectionFactory">
+
+ <jms-bus busid="recipientlistCBRChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/qsrecipientlist_cbr_Request" />
+ </jms-bus>
+
+ <jms-bus busid="recipientlistChannel1">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/B" />
+ </jms-bus>
+
+ <jms-bus busid="recipientlistChannel2">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/C" />
+ </jms-bus>
+
+ <jms-bus busid="recipientlistChannel3">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/D" />
+ </jms-bus>
+
+ <jms-bus busid="recipientlistChannel4">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/A" />
+ </jms-bus>
+
+ <jms-bus busid="recipientlistStaticRouterChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/qsrecipientlist_static_router_Request" />
+ </jms-bus>
+
+ <jms-bus busid="recipientlistEsbChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/qsrecipientlist_Esb_Request" />
+ </jms-bus>
+
+ <!-- Note that only queues that are listened to (input) require jms-provider
+ definitions. jms-provider definitions are not required for these queues as
+ the quickstart only notifies the queues (output): queue/qsrecipientlist_regular_Request,
+ queue/qsrecipientlist_1_Request, queue/qsrecipientlist_2_Request -->
+
+ </jms-provider>
+ </providers>
+
+ <services>
+
+ <!-- CBR Service -->
+ <service category="recipientlistCBRServices" name="FirstRecipientlistCBRServiceESB" description="ESB Listener" >
+ <listeners>
+ <jms-listener name="the-CBR-gateway" busidref="recipientlistCBRChannel" maxThreads="1" is-gateway="true" />
+ <jms-listener name="XPathContentBasedRouter" busidref="recipientlistEsbChannel" maxThreads="1" />
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter">
+ <property name="ruleSet" value="MyESBRules-XPath.drl"/>
+ <property name="ruleLanguage" value="XPathLanguage.dsl"/>
+ <property name="ruleReload" value="true"/>
+ <property name="destinations">
+ <route-to destination-name="regular" service-category="recipientlistCategory1" service-name="regularService"/>
+ <route-to destination-name="extra" service-category="recipientlistCategory2" service-name="ExtraStaticListener"/>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="recipientlistCategory1" name="regularService" description="regular service">
+ <listeners>
+ <jms-listener name="native1" busidref="recipientlistChannel1" maxThreads="1" />
+ </listeners>
+ <actions>
+
+ <action name="notificationAction" class="org.jboss.soa.esb.actions.Notifier">
+ <property name="okMethod" value="notifyOK" />
+ <property name="notification-details">
+ <NotificationList type="OK">
+ <target class="NotifyConsole" />
+ <target class="NotifyQueues">
+ <queue jndiName="queue/qsrecipientlist_regular_Request">
+ <messageProp name="quickstart" value="regular_output" />
+ </queue>
+ </target>
+ </NotificationList>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="recipientlistCategory2" name="ExtraStaticListener" description="Static Router">
+ <listeners>
+ <jms-listener name="test-Gateway" busidref="recipientlistStaticRouterChannel" maxThreads="1" is-gateway="true" />
+ <jms-listener name="native3" busidref="recipientlistChannel3" maxThreads="1" />
+ </listeners>
+ <actions>
+ <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter">
+ <property name="destinations">
+ <route-to service-category="recipientlistCategory1" service-name="regularService" />
+ <route-to service-category="recipientlistCategory4" service-name="extraService1" />
+ <route-to service-category="recipientlistCategory5" service-name="extraService2" />
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="recipientlistCategory4" name="extraService1" description="extra service1">
+ <listeners>
+ <jms-listener name="native4" busidref="recipientlistChannel4" maxThreads="1" />
+ </listeners>
+ <actions>
+
+ <action name="notificationAction4" class="org.jboss.soa.esb.actions.Notifier">
+ <property name="okMethod" value="notifyOK" />
+ <property name="notification-details">
+ <NotificationList type="OK">
+ <target class="NotifyConsole" />
+ <target class="NotifyQueues">
+ <queue jndiName="queue/qsrecipientlist_1_Request">
+ <messageProp name="quickstart" value="extra_output1" />
+ </queue>
+ </target>
+ </NotificationList>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="recipientlistCategory5" name="extraService2" description="extra service2">
+ <listeners>
+ <jms-listener name="native2" busidref="recipientlistChannel2" maxThreads="1" />
+ </listeners>
+ <actions>
+
+ <action name="notificationAction42" class="org.jboss.soa.esb.actions.Notifier">
+ <property name="okMethod" value="notifyOK" />
+ <property name="notification-details">
+ <NotificationList type="OK">
+ <target class="NotifyConsole" />
+ <target class="NotifyQueues">
+ <queue jndiName="queue/qsrecipientlist_2_Request">
+ <messageProp name="quickstart" value="extra_output2" />
+ </queue>
+ </target>
+ </NotificationList>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ </services>
+
+</jbossesb>
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,84 +0,0 @@
-<?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>
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jbossesb-properties.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -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>
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jndi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jndi.properties 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jndi.properties 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,5 +0,0 @@
-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
-
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jndi.properties (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/jndi.properties)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jndi.properties (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/jndi.properties 2007-06-21 15:00:55 UTC (rev 12746)
@@ -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
+
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/juddi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/juddi.properties 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/juddi.properties 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,69 +0,0 @@
-# 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
-
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/juddi.properties (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/juddi.properties)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/juddi.properties (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/juddi.properties 2007-06-21 15:00:55 UTC (rev 12746)
@@ -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
+
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/log4j.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/log4j.xml 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/log4j.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,78 +0,0 @@
-<?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"/>
-
- <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="INFO"/>
- </category>
- <!-- ======================= -->
- <!-- Setup the Root category -->
- <!-- ======================= -->
-
- <root>
- <appender-ref ref="CONSOLE"/>
- <appender-ref ref="FILE"/>
- </root>
-
-</log4j:configuration>
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/log4j.xml (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/log4j.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/log4j.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/log4j.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,78 @@
+<?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"/>
+
+ <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="INFO"/>
+ </category>
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/readme.txt 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/readme.txt 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,153 +0,0 @@
-Overview:
-=========
- The purpose of the recipient list quickstart sample is demonstrate
- the recipient list EIP pattern (as defined here:
- http://www.enterpriseintegrationpatterns.com/RecipientList.html) using a
- static router as implemented in org.jboss.soa.esb.actions.StaticRouter
- and a content based router (CBR) as implemented in
- org.jboss.soa.esb.actions.ContentBasedRouter
-
-Running this quickstart:
-========================
- Please refer to 'ant help-quickstarts' for prerequisites about the
- quickstarts and a more detailed descripton of the different ways to
- run the quickstarts.
-
-To Run standalone mode:
-=======================
- 1. In a command terminal window in the quickstart folder type 'ant deploy-jms-dests'.
- 2. In a command terminal window in this folder ("Window1"), type 'ant run'.
- 3. Open another command terminal window in this folder ("Window2"), type ant receive-destination'
- 4. Open another command terminal window in this folder ("Window3"), type ant receive-destination1'
- 5. Open another command terminal window in this folder ("Window4"), type ant receive-destination2'
- 6. Open another command terminal window in this folder ("Window5"), type 'ant runtest-cbr'.
- (Note the other ant targets listed below.)
- 7. Switch back to "Window1", "Window2", "Window3", "Window4" to see the output from the ESB.
-
-To Run '.esb' archive mode:
-===========================
- 1. In a command terminal window in this folder ("Window1"), type 'ant undeploy-jms-dests'.
- 2. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
- 3. Open another command terminal window in this folder (Window2"), type ant receive-destination'
- 4. Open another command terminal window in this folder ("Window3"), type ant receive-destination1'
- 5. Open another command terminal window in this folder ("Window4"), type ant receive-destination2'
- 6. Open another command terminal window in this folder ("Window5"), type 'ant runtest-cbr'.
- (Note the other ant targets listed below.) You can modify the "totalAmount" element
- value in SampleOrder.xml to control the path that is followed thru the CBR. The valid
- ranges of values are less than 100 or greater than 99.99 - the behavior modeled is suggested
- in the EIP pattern definition, that being a credit account monitor where purchases below a
- certain cost are reviewed by a single credit agency while purchases above a certain cost
- are reviewed by that same credit agency and two additional credit agencies.
- 6. Switch back to "Window1", "Window2", "Window3", "Window4" to see the output from the ESB.
-
- The quickstart makes use of the queues illustrated (the queues are shown
- in boxes) in the following diagram. You might review the build.xml file to
- see how it is setup. More details on the build.xml can be found later in
- this document.
-
- application initiated
- |
- |
- V
- ----------------------------- ---------------------------------
- |qsrecipientlist_cbr_Request| -----------> |qsrecipientlist_regular_Request|---> output below 100.00
- ----------------------------- ---------------------------------
- | /
- | /
- V |
---------------------------------------- | ---------------------------
-|qsrecipientlist_static_router_Request| ---> |qsrecipientlist_1_Request|---> output above 99.99
---------------------------------------- | ---------------------------
- |
- \
- \ ---------------------------
- |qsrecipientlist_2_Request|---> output above 99.99
- ---------------------------
-
-Project File Descriptions
-=========================
-
- * jbossesb.xml - the JMS gateway and ESB configuration file.
-
- * jbossesb-properties.xml - also needed by jUDDI and needs to
- be at the head of the classpath. Both juddi.properties and
- jbossesb-properties.xml are used when the service first
- boots up for self-registration based upon the
- service-category and service-name found in the
- esb-config.xml file.
-
- * jndi.properties - needed primarily for
- quickstart.test.SendJMSMessage that is fired by ant runtest.
-
- * log4j.xml - needed to configure log4J used by both the
- quickstart and the ESB itself. A listener needs a place to
- log.
-
- * src\quickstart\staticrouter\test\SendJMSMessage.java -
- shoots in the string passed in via the command line or in
- this case the arg attribute in the ant runtest task.
-
- * src\quickstart\staticrouter\test\SendTestJMSMessage.java -
- shoots in the string to the static router passed in via the
- command line or in this case the arg attribute in the ant
- static-router task.
-
- * src\quickstart\staticrouter\test\SendCBRJMSMessage.java -
- shoots in the string to the CBR router in the ant
- runtest-cbr task.
-
- * src\quickstart\staticrouter\test\ReceiveJMSMessage.java -
- reads the output queues and displays the messages.
-
- * MyESBRules-XPath.drl - JBoss Rules definition file
-
- * build.xml - This quickstart implements the following tasks:
-
- * runtest - send message thru gateway listener in
- MyJMSListener directly to destination queue
-
- * static-router - send message thru static router
- gateway in org.jboss.soa.esb.actions.StaticRouter
-
- * runtest-cbr - send message thru CBR router gateway
- in org.jboss.soa.esb.actions.ContentBasedRouter
-
- * config - copies the JBoss Rules file into
- /build/classes
-
- * quickstart-specific-deploys - creates the JBoss
- Rules jar file
-
- * the echoCP task is useful for making sure what you
- think is in your classpath is actually in your
- classpath Usage is: ant echoCP > myclasspath.txt
- This generates a file called myclasspath.txt which
- can be reviewed in a text editor
-
- In order to run the tests, you must first run these
- ant tasks - in this order:
-
- * ant compile
- * ant config
- * ant quickstart-specific-deploys
- * ant deploy
-
- This quickstart uses the queues called:
-
- * qsrecipientlist_static_router_Request - Where the
- message enters the static router
-
- * qsrecipientlist_regular_Request - The application
- destination for the message when the total is below
- the configured limit
-
- * qsrecipientlist_1_Request, qsrecipientlist_1_Request -
- The application destination for the message when the total is
- above the configured limit
-
- * qsrecipientlist_cbr_Request - Where the message enters
- the CBR router
-
- * the classpath property pulls the
- jbossesb-properties.xml file and the
- juddi.properties file to the front of the list
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/readme.txt (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/readme.txt)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/readme.txt (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/readme.txt 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,153 @@
+Overview:
+=========
+ The purpose of the recipient list quickstart sample is demonstrate
+ the recipient list EIP pattern (as defined here:
+ http://www.enterpriseintegrationpatterns.com/RecipientList.html) using a
+ static router as implemented in org.jboss.soa.esb.actions.StaticRouter
+ and a content based router (CBR) as implemented in
+ org.jboss.soa.esb.actions.ContentBasedRouter
+
+Running this quickstart:
+========================
+ Please refer to 'ant help-quickstarts' for prerequisites about the
+ quickstarts and a more detailed descripton of the different ways to
+ run the quickstarts.
+
+To Run standalone mode:
+=======================
+ 1. In a command terminal window in the quickstart folder type 'ant deploy-jms-dests'.
+ 2. In a command terminal window in this folder ("Window1"), type 'ant run'.
+ 3. Open another command terminal window in this folder ("Window2"), type ant receive-destination'
+ 4. Open another command terminal window in this folder ("Window3"), type ant receive-destination1'
+ 5. Open another command terminal window in this folder ("Window4"), type ant receive-destination2'
+ 6. Open another command terminal window in this folder ("Window5"), type 'ant runtest-cbr'.
+ (Note the other ant targets listed below.)
+ 7. Switch back to "Window1", "Window2", "Window3", "Window4" to see the output from the ESB.
+
+To Run '.esb' archive mode:
+===========================
+ 1. In a command terminal window in this folder ("Window1"), type 'ant undeploy-jms-dests'.
+ 2. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
+ 3. Open another command terminal window in this folder (Window2"), type ant receive-destination'
+ 4. Open another command terminal window in this folder ("Window3"), type ant receive-destination1'
+ 5. Open another command terminal window in this folder ("Window4"), type ant receive-destination2'
+ 6. Open another command terminal window in this folder ("Window5"), type 'ant runtest-cbr'.
+ (Note the other ant targets listed below.) You can modify the "totalAmount" element
+ value in SampleOrder.xml to control the path that is followed thru the CBR. The valid
+ ranges of values are less than 100 or greater than 99.99 - the behavior modeled is suggested
+ in the EIP pattern definition, that being a credit account monitor where purchases below a
+ certain cost are reviewed by a single credit agency while purchases above a certain cost
+ are reviewed by that same credit agency and two additional credit agencies.
+ 6. Switch back to "Window1", "Window2", "Window3", "Window4" to see the output from the ESB.
+
+ The quickstart makes use of the queues illustrated (the queues are shown
+ in boxes) in the following diagram. You might review the build.xml file to
+ see how it is setup. More details on the build.xml can be found later in
+ this document.
+
+ application initiated
+ |
+ |
+ V
+ ----------------------------- ---------------------------------
+ |qsrecipientlist_cbr_Request| -----------> |qsrecipientlist_regular_Request|---> output below 100.00
+ ----------------------------- ---------------------------------
+ | /
+ | /
+ V |
+--------------------------------------- | ---------------------------
+|qsrecipientlist_static_router_Request| ---> |qsrecipientlist_1_Request|---> output above 99.99
+--------------------------------------- | ---------------------------
+ |
+ \
+ \ ---------------------------
+ |qsrecipientlist_2_Request|---> output above 99.99
+ ---------------------------
+
+Project File Descriptions
+=========================
+
+ * jbossesb.xml - the JMS gateway and ESB configuration file.
+
+ * jbossesb-properties.xml - also needed by jUDDI and needs to
+ be at the head of the classpath. Both juddi.properties and
+ jbossesb-properties.xml are used when the service first
+ boots up for self-registration based upon the
+ service-category and service-name found in the
+ esb-config.xml file.
+
+ * jndi.properties - needed primarily for
+ quickstart.test.SendJMSMessage that is fired by ant runtest.
+
+ * log4j.xml - needed to configure log4J used by both the
+ quickstart and the ESB itself. A listener needs a place to
+ log.
+
+ * src\quickstart\staticrouter\test\SendJMSMessage.java -
+ shoots in the string passed in via the command line or in
+ this case the arg attribute in the ant runtest task.
+
+ * src\quickstart\staticrouter\test\SendTestJMSMessage.java -
+ shoots in the string to the static router passed in via the
+ command line or in this case the arg attribute in the ant
+ static-router task.
+
+ * src\quickstart\staticrouter\test\SendCBRJMSMessage.java -
+ shoots in the string to the CBR router in the ant
+ runtest-cbr task.
+
+ * src\quickstart\staticrouter\test\ReceiveJMSMessage.java -
+ reads the output queues and displays the messages.
+
+ * MyESBRules-XPath.drl - JBoss Rules definition file
+
+ * build.xml - This quickstart implements the following tasks:
+
+ * runtest - send message thru gateway listener in
+ MyJMSListener directly to destination queue
+
+ * static-router - send message thru static router
+ gateway in org.jboss.soa.esb.actions.StaticRouter
+
+ * runtest-cbr - send message thru CBR router gateway
+ in org.jboss.soa.esb.actions.ContentBasedRouter
+
+ * config - copies the JBoss Rules file into
+ /build/classes
+
+ * quickstart-specific-deploys - creates the JBoss
+ Rules jar file
+
+ * the echoCP task is useful for making sure what you
+ think is in your classpath is actually in your
+ classpath Usage is: ant echoCP > myclasspath.txt
+ This generates a file called myclasspath.txt which
+ can be reviewed in a text editor
+
+ In order to run the tests, you must first run these
+ ant tasks - in this order:
+
+ * ant compile
+ * ant config
+ * ant quickstart-specific-deploys
+ * ant deploy
+
+ This quickstart uses the queues called:
+
+ * qsrecipientlist_static_router_Request - Where the
+ message enters the static router
+
+ * qsrecipientlist_regular_Request - The application
+ destination for the message when the total is below
+ the configured limit
+
+ * qsrecipientlist_1_Request, qsrecipientlist_1_Request -
+ The application destination for the message when the total is
+ above the configured limit
+
+ * qsrecipientlist_cbr_Request - Where the message enters
+ the CBR router
+
+ * the classpath property pulls the
+ jbossesb-properties.xml file and the
+ juddi.properties file to the front of the list
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src)
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart)
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList)
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test)
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,94 +0,0 @@
-/*
- * 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 quickstart.recipientList.test;
-
-import javax.jms.Queue;
-import javax.jms.QueueConnection;
-import javax.jms.QueueConnectionFactory;
-import javax.jms.QueueReceiver;
-import javax.jms.QueueSession;
-import javax.jms.ObjectMessage;
-import javax.jms.TextMessage;
-import javax.naming.InitialContext;
-
-import javax.jms.MessageListener;
-import javax.jms.Message;
-
-public class ReceiveJMSMessage {
- QueueConnection conn = null;
- QueueSession receiverSession = null;
- Queue receiverQueue = null;
- QueueReceiver queueReceiver = null;
- InitialContext iniCtx = null;
- QueueConnectionFactory qcf = null;
- String receiveQueueName = "queue/D"; // Default to queue/D
-
- // Ref: http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch6.chapt.html#d0e12917
- public static class ExListener implements MessageListener
- {
- public void onMessage(Message msg)
- {
- TextMessage tm = (TextMessage) msg;
- try {
- System.out.println("onMessage, recv text=" + tm.getText());
- } catch(Throwable t) {
- t.printStackTrace();
- }
- }
- }
-
- public ReceiveJMSMessage() {
-
- }
- public void receiveOne() {
- try {
- if (iniCtx == null) iniCtx = new InitialContext();
- if (qcf == null) qcf = (QueueConnectionFactory) iniCtx.lookup("ConnectionFactory");
- if (conn == null) {
- conn = qcf.createQueueConnection();
- conn.start();
- }
-
- receiverQueue = (Queue) iniCtx.lookup(receiveQueueName);
- receiverSession = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
- queueReceiver = receiverSession.createReceiver(receiverQueue);
- TextMessage msg = (TextMessage) queueReceiver.receive(2000);
-
- // Ref: http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch6.chapt.html#d0e12917
- queueReceiver.setMessageListener(new ExListener());
-
- } catch (Exception e) {
- System.out.println(e);
- }
- }
-
- public static void main(String[] args) {
- ReceiveJMSMessage receiver = new ReceiveJMSMessage();
-
- if(args[0] != null) {
- receiver.receiveQueueName = args[0];
- System.out.println("Receiving on: " + receiver.receiveQueueName );
- }
- while (true) { // loop until I'm killed
- receiver.receiveOne();
- }
- }
-}
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/ReceiveJMSMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,94 @@
+/*
+ * 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 quickstart.recipientList.test;
+
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueReceiver;
+import javax.jms.QueueSession;
+import javax.jms.ObjectMessage;
+import javax.jms.TextMessage;
+import javax.naming.InitialContext;
+
+import javax.jms.MessageListener;
+import javax.jms.Message;
+
+public class ReceiveJMSMessage {
+ QueueConnection conn = null;
+ QueueSession receiverSession = null;
+ Queue receiverQueue = null;
+ QueueReceiver queueReceiver = null;
+ InitialContext iniCtx = null;
+ QueueConnectionFactory qcf = null;
+ String receiveQueueName = "queue/D"; // Default to queue/D
+
+ // Ref: http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch6.chapt.html#d0e12917
+ public static class ExListener implements MessageListener
+ {
+ public void onMessage(Message msg)
+ {
+ TextMessage tm = (TextMessage) msg;
+ try {
+ System.out.println("onMessage, recv text=" + tm.getText());
+ } catch(Throwable t) {
+ t.printStackTrace();
+ }
+ }
+ }
+
+ public ReceiveJMSMessage() {
+
+ }
+ public void receiveOne() {
+ try {
+ if (iniCtx == null) iniCtx = new InitialContext();
+ if (qcf == null) qcf = (QueueConnectionFactory) iniCtx.lookup("ConnectionFactory");
+ if (conn == null) {
+ conn = qcf.createQueueConnection();
+ conn.start();
+ }
+
+ receiverQueue = (Queue) iniCtx.lookup(receiveQueueName);
+ receiverSession = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ queueReceiver = receiverSession.createReceiver(receiverQueue);
+ TextMessage msg = (TextMessage) queueReceiver.receive(2000);
+
+ // Ref: http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch6.chapt.html#d0e12917
+ queueReceiver.setMessageListener(new ExListener());
+
+ } catch (Exception e) {
+ System.out.println(e);
+ }
+ }
+
+ public static void main(String[] args) {
+ ReceiveJMSMessage receiver = new ReceiveJMSMessage();
+
+ if(args[0] != null) {
+ receiver.receiveQueueName = args[0];
+ System.out.println("Receiving on: " + receiver.receiveQueueName );
+ }
+ while (true) { // loop until I'm killed
+ receiver.receiveOne();
+ }
+ }
+}
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,113 +0,0 @@
-/*
- * 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 quickstart.recipientList.test;
-
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.jms.JMSException;
-import javax.jms.QueueConnectionFactory;
-import javax.jms.Queue;
-import javax.jms.QueueConnection;
-import javax.jms.QueueSession;
-import javax.jms.QueueSender;
-import javax.jms.ObjectMessage;
-import javax.jms.TextMessage;
-
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-
-public class SendCBRJMSMessage {
- QueueConnection conn;
- QueueSession session;
- Queue que;
-
-
- public void setupConnection() throws JMSException, NamingException
- {
- InitialContext iniCtx = new InitialContext();
- Object tmp = iniCtx.lookup("ConnectionFactory");
- QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
- conn = qcf.createQueueConnection();
- que = (Queue) iniCtx.lookup("queue/qsrecipientlist_cbr_Request"); //quickstart_simple_cbr_Request");
- session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
- conn.start();
- System.out.println("Connection Started");
- }
-
- public void stop() throws JMSException
- {
- conn.stop();
- session.close();
- conn.close();
- }
-
- public void sendAMessage(String msg) throws JMSException {
-
- QueueSender send = session.createSender(que);
- TextMessage tm = session.createTextMessage(msg);
- send.send(tm);
- send.close();
- }
-
- public String readAsciiFile(String fileName) throws IOException {
- FileReader fr = null;
- char[] thechars = null;
-
- try {
- File thefile = new File( fileName );
- fr = new FileReader( thefile );
- int size = (int) thefile.length();
- thechars = new char[size];
-
- int count, index = 0;
-
- // read in the bytes from the input stream
- while( ( count = fr.read( thechars, index, size ) ) > 0 ) {
- size -= count;
- index += count;
- }
- } catch(Exception e) {
- System.out.println(e);
- }
- finally {
- if( fr != null )
- fr.close();
- }
- return new String(thechars);
-
- } // readAsciiFile
-
- public static void main(String args[]) throws Exception
- {
-
- SendCBRJMSMessage sm = new SendCBRJMSMessage();
- sm.setupConnection();
- String fileContent = sm.readAsciiFile("SampleOrder.xml");
- System.out.println("---------------------------------------------");
- System.out.println(fileContent);
- System.out.println("---------------------------------------------");
- sm.sendAMessage(fileContent);
- sm.stop();
-
- }
-
-}
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendCBRJMSMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,113 @@
+/*
+ * 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 quickstart.recipientList.test;
+
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.jms.JMSException;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueSession;
+import javax.jms.QueueSender;
+import javax.jms.ObjectMessage;
+import javax.jms.TextMessage;
+
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
+
+public class SendCBRJMSMessage {
+ QueueConnection conn;
+ QueueSession session;
+ Queue que;
+
+
+ public void setupConnection() throws JMSException, NamingException
+ {
+ InitialContext iniCtx = new InitialContext();
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/qsrecipientlist_cbr_Request"); //quickstart_simple_cbr_Request");
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ System.out.println("Connection Started");
+ }
+
+ public void stop() throws JMSException
+ {
+ conn.stop();
+ session.close();
+ conn.close();
+ }
+
+ public void sendAMessage(String msg) throws JMSException {
+
+ QueueSender send = session.createSender(que);
+ TextMessage tm = session.createTextMessage(msg);
+ send.send(tm);
+ send.close();
+ }
+
+ public String readAsciiFile(String fileName) throws IOException {
+ FileReader fr = null;
+ char[] thechars = null;
+
+ try {
+ File thefile = new File( fileName );
+ fr = new FileReader( thefile );
+ int size = (int) thefile.length();
+ thechars = new char[size];
+
+ int count, index = 0;
+
+ // read in the bytes from the input stream
+ while( ( count = fr.read( thechars, index, size ) ) > 0 ) {
+ size -= count;
+ index += count;
+ }
+ } catch(Exception e) {
+ System.out.println(e);
+ }
+ finally {
+ if( fr != null )
+ fr.close();
+ }
+ return new String(thechars);
+
+ } // readAsciiFile
+
+ public static void main(String args[]) throws Exception
+ {
+
+ SendCBRJMSMessage sm = new SendCBRJMSMessage();
+ sm.setupConnection();
+ String fileContent = sm.readAsciiFile("SampleOrder.xml");
+ System.out.println("---------------------------------------------");
+ System.out.println(fileContent);
+ System.out.println("---------------------------------------------");
+ sm.sendAMessage(fileContent);
+ sm.stop();
+
+ }
+
+}
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,73 +0,0 @@
-/*
- * 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 quickstart.recipientList.test;
-
-import javax.jms.JMSException;
-import javax.jms.TextMessage;
-import javax.jms.Queue;
-import javax.jms.QueueConnection;
-import javax.jms.QueueConnectionFactory;
-import javax.jms.QueueSender;
-import javax.jms.QueueSession;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
-public class SendJMSMessage {
- QueueConnection conn;
-
- QueueSession session;
-
- Queue que;
-
- public void setupConnection() throws JMSException, NamingException {
- InitialContext iniCtx = new InitialContext();
- Object tmp = iniCtx.lookup("ConnectionFactory");
- QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
- conn = qcf.createQueueConnection();
- que = (Queue) iniCtx.lookup("queue/qsrecipientlist_regular_Request");
- session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
- conn.start();
- System.out.println("Connection Started");
- }
-
- public void stop() throws JMSException {
- conn.stop();
- session.close();
- conn.close();
- }
-
- public void sendAMessage(String msg) throws JMSException {
-
- QueueSender send = session.createSender(que);
- TextMessage tm = session.createTextMessage(msg);
- send.send(tm);
- send.close();
- }
-
- public static void main(String args[]) throws Exception {
-
- SendJMSMessage sm = new SendJMSMessage();
- sm.setupConnection();
- sm.sendAMessage(args[0]);
- sm.stop();
- }
-
-}
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendJMSMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,73 @@
+/*
+ * 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 quickstart.recipientList.test;
+
+import javax.jms.JMSException;
+import javax.jms.TextMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+public class SendJMSMessage {
+ QueueConnection conn;
+
+ QueueSession session;
+
+ Queue que;
+
+ public void setupConnection() throws JMSException, NamingException {
+ InitialContext iniCtx = new InitialContext();
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/qsrecipientlist_regular_Request");
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ System.out.println("Connection Started");
+ }
+
+ public void stop() throws JMSException {
+ conn.stop();
+ session.close();
+ conn.close();
+ }
+
+ public void sendAMessage(String msg) throws JMSException {
+
+ QueueSender send = session.createSender(que);
+ TextMessage tm = session.createTextMessage(msg);
+ send.send(tm);
+ send.close();
+ }
+
+ public static void main(String args[]) throws Exception {
+
+ SendJMSMessage sm = new SendJMSMessage();
+ sm.setupConnection();
+ sm.sendAMessage(args[0]);
+ sm.stop();
+ }
+
+}
Deleted: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java 2007-06-21 14:38:42 UTC (rev 12744)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,76 +0,0 @@
-/*
- * 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 quickstart.recipientList.test;
-
-import javax.jms.JMSException;
-import javax.jms.ObjectMessage;
-import javax.jms.Queue;
-import javax.jms.QueueConnection;
-import javax.jms.QueueConnectionFactory;
-import javax.jms.QueueSender;
-import javax.jms.QueueSession;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
-public class SendStaticRouterJMSMessage {
- QueueConnection conn;
- QueueSession session;
- Queue que;
-
-
- public void setupConnection() throws JMSException, NamingException
- {
- InitialContext iniCtx = new InitialContext();
- Object tmp = iniCtx.lookup("ConnectionFactory");
- QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
- conn = qcf.createQueueConnection();
- que = (Queue) iniCtx.lookup("queue/qsrecipientlist_static_router_Request");
- session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
- conn.start();
- System.out.println("Connection Started");
- }
-
- public void stop() throws JMSException
- {
- conn.stop();
- session.close();
- conn.close();
- }
-
- public void sendAMessage(String msg) throws JMSException {
-
- QueueSender send = session.createSender(que);
- ObjectMessage tm = session.createObjectMessage(msg);
- send.send(tm);
- send.close();
- }
-
-
- public static void main(String args[]) throws Exception
- {
- SendStaticRouterJMSMessage sm = new SendStaticRouterJMSMessage();
- sm.setupConnection();
- sm.sendAMessage(args[0]);
- sm.stop();
-
- }
-
-}
Copied: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java (from rev 12744, labs/jbossesb/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/recipient_list/src/quickstart/recipientList/test/SendStaticRouterJMSMessage.java 2007-06-21 15:00:55 UTC (rev 12746)
@@ -0,0 +1,76 @@
+/*
+ * 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 quickstart.recipientList.test;
+
+import javax.jms.JMSException;
+import javax.jms.ObjectMessage;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+public class SendStaticRouterJMSMessage {
+ QueueConnection conn;
+ QueueSession session;
+ Queue que;
+
+
+ public void setupConnection() throws JMSException, NamingException
+ {
+ InitialContext iniCtx = new InitialContext();
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/qsrecipientlist_static_router_Request");
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ System.out.println("Connection Started");
+ }
+
+ public void stop() throws JMSException
+ {
+ conn.stop();
+ session.close();
+ conn.close();
+ }
+
+ public void sendAMessage(String msg) throws JMSException {
+
+ QueueSender send = session.createSender(que);
+ ObjectMessage tm = session.createObjectMessage(msg);
+ send.send(tm);
+ send.close();
+ }
+
+
+ public static void main(String args[]) throws Exception
+ {
+ SendStaticRouterJMSMessage sm = new SendStaticRouterJMSMessage();
+ sm.setupConnection();
+ sm.sendAMessage(args[0]);
+ sm.stop();
+
+ }
+
+}
Modified: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_bpel/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_bpel/jbm-queue-service.xml 2007-06-21 14:49:04 UTC (rev 12745)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_bpel/jbm-queue-service.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,17 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_bpel_gw">
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_bpel_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_bpel_esb">
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_bpel_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_bpel_esb_reply">
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_bpel_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
Modified: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/jbm-queue-service.xml 2007-06-21 14:49:04 UTC (rev 12745)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/jbm-queue-service.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,17 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_jbossws_adapter_01_gw">
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_jbossws_adapter_01_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.mq:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_jbossws_adapter_01_esb">
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_jbossws_adapter_01_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.mq:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_jbossws_adapter_01_esb_reply">
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_jbossws_adapter_01_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.mq:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
Modified: labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_war1/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_war1/jbm-queue-service.xml 2007-06-21 14:49:04 UTC (rev 12745)
+++ labs/jbossesb/workspace/dbevenius/trunk/product/samples/quickstarts/webservice_war1/jbm-queue-service.xml 2007-06-21 15:00:55 UTC (rev 12746)
@@ -1,12 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_war1_esb">
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_war1_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.mq:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
<mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_war1_esb_reply">
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_war1_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.mq:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
More information about the jboss-svn-commits
mailing list