[jboss-svn-commits] JBL Code SVN: r10265 - in labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation: src/quickstart/helloworld/test and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Mar 16 11:12:24 EDT 2007
Author: tfennelly
Date: 2007-03-16 11:12:23 -0400 (Fri, 16 Mar 2007)
New Revision: 10265
Added:
labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/deployment.xml
labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service.xml
labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jboss-esb.xml
Removed:
labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbossesb.xml
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/base-build.xml
labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/src/quickstart/helloworld/test/SendJMSMessage.java
Log:
OK, it's working now - scoped classloading too
Modified: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/base-build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/base-build.xml 2007-03-16 15:08:52 UTC (rev 10264)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/base-build.xml 2007-03-16 15:12:23 UTC (rev 10265)
@@ -2,8 +2,10 @@
<property file="../quickstarts.properties" />
- <property name="classes" value="build/classes" />
+ <property name="additional.deploys" value="" />
+ <property name="classes" value="build/classes" />
+
<path id="compile-classpath">
<fileset dir="lib" includes="*.jar" /> <!-- Quickstart Specific Jars. -->
<fileset dir="../../../lib/ext" includes="*.jar" /> <!-- Product Dependencies. -->
@@ -11,8 +13,8 @@
</path>
<path id="exec-classpath">
<pathelement location="." />
- <pathelement location="src" />
- <fileset dir="build" includes="${ant.project.name}.jar" />
+ <pathelement location="src" />
+ <pathelement location="build/classes" />
<path refid="compile-classpath" />
<fileset dir="${jbosshome.dir}/server/default/lib" includes="jboss-j2ee.jar" /> <!-- Required for JMS Client Code. -->
</path>
@@ -22,7 +24,6 @@
<javac srcdir="src" destdir="${classes}">
<classpath refid="compile-classpath" />
</javac>
- <jar basedir="${classes}" destfile="build/${ant.project.name}.jar" />
</target>
<target name="run" depends="compile">
@@ -33,18 +34,40 @@
</java>
</target>
- <target name="deployToSAR" depends="compile">
- <echo>Deploys the project to the JBoss Application Server ESB SAR</echo>
- <copy file="build/${ant.project.name}.jar" overwrite="true" todir="${jbosshome.dir}/server/default/deploy/jbossesb.sar" />
- <copy overwrite="true" todir="${jbosshome.dir}/server/default/deploy/jbossesb-dependencies.sar">
- <!-- additional.deploys defined in build.xml -->
- <fileset dir="./" includes="${additional.deploys}" />
- </copy>
- <copy file="jbossesb.xml" overwrite="true" todir="${jbosshome.dir}/server/default/conf" />
- <touch file="${jbosshome.dir}/server/default/deploy/jbossesb.sar/META-INF/jboss-service.xml" />
- <echo>Check your AS console to see if everything deployed properly then run 'ant runtest'</echo>
- </target>
+ <target name="deployToSAR">
+ <echo message='******************' />
+ <echo message='DEPRECATED!! Sorry, this target has been deprecated for Quickstart Deployment.' />
+ <echo message='Run "ant deploy" to deploy this Quickstart to your target JBoss ESB Server.${line.separator}${line.separator}' />
+ <echo message='******************' />
+ <fail />
+ </target>
+ <target name="deploy" depends="compile">
+ <echo>Deploying Quickstart to JBoss ESB Server...</echo>
+
+ <mkdir dir="build/META-INF" />
+ <copy todir="build/META-INF">
+ <fileset dir="./" includes="jboss-esb.xml,deployment.xml" />
+ </copy>
+
+ <jar destfile="build/${ant.project.name}.esb">
+ <fileset dir="build/classes" />
+ <fileset dir="build" includes="META-INF/**" />
+ <fileset dir="${basedir}" includes="jbm-queue-service.xml"/>
+ <fileset dir="./" includes="${additional.deploys}" />
+ </jar>
+
+ <copy file="build/${ant.project.name}.esb" overwrite="true" todir="${jbosshome.dir}/server/default/deploy/" />
+
+ <echo message='${line.separator}******************' />
+ <echo>Quickstart deployed to target JBoss ESB Server at '${jbosshome.dir}'.</echo>
+ <echo>1. Check your ESB Server console to make sure the deployment was executed without errors.</echo>
+ <echo>2. Run 'ant runtest' to run the Quickstart.</echo>
+ <echo>3. Check your ESB Server console again. The Quickstart should have produced some output.</echo>
+ <echo message='******************' />
+
+ </target>
+
<target name="echoCP">
<property name="cp" refid="exec-classpath" />
<echo message="Classpath is ${cp}" />
Modified: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/build.xml 2007-03-16 15:08:52 UTC (rev 10264)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/build.xml 2007-03-16 15:12:23 UTC (rev 10265)
@@ -8,7 +8,7 @@
<!-- The ESB itself is started by the default "run" target - defined in base-build.xml -->
<!-- Target for injecting the sample order message for transformation... -->
- <target name="runtest">
+ <target name="runtest" depends="compile">
<echo>Runs Test JMS Sender</echo>
<java fork="yes" classname="quickstart.helloworld.test.SendJMSMessage" failonerror="true">
<arg value="SampleOrder.xml" />
Added: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/deployment.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/deployment.xml 2007-03-16 15:12:23 UTC (rev 10265)
@@ -0,0 +1,8 @@
+<jbossesb-deployment>
+ <loader-repository>
+ org.jboss.soa.esb:loader=simple-scoped
+ <loader-repository-config>
+ java2ParentDelegaton=false
+ </loader-repository-config>
+ </loader-repository>
+</jbossesb-deployment>
\ No newline at end of file
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/deployment.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service.xml 2007-03-16 15:12:23 UTC (rev 10265)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_date_manipulation_gw"
+ 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.messaging.destination:service=Queue,name=quickstart_date_manipulation_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+</server>
\ No newline at end of file
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbm-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Copied: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jboss-esb.xml (from rev 10255, labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbossesb.xml)
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jboss-esb.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jboss-esb.xml 2007-03-16 15:12:23 UTC (rev 10265)
@@ -0,0 +1,45 @@
+<?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-context-factory="org.jnp.interfaces.NamingContextFactory"
+ jndi-URL="localhost">
+
+ <jms-bus busid="quickstartGwChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_date_manipulation_gw" />
+ </jms-bus>
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_date_manipulation_esb" />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+ <service category="FirstServiceESB" name="SimpleListener"
+ description="Hello World">
+ <listeners>
+ <jms-listener name="JMS-Gateway" busidref="quickstartGwChannel" maxThreads="1" is-gateway="true"/>
+ <jms-listener name="quickstart" busidref="quickstartEsbChannel" maxThreads="1" />
+ </listeners>
+ <actions>
+ <action name="print-before" class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="[transform_XML2XML_date_manipulation] Message before transformation" />
+ </action>
+ <action name="transform" class="org.jboss.soa.esb.actions.converters.SmooksTransformer">
+ <property name="from" value="A" />
+ <property name="from-type" value="text/xml:messageAtA" />
+ <property name="to" value="B" />
+ <property name="to-type" value="text/xml:messageAtB" />
+ </action>
+ <action name="print-after" class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="[transform_XML2XML_date_manipulation] Message after transformation" />
+ </action>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Deleted: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbossesb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbossesb.xml 2007-03-16 15:08:52 UTC (rev 10264)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/jbossesb.xml 2007-03-16 15:12:23 UTC (rev 10265)
@@ -1,45 +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-context-factory="org.jnp.interfaces.NamingContextFactory"
- jndi-URL="localhost">
-
- <jms-bus busid="quickstartGwChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/A" />
- </jms-bus>
- <jms-bus busid="quickstartEsbChannel">
- <jms-message-filter dest-type="QUEUE" dest-name="queue/B" />
- </jms-bus>
-
- </jms-provider>
- </providers>
-
- <services>
- <service category="FirstServiceESB" name="SimpleListener"
- description="Hello World">
- <listeners>
- <jms-listener name="JMS-Gateway" busidref="quickstartGwChannel" maxThreads="1" is-gateway="true"/>
- <jms-listener name="quickstart" busidref="quickstartEsbChannel" maxThreads="1" />
- </listeners>
- <actions>
- <action name="print-before" class="org.jboss.soa.esb.actions.SystemPrintln">
- <property name="message" value="Message before transformation" />
- </action>
- <action name="transform" class="org.jboss.soa.esb.actions.converters.SmooksTransformer">
- <property name="from" value="A" />
- <property name="from-type" value="text/xml:messageAtA" />
- <property name="to" value="B" />
- <property name="to-type" value="text/xml:messageAtB" />
- </action>
- <action name="print-after" class="org.jboss.soa.esb.actions.SystemPrintln">
- <property name="message" value="Message after transformation" />
- </action>
- </actions>
- </service>
- </services>
-
-</jbossesb>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/src/quickstart/helloworld/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/src/quickstart/helloworld/test/SendJMSMessage.java 2007-03-16 15:08:52 UTC (rev 10264)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_date_manipulation/src/quickstart/helloworld/test/SendJMSMessage.java 2007-03-16 15:12:23 UTC (rev 10265)
@@ -49,7 +49,7 @@
Object tmp = iniCtx.lookup("ConnectionFactory");
QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
conn = qcf.createQueueConnection();
- que = (Queue) iniCtx.lookup("queue/A");
+ que = (Queue) iniCtx.lookup("queue/quickstart_date_manipulation_gw");
session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
conn.start();
System.out.println("Connection Started");
More information about the jboss-svn-commits
mailing list