[jboss-svn-commits] JBL Code SVN: r12533 - in labs/jbossesb/workspace/dbevenius: product/install and 33 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Jun 13 01:46:03 EDT 2007
Author: beve
Date: 2007-06-13 01:46:03 -0400 (Wed, 13 Jun 2007)
New Revision: 12533
Added:
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/build.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/deployment.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbm-queue-service.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbmq-queue-service.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jboss-esb.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbossesb-properties.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jndi.properties
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/log4j.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/readme.txt
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/SampleOrder.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/build.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/deployment.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbm-queue-service.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbmq-queue-service.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jboss-esb.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbossesb-properties.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jndi.properties
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/juddi.properties
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/log4j.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/readme.txt
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java
Removed:
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/business_service/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/conf/jms/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_db_registration/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_file_action/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_ftp_action/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/build.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/deployment.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbm-queue-service.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbmq-queue-service.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jboss-esb.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbossesb-properties.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jndi.properties
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/log4j.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/readme.txt
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/more_action/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/scripting_groovy/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/simple_cbr/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_CSV2XML/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_EDI2XML_Groovy_XSLT/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2POJO/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2XML_simple/jbm-queue-service-scoped.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/SampleOrder.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/build.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/deployment.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbm-queue-service.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbmq-queue-service.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jboss-esb.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbossesb-properties.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jndi.properties
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/juddi.properties
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/log4j.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/readme.txt
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java
Modified:
labs/jbossesb/workspace/dbevenius/product/core/rosetta/src/org/jboss/soa/esb/services/persistence/MessageStore.java
labs/jbossesb/workspace/dbevenius/product/install/build.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/conf/base-build.xml
labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/fun_cbr/
labs/jbossesb/workspace/dbevenius/product/services/jbossesb/src/main/java/org/jboss/soa/esb/actions/MessagePersister.java
labs/jbossesb/workspace/dbevenius/qa/junit/
Log:
Merge from main: 12491:12531
Modified: labs/jbossesb/workspace/dbevenius/product/core/rosetta/src/org/jboss/soa/esb/services/persistence/MessageStore.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/core/rosetta/src/org/jboss/soa/esb/services/persistence/MessageStore.java 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/core/rosetta/src/org/jboss/soa/esb/services/persistence/MessageStore.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -32,6 +32,7 @@
public final static String DEFAULT = "org.jboss.internal.soa.esb.persistence.format.db.DBMessageStoreImpl";
public final static String DEFAULT_CLASSIFICATION = "STORE";
public final static String DLQ_CLASSIFICATION = "DLQ";
+ public final static String MESSAGE_STORE_URI = "message-store-uri";
/**
* Get the implementation-specific message URI generator.
* @return the generator
Modified: labs/jbossesb/workspace/dbevenius/product/install/build.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/install/build.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/install/build.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -51,12 +51,8 @@
<target name="jms.config.check">
<available property="jbm.present"
file="${deploy.dir}/jboss-messaging"/>
- <available property="jbm.scoped.present"
- file="${deploy.dir}/jboss-messaging/META-INF/jboss-service.xml"/>
<available property="jbm.present"
file="${deploy.dir}/jboss-messaging.sar"/>
- <available property="jbm.scoped.present"
- file="${deploy.dir}/jboss-messaging.sar/META-INF/jboss-service.xml"/>
<available property="jbmq.present"
file="${deploy.dir}/jms/jbossmq-service.xml"/>
<fail message="Could not determine JMS provider">
@@ -79,12 +75,8 @@
<property name="messaging.excludes" value="jbmq-queue-service.xml"/>
</target>
- <target name="jbm.scoped.config" if="jbm.scoped.present">
- <fail message="Scoped JBoss Messaging not yet supported"/>
- </target>
+ <target name="jms.config" depends="jms.config.check, jbmq.config, jbm.config"/>
- <target name="jms.config" depends="jms.config.check, jbmq.config, jbm.config, jbm.scoped.config"/>
-
<target name="internal.deploy" depends="dependencies, jms.config" description="Deploys Internal Services to the server">
<!-- jbossesb.sar -->
<copy todir="${deploy.dir}/jbossesb.sar">
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/business_service/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/business_service/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/business_service/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_business_service_Request"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-</server>
Modified: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/conf/base-build.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/conf/base-build.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/conf/base-build.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -129,8 +129,7 @@
<condition
property="org.jboss.esb.server.config"
- value="${quickstart.org.jboss.esb.server.config}"
- else="default">
+ value="${quickstart.org.jboss.esb.server.config}">
<isset property="quickstart.org.jboss.esb.server.config"/>
</condition>
@@ -144,6 +143,14 @@
<isset property="quickstart.org.jboss.esb.server.home"/>
</condition>
+ <condition
+ property="org.jboss.esb.server.config"
+ value="${install.org.jboss.esb.server.config}">
+ <isset property="install.org.jboss.esb.server.config"/>
+ </condition>
+
+ <property name="org.jboss.esb.server.config" value="default"/>
+
<path id="deployment-classpath">
<fileset dir="${base.jbossesb}/lib" includes="*.jar"/>
<fileset dir="${base.jbossesb}/lib/ext" includes="*.jar"/>
Property changes on: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/fun_cbr
___________________________________________________________________
Name: svn:ignore
- build
+ build
lib
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_Request_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_helloworld_Request_gw"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_db_registration/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_db_registration/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_db_registration/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_db_registration"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-
-</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_file_action/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_file_action/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_file_action/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_file_esb"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_ftp_action/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_ftp_action/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/helloworld_ftp_action/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_helloworld_ftp_esb"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
-
- </mbean>
-</server>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore)
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/build.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/build.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,31 +0,0 @@
-<project name="Quickstart_messagestore" default="run" basedir=".">
-
- <description>
- ${ant.project.name}
- ${line.separator}
- </description>
-
- <!-- Import the base Ant build script... -->
- <import file="../conf/base-build.xml"/>
-
- <target name="runtest" depends="compile"
- description="sends a JMS message to queue/quickstart_messagestore_Request_gw">
- <echo>Runs Test JMS Sender</echo>
- <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.messagestore.test.SendJMSMessage" failonerror="true">
- <arg value="Hello MessageStore"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="sendesb" depends="compile"
- description="Will send an esb Message">
- <echo>Runs Test ESB Message Sender</echo>
- <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.messagestore.test.SendEsbMessage" failonerror="true">
- <arg value="FirstServiceESB"/> <!-- service category -->
- <arg value="MessageStoreListener"/> <!-- service name -->
- <arg value="Hello MessageStore - Straight to ESB listener - no Gateway"/> <!-- Message text -->
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
-</project>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/build.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/build.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/build.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/build.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,31 @@
+<project name="Quickstart_messagestore" default="run" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <!-- Import the base Ant build script... -->
+ <import file="../conf/base-build.xml"/>
+
+ <target name="runtest" depends="compile"
+ description="sends a JMS message to queue/quickstart_messagestore_Request_gw">
+ <echo>Runs Test JMS Sender</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.messagestore.test.SendJMSMessage" failonerror="true">
+ <arg value="Hello MessageStore"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="sendesb" depends="compile"
+ description="Will send an esb Message">
+ <echo>Runs Test ESB Message Sender</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.messagestore.test.SendEsbMessage" failonerror="true">
+ <arg value="FirstServiceESB"/> <!-- service category -->
+ <arg value="MessageStoreListener"/> <!-- service name -->
+ <arg value="Hello MessageStore - Straight to ESB listener - no Gateway"/> <!-- Message text -->
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+</project>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/deployment.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/deployment.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,5 +0,0 @@
-<jbossesb-deployment>
- <depends>jboss.esb:deployment=jbossesb.esb</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_messagestore_Request_esb</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_messagestore_Request_gw</depends>
-</jbossesb-deployment>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/deployment.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/deployment.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/deployment.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/deployment.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,5 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=jbossesb.esb</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_messagestore_Request_esb</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_messagestore_Request_gw</depends>
+</jbossesb-deployment>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jbm-queue-service.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbm-queue-service.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,15 +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=quickstart_messagestore_Request_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_messagestore_Request_gw"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-</server>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbm-queue-service.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jbm-queue-service.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbm-queue-service.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,15 @@
+<?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_messagestore_Request_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_messagestore_Request_gw"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jbmq-queue-service.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbmq-queue-service.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,15 +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=quickstart_messagestore_Request_esb">
- <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=quickstart_messagestore_Request_gw">
- <depends optional-attribute-name="DestinationManager">
- jboss.mq:service=DestinationManager
- </depends>
- </mbean>
-</server>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbmq-queue-service.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jbmq-queue-service.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbmq-queue-service.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_messagestore_Request_esb">
+ <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=quickstart_messagestore_Request_gw">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jboss-esb.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jboss-esb.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,62 +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"
- jndi-URL="jnp://127.0.0.1:1099" jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
- jndi-pkg-prefix="org.jboss.naming:org.jnp.interfaces">
-
- <jms-bus busid="quickstartGwChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/quickstart_messagestore_Request_gw"
- />
- </jms-bus>
- <jms-bus busid="quickstartEsbChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/quickstart_messagestore_Request_esb"
- />
- </jms-bus>
-
- </jms-provider>
- </providers>
-
- <services>
- <service
- category="FirstServiceESB"
- name="MessageStoreListener"
- description="Hello World, and write message to message store">
- <listeners>
- <jms-listener name="JMS-Gateway"
- busidref="quickstartGwChannel"
- maxThreads="1"
- is-gateway="true"
- />
- <jms-listener name="helloWorld"
- busidref="quickstartEsbChannel"
- maxThreads="1"
- />
- </listeners>
- <actions>
- <!-- Print the message to the console -->
- <action name="notificationAction" class="org.jboss.soa.esb.actions.Notifier">
- <property name="okMethod" value="notifyOK" />
- <property name="notification-details">
- <NotificationList>
- <target class="NotifyConsole" />
- </NotificationList>
- </property>
- </action>
- <!-- Add a copy of the message to the message store under categorization 'test' -->
- <action name="PersistAction" class="org.jboss.soa.esb.actions.MessagePersister" >
- <property name="classfication" value="test"/>
- <property name="message-store-class" value="org.jboss.internal.soa.esb.persistence.format.db.DBMessageStoreImpl"/>
- </action>
- <!-- Check that the message is really there -->
- <action name="CheckMessageStore" class="org.jboss.soa.esb.samples.quickstart.messagestore.CheckMessageStoreAction" />
- </actions>
- </service>
- </services>
-
-</jbossesb>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jboss-esb.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jboss-esb.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jboss-esb.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jboss-esb.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,62 @@
+<?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"
+ jndi-URL="jnp://127.0.0.1:1099" jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
+ jndi-pkg-prefix="org.jboss.naming:org.jnp.interfaces">
+
+ <jms-bus busid="quickstartGwChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_messagestore_Request_gw"
+ />
+ </jms-bus>
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_messagestore_Request_esb"
+ />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+ <service
+ category="FirstServiceESB"
+ name="MessageStoreListener"
+ description="Hello World, and write message to message store">
+ <listeners>
+ <jms-listener name="JMS-Gateway"
+ busidref="quickstartGwChannel"
+ maxThreads="1"
+ is-gateway="true"
+ />
+ <jms-listener name="helloWorld"
+ busidref="quickstartEsbChannel"
+ maxThreads="1"
+ />
+ </listeners>
+ <actions>
+ <!-- Print the message to the console -->
+ <action name="notificationAction" class="org.jboss.soa.esb.actions.Notifier">
+ <property name="okMethod" value="notifyOK" />
+ <property name="notification-details">
+ <NotificationList>
+ <target class="NotifyConsole" />
+ </NotificationList>
+ </property>
+ </action>
+ <!-- Add a copy of the message to the message store under categorization 'test' -->
+ <action name="PersistAction" class="org.jboss.soa.esb.actions.MessagePersister" >
+ <property name="classfication" value="test"/>
+ <property name="message-store-class" value="org.jboss.internal.soa.esb.persistence.format.db.DBMessageStoreImpl"/>
+ </action>
+ <!-- Check that the message is really there -->
+ <action name="CheckMessageStore" class="org.jboss.soa.esb.samples.quickstart.messagestore.CheckMessageStoreAction" />
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jbossesb-properties.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbossesb-properties.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/messagestore/jbossesb-properties.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jbossesb-properties.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbossesb-properties.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jbossesb-properties.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/messagestore/jndi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jndi.properties 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jndi.properties 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/messagestore/jndi.properties (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/jndi.properties)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jndi.properties (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/jndi.properties 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/messagestore/log4j.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/log4j.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/log4j.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,79 +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"/>
- <param name="Threshold" value="INFO"/>
-
- <layout class="org.apache.log4j.PatternLayout">
- <!-- The default pattern: Date Priority [Category] Message\n -->
- <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
- </layout>
- </appender>
-
- <!-- ================================= -->
- <!-- Preserve messages in a local file -->
- <!-- ================================= -->
-
- <!-- A size based file rolling appender -->
- <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
- <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
- <param name="File" value="./listener.log"/>
- <param name="Append" value="false"/>
- <param name="MaxFileSize" value="500KB"/>
- <param name="MaxBackupIndex" value="1"/>
-
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %-5p [%t][%c] %m%n"/>
- </layout>
- </appender>
-
- <!-- ================ -->
- <!-- Limit categories -->
- <!-- ================ -->
-
- <category name="org.jboss">
- <priority value="WARN"/>
- </category>
- <category name="org.jboss.soa.esb">
- <priority value="ERROR"/>
- </category>
- <category name="org.jboss.internal.soa.esb">
- <priority value="ERROR"/>
- </category>
- <category name="org.apache">
- <priority value="ERROR"/>
- </category>
- <category name="quickstart">
- <priority value="DEBUG"/>
- </category>
- <!-- ======================= -->
- <!-- Setup the Root category -->
- <!-- ======================= -->
-
- <root>
- <appender-ref ref="CONSOLE"/>
- <appender-ref ref="FILE"/>
- </root>
-
-</log4j:configuration>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/log4j.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/log4j.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/log4j.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/log4j.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.26.2.5 2005/09/15 09:31:02 dimitris Exp $ -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Target" value="System.out"/>
+ <param name="Threshold" value="INFO"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A size based file rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File" value="./listener.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%t][%c] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.jboss">
+ <priority value="WARN"/>
+ </category>
+ <category name="org.jboss.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.jboss.internal.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.apache">
+ <priority value="ERROR"/>
+ </category>
+ <category name="quickstart">
+ <priority value="DEBUG"/>
+ </category>
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/readme.txt 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/readme.txt 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,86 +0,0 @@
-Overview:
-=========
- The purpose of the helloworld quickstart sample is to show how to store
- a message in the MessageStore. The only interesting piece of configuration
- is:
-
- <!-- Add a copy of the message to the message store under categorization 'test' -->
- <action name="PersistAction" class="org.jboss.soa.esb.actions.MessagePersister" >
- <property name="classfication" value="test"/>
- <property name="message-store-class" value="org.jboss.internal.soa.esb.persistence.format.db.DBMessageStoreImpl"/>
- </action>
-
- Which causes a message to be saved in the DB messageStore under the categorization 'test'. Tooling
- will be added to inspect the messageStore.
-
-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 runtest'.
- 4. Switch back to "Window1" 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'.
- 1. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
- 2. Open another command terminal window in this folder ("Window2"), type 'ant runtest'.
- 3. Switch back to Application Server console to see the output from the ESB
-
- 'run' target description:
- In a command prompt window, start the listeners by simply running "ant"
- in this directory. 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. Shutdown
- the listener by simply using Ctrl-C in that window.
-
- 'runtest' target description:
- In a separate command prompt window, run "ant runtest" to shoot a JMS message
- into the listener which will then invoke the MyJMSListenerAction and display
- it to the console. You can modify the build.xml to change the phrase
- "Hello World" to something else and re-run "ant runtest".
-
-Project file descriptions:
-==========================
-
- jbossesb.xml:
- The JMS gateway and ESB configuration file. It is listening for JMS ObjectMessages or TextMessages
- at "queue/quickstart_messagestore_Request". Messages received at "quickstart_messagestore_Request" are
- converted jbossesb-properties.xml. Also needed by jUDDI and needs to be at the head of the classpath.
- The jbossesb-properties.xml is 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 org.jboss.soa.esb.samples.quickstart.messagestore.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\CheckMessageStoreAction.java:
- The action class that is identified in the esb-config.xml file and is called whenever a message is received.
-
- src\quickstart\helloworld\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\helloworld\test\SendEsbMessage.java:
- Shoots in the string passed in via the command line or in this case the arg atribute in the ant sendesb task.
- This demonstrates how to build an "ESB aware" client that can invoke an ESB service.
-
- build.xml:
- Targets and structure description:
- * the classpath property pulls the jbossesb-properties.xml file to the
- front of the list
- * 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
- * the run task calls the Launcher passing in 3 arguments the most important are the esb-config.xml and
- esb-config-gateway.xml files
- * the runtest task calls the org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage class and passes in an argument representing
- the string-based message to be pused into the queue the gateway is listening on. Note: SendJMSMessage
- contains a hard-coded queue name.
-
-
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/readme.txt (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/readme.txt)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/readme.txt (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/readme.txt 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,86 @@
+Overview:
+=========
+ The purpose of the helloworld quickstart sample is to show how to store
+ a message in the MessageStore. The only interesting piece of configuration
+ is:
+
+ <!-- Add a copy of the message to the message store under categorization 'test' -->
+ <action name="PersistAction" class="org.jboss.soa.esb.actions.MessagePersister" >
+ <property name="classfication" value="test"/>
+ <property name="message-store-class" value="org.jboss.internal.soa.esb.persistence.format.db.DBMessageStoreImpl"/>
+ </action>
+
+ Which causes a message to be saved in the DB messageStore under the categorization 'test'. Tooling
+ will be added to inspect the messageStore.
+
+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 runtest'.
+ 4. Switch back to "Window1" 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'.
+ 1. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
+ 2. Open another command terminal window in this folder ("Window2"), type 'ant runtest'.
+ 3. Switch back to Application Server console to see the output from the ESB
+
+ 'run' target description:
+ In a command prompt window, start the listeners by simply running "ant"
+ in this directory. 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. Shutdown
+ the listener by simply using Ctrl-C in that window.
+
+ 'runtest' target description:
+ In a separate command prompt window, run "ant runtest" to shoot a JMS message
+ into the listener which will then invoke the MyJMSListenerAction and display
+ it to the console. You can modify the build.xml to change the phrase
+ "Hello World" to something else and re-run "ant runtest".
+
+Project file descriptions:
+==========================
+
+ jbossesb.xml:
+ The JMS gateway and ESB configuration file. It is listening for JMS ObjectMessages or TextMessages
+ at "queue/quickstart_messagestore_Request". Messages received at "quickstart_messagestore_Request" are
+ converted jbossesb-properties.xml. Also needed by jUDDI and needs to be at the head of the classpath.
+ The jbossesb-properties.xml is 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 org.jboss.soa.esb.samples.quickstart.messagestore.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\CheckMessageStoreAction.java:
+ The action class that is identified in the esb-config.xml file and is called whenever a message is received.
+
+ src\quickstart\helloworld\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\helloworld\test\SendEsbMessage.java:
+ Shoots in the string passed in via the command line or in this case the arg atribute in the ant sendesb task.
+ This demonstrates how to build an "ESB aware" client that can invoke an ESB service.
+
+ build.xml:
+ Targets and structure description:
+ * the classpath property pulls the jbossesb-properties.xml file to the
+ front of the list
+ * 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
+ * the run task calls the Launcher passing in 3 arguments the most important are the esb-config.xml and
+ esb-config-gateway.xml files
+ * the runtest task calls the org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage class and passes in an argument representing
+ the string-based message to be pused into the queue the gateway is listening on. Note: SendJMSMessage
+ contains a hard-coded queue name.
+
+
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore)
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,63 +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 org.jboss.soa.esb.samples.quickstart.messagestore;
-
-import java.net.URI;
-
-import org.jboss.internal.soa.esb.persistence.format.MessageStoreFactory;
-import org.jboss.soa.esb.actions.AbstractActionLifecycle;
-import org.jboss.soa.esb.helpers.ConfigTree;
-import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.esb.services.persistence.MessageStore;
-
-public class CheckMessageStoreAction extends AbstractActionLifecycle {
-
- protected ConfigTree _config;
-
- public CheckMessageStoreAction(ConfigTree config) {
- _config = config;
- }
- /**
- * Check if the message is in the message store. The Unique Identifyer is set on the message property
- * with name MessageStore.MESSAGE_STORE_URI.
- *
- * @param originalMessage
- * @return
- * @throws Exception
- */
- public Message process(Message originalMessage) throws Exception
- {
- //I can call the messagestore API directory if it is deployed in the same JVM
- String messageStoreClass = "org.jboss.internal.soa.esb.persistence.format.db.DBMessageStoreImpl";
- MessageStore messageStore = MessageStoreFactory.getInstance().getMessageStore(messageStoreClass);
- //Try to pull the message out
- Message message = messageStore.getMessage((URI) originalMessage.getProperties().getProperty(MessageStore.MESSAGE_STORE_URI));
- //Print out the content of the message
- System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
- System.out.println("Body (from the stored message): "
- + new String(message.getBody().getByteArray()));
- System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
-
- return message;
-
- }
-
-}
\ No newline at end of file
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/CheckMessageStoreAction.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.messagestore;
+
+import java.net.URI;
+
+import org.jboss.internal.soa.esb.persistence.format.MessageStoreFactory;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.services.persistence.MessageStore;
+
+public class CheckMessageStoreAction extends AbstractActionLifecycle {
+
+ protected ConfigTree _config;
+
+ public CheckMessageStoreAction(ConfigTree config) {
+ _config = config;
+ }
+ /**
+ * Check if the message is in the message store. The Unique Identifyer is set on the message property
+ * with name MessageStore.MESSAGE_STORE_URI.
+ *
+ * @param originalMessage
+ * @return
+ * @throws Exception
+ */
+ public Message process(Message originalMessage) throws Exception
+ {
+ //I can call the messagestore API directory if it is deployed in the same JVM
+ String messageStoreClass = "org.jboss.internal.soa.esb.persistence.format.db.DBMessageStoreImpl";
+ MessageStore messageStore = MessageStoreFactory.getInstance().getMessageStore(messageStoreClass);
+ //Try to pull the message out
+ Message message = messageStore.getMessage((URI) originalMessage.getProperties().getProperty(MessageStore.MESSAGE_STORE_URI));
+ //Print out the content of the message
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
+ System.out.println("Body (from the stored message): "
+ + new String(message.getBody().getByteArray()));
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
+
+ return message;
+
+ }
+
+}
\ No newline at end of file
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test)
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,66 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY 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 along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.soa.esb.samples.quickstart.messagestore.test;
-
-import java.net.URI;
-import java.util.UUID;
-
-import org.jboss.soa.esb.addressing.Call;
-import org.jboss.soa.esb.listeners.ListenerUtil;
-import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.esb.message.format.MessageFactory;
-
-/**
- * Standalone class with to send ESB messages to a 'known' [category,name].
- * <p/> arg0 - service category
- * <br/>arg1 - service name
- * <br/>arg2 - Text of message to send
- *
- * @author <a href="mailto:schifest at heuristica.com.ar">schifest at heuristica.com.ar</a>
- * @since Version 4.0
- *
- */
-public class SendEsbMessage
-{
- public static void main(String args[]) throws Exception
- {
- if (args.length < 3)
- {
- System.out.println("Usage SendEsbMessage <category> <name> <text to send>");
- }
- //Setting the ConnectionFactory such that it will use scout
- System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");
- // Create a message, assign it a UID, and fill in call information
- Message esbMessage = MessageFactory.getInstance().getMessage();
- Call call = new Call();
- call.setMessageID(new URI(UUID.randomUUID().toString()));
- esbMessage.getHeader().setCall(call);
-
- // set body contents with args[2], and send
- esbMessage.getBody().setByteArray(args[2].getBytes());
-
- ListenerUtil.tryToDeliver(esbMessage, args[0], args[1]);
-
- }
-
-}
\ No newline at end of file
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendEsbMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.soa.esb.samples.quickstart.messagestore.test;
+
+import java.net.URI;
+import java.util.UUID;
+
+import org.jboss.soa.esb.addressing.Call;
+import org.jboss.soa.esb.listeners.ListenerUtil;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+
+/**
+ * Standalone class with to send ESB messages to a 'known' [category,name].
+ * <p/> arg0 - service category
+ * <br/>arg1 - service name
+ * <br/>arg2 - Text of message to send
+ *
+ * @author <a href="mailto:schifest at heuristica.com.ar">schifest at heuristica.com.ar</a>
+ * @since Version 4.0
+ *
+ */
+public class SendEsbMessage
+{
+ public static void main(String args[]) throws Exception
+ {
+ if (args.length < 3)
+ {
+ System.out.println("Usage SendEsbMessage <category> <name> <text to send>");
+ }
+ //Setting the ConnectionFactory such that it will use scout
+ System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");
+ // Create a message, assign it a UID, and fill in call information
+ Message esbMessage = MessageFactory.getInstance().getMessage();
+ Call call = new Call();
+ call.setMessageID(new URI(UUID.randomUUID().toString()));
+ esbMessage.getHeader().setCall(call);
+
+ // set body contents with args[2], and send
+ esbMessage.getBody().setByteArray(args[2].getBytes());
+
+ ListenerUtil.tryToDeliver(esbMessage, args[0], args[1]);
+
+ }
+
+}
\ No newline at end of file
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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 org.jboss.soa.esb.samples.quickstart.messagestore.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 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/quickstart_messagestore_Request_gw");
- 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
- {
- SendJMSMessage sm = new SendJMSMessage();
- sm.setupConnection();
- sm.sendAMessage(args[0]);
- sm.stop();
-
- }
-
-}
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/messagestore/src/org/jboss/soa/esb/samples/quickstart/messagestore/test/SendJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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 org.jboss.soa.esb.samples.quickstart.messagestore.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 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/quickstart_messagestore_Request_gw");
+ 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
+ {
+ SendJMSMessage sm = new SendJMSMessage();
+ sm.setupConnection();
+ sm.sendAMessage(args[0]);
+ sm.stop();
+
+ }
+
+}
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/more_action/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/more_action/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/more_action/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_more_action_Request"
- 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_more_action_Response"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-
-</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/scripting_groovy/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/scripting_groovy/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/scripting_groovy/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_scripting_groovy_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_scripting_groovy_esb"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/simple_cbr/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/simple_cbr/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/simple_cbr/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_simple_cbr_Request"
- 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=CBRExpressFreeShipping"
- 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=CBRNormalShipping"
- 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=CBRExpressFreeShippingAlert"
- 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=CBRNormalShippingAlert"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-
-</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_CSV2XML/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_CSV2XML/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_CSV2XML/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_transform_CSV2XML_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_transform_CSV2XML_esb"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_EDI2XML_Groovy_XSLT/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_EDI2XML_Groovy_XSLT/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_EDI2XML_Groovy_XSLT/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_edi_groovy_xslt_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_edi_groovy_xslt_esb"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-</server>
-
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2POJO/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2POJO/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2POJO/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_transform_pojo_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_transform_pojo_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_simple_transformation_Response"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-
-</server>
-
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_date_manipulation_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_date_manipulation_esb"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2XML_simple/jbm-queue-service-scoped.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2XML_simple/jbm-queue-service-scoped.xml 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/transform_XML2XML_simple/jbm-queue-service-scoped.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
- <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
- <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
- </loader-repository>
-
- <mbean code="org.jboss.jms.server.destination.QueueService"
- name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_transform_simple_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_transform_simple_esb"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- <depends>jboss.messaging:service=PostOffice</depends>
- </mbean>
-</server>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap)
Property changes on: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap
___________________________________________________________________
Name: svn:ignore
+ jbossesb-gateway.xml
jbossesb-listener.xml
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,38 +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
- xpathEquals "/Order/@routeToFollow", "regular"
- then
- Log : "regular destination";
- Destination : "regular";
-end
-
-rule "Routing Rule using XPATH equals wiretap"
- when
- xpathEquals "/Order/@routeToFollow", "wiretap"
- then
- Log : "wiretap destination";
- Destination : "wiretap";
-end
-
-rule "Routing Rule using XPATH equals both"
- when
- xpathEquals "/Order/@routeToFollow", "both"
- then
- Log : "both destinations";
- Destination : "regular";
- Destination : "wiretap";
-end
-
-
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/MyESBRules-XPath.drl 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,38 @@
+#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
+ xpathEquals "/Order/@routeToFollow", "regular"
+ then
+ Log : "regular destination";
+ Destination : "regular";
+end
+
+rule "Routing Rule using XPATH equals wiretap"
+ when
+ xpathEquals "/Order/@routeToFollow", "wiretap"
+ then
+ Log : "wiretap destination";
+ Destination : "wiretap";
+end
+
+rule "Routing Rule using XPATH equals both"
+ when
+ xpathEquals "/Order/@routeToFollow", "both"
+ then
+ Log : "both destinations";
+ Destination : "regular";
+ Destination : "wiretap";
+end
+
+
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/SampleOrder.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/SampleOrder.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/SampleOrder.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,3 +0,0 @@
-<Order sampleData="CBR wiretap test" testDate="20070518" routeToFollow="both">
- <Customer userName="user1" firstName="Harry" lastName="Fletcher" state="SD"/>
-</Order>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/SampleOrder.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/SampleOrder.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/SampleOrder.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/SampleOrder.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,3 @@
+<Order sampleData="CBR wiretap test" testDate="20070518" routeToFollow="both">
+ <Customer userName="user1" firstName="Harry" lastName="Fletcher" state="SD"/>
+</Order>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/build.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/build.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,61 +0,0 @@
-<project name="Quickstart_wiretap" 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.wiretap.test.SendCBRJMSMessage" failonerror="true">
- <arg value="ESB wiretap 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.wiretap.test.SendJMSMessage" failonerror="true">
- <arg value="ESB wiretap pattern quickstart - message to destination channel"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="wiretap" depends="compile">
- <echo>Runs JMS Sender - to wiretap channel</echo>
- <java fork="yes" classname="quickstart.wiretap.test.SendWiretapJMSMessage" failonerror="true">
- <arg value="ESB wiretap pattern quickstart - message to wiretap channel"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="static-router" depends="compile">
- <echo>Runs Static-Router Test</echo>
- <java fork="yes" classname="quickstart.wiretap.test.SendStaticRouterJMSMessage" failonerror="true">
- <arg value="ESB wiretap pattern quickstart - static router test"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="receive-wiretap" depends="compile">
- <echo>Runs Test Wiretap message receiver</echo>
- <java fork="yes" classname="quickstart.wiretap.test.ReceiveJMSMessage" failonerror="true">
- <arg value="queue/qswiretap_wire_out_Request"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
- <target name="receive-destination" depends="compile">
- <echo>Runs Test Wiretap destination message receiver</echo>
- <java fork="yes" classname="quickstart.wiretap.test.ReceiveJMSMessage" failonerror="true">
- <arg value="queue/qswiretap_regular_Request"/>
- <classpath refid="exec-classpath"/>
- </java>
- </target>
-
-</project>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/build.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/build.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/build.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/build.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,61 @@
+<project name="Quickstart_wiretap" 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.wiretap.test.SendCBRJMSMessage" failonerror="true">
+ <arg value="ESB wiretap 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.wiretap.test.SendJMSMessage" failonerror="true">
+ <arg value="ESB wiretap pattern quickstart - message to destination channel"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="wiretap" depends="compile">
+ <echo>Runs JMS Sender - to wiretap channel</echo>
+ <java fork="yes" classname="quickstart.wiretap.test.SendWiretapJMSMessage" failonerror="true">
+ <arg value="ESB wiretap pattern quickstart - message to wiretap channel"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="static-router" depends="compile">
+ <echo>Runs Static-Router Test</echo>
+ <java fork="yes" classname="quickstart.wiretap.test.SendStaticRouterJMSMessage" failonerror="true">
+ <arg value="ESB wiretap pattern quickstart - static router test"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="receive-wiretap" depends="compile">
+ <echo>Runs Test Wiretap message receiver</echo>
+ <java fork="yes" classname="quickstart.wiretap.test.ReceiveJMSMessage" failonerror="true">
+ <arg value="queue/qswiretap_wire_out_Request"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+ <target name="receive-destination" depends="compile">
+ <echo>Runs Test Wiretap destination message receiver</echo>
+ <java fork="yes" classname="quickstart.wiretap.test.ReceiveJMSMessage" failonerror="true">
+ <arg value="queue/qswiretap_regular_Request"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+</project>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/deployment.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/deployment.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,9 +0,0 @@
-<jbossesb-deployment>
- <depends>jboss.esb:deployment=jbrules.esb</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_regular_Request</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_Esb_Request</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_cbr_Request</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_wire_GW_Request</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_wire_out_Request</depends>
- <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_static_router_Request</depends>
-</jbossesb-deployment>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/deployment.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/deployment.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/deployment.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/deployment.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,9 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=jbrules.esb</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_regular_Request</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_Esb_Request</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_cbr_Request</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_wire_GW_Request</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_wire_out_Request</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=qswiretap_static_router_Request</depends>
+</jbossesb-deployment>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jbm-queue-service.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbm-queue-service.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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=qswiretap_regular_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=qswiretap_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=qswiretap_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=qswiretap_wire_GW_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=qswiretap_wire_out_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=qswiretap_static_router_Request"
- xmbean-dd="xmdesc/Queue-xmbean.xml">
- <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
- </mbean>
-
-</server>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbm-queue-service.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jbm-queue-service.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbm-queue-service.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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=qswiretap_regular_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=qswiretap_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=qswiretap_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=qswiretap_wire_GW_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=qswiretap_wire_out_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=qswiretap_static_router_Request"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jbmq-queue-service.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbmq-queue-service.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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=qswiretap_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=qswiretap_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=qswiretap_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=qswiretap_wire_GW_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=qswiretap_wire_out_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=qswiretap_static_router_Request">
- <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
- </mbean>
-
-</server>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbmq-queue-service.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jbmq-queue-service.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbmq-queue-service.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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=qswiretap_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=qswiretap_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=qswiretap_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=qswiretap_wire_GW_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=qswiretap_wire_out_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=qswiretap_static_router_Request">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+
+</server>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jboss-esb.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jboss-esb.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,127 +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="wiretapCBRChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/qswiretap_cbr_Request" />
- </jms-bus>
-
- <jms-bus busid="wiretapChannel1">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/B" />
- </jms-bus>
-
- <jms-bus busid="wiretapChannel2">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/C" />
- </jms-bus>
-
- <jms-bus busid="wiretapChannel3">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/D" />
- </jms-bus>
-
- <jms-bus busid="wiretapGwChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/qswiretap_wire_GW_Request" />
- </jms-bus>
-
- <jms-bus busid="wiretapStaticRouterChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/qswiretap_static_router_Request" />
- </jms-bus>
-
- <jms-bus busid="wiretapEsbChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/qswiretap_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 wiretap quickstart only notifies the queues (output):
- queue/qswiretap_wire_out_Request, queue/qswiretap_regular_Request -->
-
- </jms-provider>
- </providers>
-
- <services>
-
- <!-- CBR Service -->
- <service category="wiretapCBRServices" name="FirstWiretapCBRServiceESB" description="ESB Listener" >
- <listeners>
- <jms-listener name="the-CBR-gateway" busidref="wiretapCBRChannel" maxThreads="1" is-gateway="true" />
- <jms-listener name="XPathContentBasedRouter" busidref="wiretapEsbChannel" 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="wiretapCategory1" service-name="regularService"/>
- <route-to destination-name="wiretap" service-category="wiretapCategory2" service-name="wiretapService"/>
- </property>
- </action>
- </actions>
- </service>
-
- <service category="wiretapCategory1" name="regularService" description="Static wiretap - regular service">
- <listeners>
- <jms-listener name="native1" busidref="wiretapChannel1" 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/qswiretap_regular_Request">
- <messageProp name="quickstart" value="regular_output" />
- </queue>
- </target>
- </NotificationList>
- </property>
- </action>
- </actions>
- </service>
-
- <service category="wiretapCategory2" name="wiretapService" description="Static wiretap - wiretap service">
- <listeners>
- <jms-listener name="wiretapJMS-Gateway" busidref="wiretapGwChannel" maxThreads="1" is-gateway="true" />
- <jms-listener name="native2" busidref="wiretapChannel2" maxThreads="1" />
- </listeners>
- <actions>
-
- <action name="wiretap_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/qswiretap_wire_out_Request">
- <messageProp name="quickstart" value="wiretap_output" />
- </queue>
- </target>
- </NotificationList>
- </property>
- </action>
-
- </actions>
- </service>
-
- <service category="wiretapCategory3" name="WiretapStaticListener" description="Static Router">
- <listeners>
- <jms-listener name="test-Gateway" busidref="wiretapStaticRouterChannel" maxThreads="1" is-gateway="true" />
- <jms-listener name="native3" busidref="wiretapChannel3" maxThreads="1" />
- </listeners>
- <actions>
- <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter">
- <property name="destinations">
- <route-to service-category="wiretapCategory2" service-name="wiretapService" />
- <route-to service-category="wiretapCategory1" service-name="regularService" />
- </property>
- </action>
- </actions>
- </service>
-
- </services>
-
-</jbossesb>
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jboss-esb.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jboss-esb.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jboss-esb.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jboss-esb.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,127 @@
+<?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="wiretapCBRChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/qswiretap_cbr_Request" />
+ </jms-bus>
+
+ <jms-bus busid="wiretapChannel1">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/B" />
+ </jms-bus>
+
+ <jms-bus busid="wiretapChannel2">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/C" />
+ </jms-bus>
+
+ <jms-bus busid="wiretapChannel3">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/D" />
+ </jms-bus>
+
+ <jms-bus busid="wiretapGwChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/qswiretap_wire_GW_Request" />
+ </jms-bus>
+
+ <jms-bus busid="wiretapStaticRouterChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/qswiretap_static_router_Request" />
+ </jms-bus>
+
+ <jms-bus busid="wiretapEsbChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/qswiretap_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 wiretap quickstart only notifies the queues (output):
+ queue/qswiretap_wire_out_Request, queue/qswiretap_regular_Request -->
+
+ </jms-provider>
+ </providers>
+
+ <services>
+
+ <!-- CBR Service -->
+ <service category="wiretapCBRServices" name="FirstWiretapCBRServiceESB" description="ESB Listener" >
+ <listeners>
+ <jms-listener name="the-CBR-gateway" busidref="wiretapCBRChannel" maxThreads="1" is-gateway="true" />
+ <jms-listener name="XPathContentBasedRouter" busidref="wiretapEsbChannel" 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="wiretapCategory1" service-name="regularService"/>
+ <route-to destination-name="wiretap" service-category="wiretapCategory2" service-name="wiretapService"/>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="wiretapCategory1" name="regularService" description="Static wiretap - regular service">
+ <listeners>
+ <jms-listener name="native1" busidref="wiretapChannel1" 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/qswiretap_regular_Request">
+ <messageProp name="quickstart" value="regular_output" />
+ </queue>
+ </target>
+ </NotificationList>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="wiretapCategory2" name="wiretapService" description="Static wiretap - wiretap service">
+ <listeners>
+ <jms-listener name="wiretapJMS-Gateway" busidref="wiretapGwChannel" maxThreads="1" is-gateway="true" />
+ <jms-listener name="native2" busidref="wiretapChannel2" maxThreads="1" />
+ </listeners>
+ <actions>
+
+ <action name="wiretap_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/qswiretap_wire_out_Request">
+ <messageProp name="quickstart" value="wiretap_output" />
+ </queue>
+ </target>
+ </NotificationList>
+ </property>
+ </action>
+
+ </actions>
+ </service>
+
+ <service category="wiretapCategory3" name="WiretapStaticListener" description="Static Router">
+ <listeners>
+ <jms-listener name="test-Gateway" busidref="wiretapStaticRouterChannel" maxThreads="1" is-gateway="true" />
+ <jms-listener name="native3" busidref="wiretapChannel3" maxThreads="1" />
+ </listeners>
+ <actions>
+ <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter">
+ <property name="destinations">
+ <route-to service-category="wiretapCategory2" service-name="wiretapService" />
+ <route-to service-category="wiretapCategory1" service-name="regularService" />
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ </services>
+
+</jbossesb>
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jbossesb-properties.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbossesb-properties.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/wiretap/jbossesb-properties.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jbossesb-properties.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbossesb-properties.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jbossesb-properties.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/wiretap/jndi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jndi.properties 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jndi.properties 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/wiretap/jndi.properties (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/jndi.properties)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jndi.properties (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/jndi.properties 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/wiretap/juddi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/juddi.properties 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/juddi.properties 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/wiretap/juddi.properties (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/juddi.properties)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/juddi.properties (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/juddi.properties 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/wiretap/log4j.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/log4j.xml 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/log4j.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/wiretap/log4j.xml (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/log4j.xml)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/log4j.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/log4j.xml 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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/product/samples/quickstarts/wiretap/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/readme.txt 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/readme.txt 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,161 +0,0 @@
-Overview:
-=========
- The purpose of the wiretap quickstart sample is demonstrate
- the wiretap J2EE pattern (as defined here:
- http://www.enterpriseintegrationpatterns.com/WireTap.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-wiretap'
- 5. Open another command terminal window in this folder ("Window4"), type 'ant runtest-cbr'.
- (Note the other ant targets listed below.)
- 6. Switch back to "Window1", "Window2", and "Window3" 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-wiretap'
- 5. Open another command terminal window in this folder ("Window4"), type 'ant runtest-cbr'.
- (Note the other ant targets listed below.) You can modify the "routeToFollow" element
- value in SampleOrder.xml to control the path that is followed thru the CBR. The valid
- values are: "regular,", "wiretap," and "both."
- 6. Switch back to "Window1", "Window2", and "Window3" 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. You can modify the build.xmlto change the phrase sent in the messages.
-
- application initiated
- |
- |
- V
- -------------------------- ----------------------------
- |qswiretap_wire_GWRequest| ---> |qswiretap_wire_out_Request|---> wiretap output
- -------------------------- ----------------------------
- |
- |
- V
- ---------------------------
- |qswiretap_regular_Request|
- ---------------------------
- |
- |
- V
- destination output
-
-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\SendWireJMSMessage.java -
- shoots in the string to the wiretap passed in via the
- command line or in this case the arg attribute in the ant
- wiretap 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.
-
- * src\quickstart\services\rules\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,
- bypasses wiretap completely
-
- * wiretap - send message thru gateway listener in
- MyJMSWiretapListener to wiretap output queue
-
- * static-router - send message thru static router
- gateway in org.jboss.soa.esb.actions.StaticRouter to
- both wiretap output queue and destination queue
-
- * runtest-cbr - send message thru CBR router gateway
- in org.jboss.soa.esb.actions.ContentBasedRouter to
- both wiretap output queue and destination queue
-
- * 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:
-
- * qswiretap_static_router_Request - Where the
- message enters the wiretap static router
-
- * qswiretap_regular_Request - The application
- destination for the message
-
- * qswiretap_wire_GWRequest - Where the message
- enters the wiretap via a gateway listener
-
- * qswiretap_wire_out_Request - Where the message
- exits the wiretap and can be processed by wiretap
- processes
-
- * qswiretap_cbr_Request - Where the message enters
- the wiretap 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/product/samples/quickstarts/wiretap/readme.txt (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/readme.txt)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/readme.txt (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/readme.txt 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,161 @@
+Overview:
+=========
+ The purpose of the wiretap quickstart sample is demonstrate
+ the wiretap J2EE pattern (as defined here:
+ http://www.enterpriseintegrationpatterns.com/WireTap.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-wiretap'
+ 5. Open another command terminal window in this folder ("Window4"), type 'ant runtest-cbr'.
+ (Note the other ant targets listed below.)
+ 6. Switch back to "Window1", "Window2", and "Window3" 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-wiretap'
+ 5. Open another command terminal window in this folder ("Window4"), type 'ant runtest-cbr'.
+ (Note the other ant targets listed below.) You can modify the "routeToFollow" element
+ value in SampleOrder.xml to control the path that is followed thru the CBR. The valid
+ values are: "regular,", "wiretap," and "both."
+ 6. Switch back to "Window1", "Window2", and "Window3" 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. You can modify the build.xmlto change the phrase sent in the messages.
+
+ application initiated
+ |
+ |
+ V
+ -------------------------- ----------------------------
+ |qswiretap_wire_GWRequest| ---> |qswiretap_wire_out_Request|---> wiretap output
+ -------------------------- ----------------------------
+ |
+ |
+ V
+ ---------------------------
+ |qswiretap_regular_Request|
+ ---------------------------
+ |
+ |
+ V
+ destination output
+
+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\SendWireJMSMessage.java -
+ shoots in the string to the wiretap passed in via the
+ command line or in this case the arg attribute in the ant
+ wiretap 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.
+
+ * src\quickstart\services\rules\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,
+ bypasses wiretap completely
+
+ * wiretap - send message thru gateway listener in
+ MyJMSWiretapListener to wiretap output queue
+
+ * static-router - send message thru static router
+ gateway in org.jboss.soa.esb.actions.StaticRouter to
+ both wiretap output queue and destination queue
+
+ * runtest-cbr - send message thru CBR router gateway
+ in org.jboss.soa.esb.actions.ContentBasedRouter to
+ both wiretap output queue and destination queue
+
+ * 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:
+
+ * qswiretap_static_router_Request - Where the
+ message enters the wiretap static router
+
+ * qswiretap_regular_Request - The application
+ destination for the message
+
+ * qswiretap_wire_GWRequest - Where the message
+ enters the wiretap via a gateway listener
+
+ * qswiretap_wire_out_Request - Where the message
+ exits the wiretap and can be processed by wiretap
+ processes
+
+ * qswiretap_cbr_Request - Where the message enters
+ the wiretap 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/product/samples/quickstarts/wiretap/src (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap)
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test)
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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.wiretap.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/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/ReceiveJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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.wiretap.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/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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.wiretap.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/qswiretap_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/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendCBRJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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.wiretap.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/qswiretap_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/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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.wiretap.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/qswiretap_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/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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.wiretap.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/qswiretap_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/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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.wiretap.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/qswiretap_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/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendStaticRouterJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -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.wiretap.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/qswiretap_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();
+
+ }
+
+}
Deleted: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java 2007-06-13 02:58:31 UTC (rev 12531)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -1,72 +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.wiretap.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 SendWiretapJMSMessage {
- QueueConnection conn;
-
- QueueSession session;
-
- Queue que;
-
- public void setupAConnection() throws JMSException, NamingException {
- InitialContext iniCtx = new InitialContext();
- Object tmp = iniCtx.lookup("ConnectionFactory");
- QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
- conn = qcf.createQueueConnection();
- que = (Queue) iniCtx.lookup("queue/qswiretap_wire_GW_Request");
- session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
- conn.start();
- System.out.println("Connection to wiretap Started");
- }
-
- public void stop() throws JMSException {
- conn.stop();
- session.close();
- conn.close();
- }
-
- public void sendMessage(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 {
- SendWiretapJMSMessage sm = new SendWiretapJMSMessage();
- sm.setupAConnection();
- sm.sendMessage(args[0]);
- sm.stop();
- }
-
-}
Copied: labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java (from rev 12531, labs/jbossesb/trunk/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/product/samples/quickstarts/wiretap/src/quickstart/wiretap/test/SendWiretapJMSMessage.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -0,0 +1,72 @@
+/*
+ * 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.wiretap.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 SendWiretapJMSMessage {
+ QueueConnection conn;
+
+ QueueSession session;
+
+ Queue que;
+
+ public void setupAConnection() throws JMSException, NamingException {
+ InitialContext iniCtx = new InitialContext();
+ Object tmp = iniCtx.lookup("ConnectionFactory");
+ QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
+ conn = qcf.createQueueConnection();
+ que = (Queue) iniCtx.lookup("queue/qswiretap_wire_GW_Request");
+ session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
+ conn.start();
+ System.out.println("Connection to wiretap Started");
+ }
+
+ public void stop() throws JMSException {
+ conn.stop();
+ session.close();
+ conn.close();
+ }
+
+ public void sendMessage(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 {
+ SendWiretapJMSMessage sm = new SendWiretapJMSMessage();
+ sm.setupAConnection();
+ sm.sendMessage(args[0]);
+ sm.stop();
+ }
+
+}
Modified: labs/jbossesb/workspace/dbevenius/product/services/jbossesb/src/main/java/org/jboss/soa/esb/actions/MessagePersister.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/product/services/jbossesb/src/main/java/org/jboss/soa/esb/actions/MessagePersister.java 2007-06-13 05:37:22 UTC (rev 12532)
+++ labs/jbossesb/workspace/dbevenius/product/services/jbossesb/src/main/java/org/jboss/soa/esb/actions/MessagePersister.java 2007-06-13 05:46:03 UTC (rev 12533)
@@ -27,6 +27,8 @@
*/
package org.jboss.soa.esb.actions;
+import java.net.URI;
+
import org.apache.log4j.Logger;
import org.jboss.internal.soa.esb.persistence.format.MessageStoreFactory;
import org.jboss.soa.esb.ConfigurationException;
@@ -44,6 +46,7 @@
public final static String MESSAGE_STORE_CLASS = "message-store-class";
public final static String CLASSIFICATION_ATTR = "classfication";
+
protected ConfigTree config;
protected MessageStore messageStore;
private String classification;
@@ -59,7 +62,8 @@
public Message process(Message message) throws ActionProcessingException
{
try {
- messageStore.addMessage(message, classification);
+ URI uri = messageStore.addMessage(message, classification);
+ message.getProperties().setProperty(MessageStore.MESSAGE_STORE_URI, uri);
} catch (MessageStoreException mse) {
log.error("Could not store undeliverable message.", mse);
}
Property changes on: labs/jbossesb/workspace/dbevenius/qa/junit
___________________________________________________________________
Name: svn:ignore
- build
junit*.properties
+ build
junit*.properties
product
More information about the jboss-svn-commits
mailing list