[jboss-svn-commits] JBL Code SVN: r10427 - in labs/jbossesb/trunk/product/samples/quickstarts: helloworld_action and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Mar 21 21:03:12 EDT 2007
Author: kurt.stam at jboss.com
Date: 2007-03-21 21:03:12 -0400 (Wed, 21 Mar 2007)
New Revision: 10427
Added:
labs/jbossesb/trunk/product/samples/quickstarts/more_action/base-build.xml
labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbm-queue-service.xml
labs/jbossesb/trunk/product/samples/quickstarts/more_action/jboss-esb.xml
Removed:
labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbossesb.xml
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/more_action/build.xml
Log:
Converting to .esb deployment
Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml 2007-03-22 01:01:14 UTC (rev 10426)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml 2007-03-22 01:03:12 UTC (rev 10427)
@@ -1,8 +1,5 @@
<project name="Quickstart_helloworld" default="runtest" basedir=".">
- <!-- Additional files to be deployed in the sar. -->
- <property name="additional.deploys" value="smooks-cdr.lst,smooks-res.xml" />
-
<!-- Import the base Ant build script... -->
<import file="base-build.xml"/>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/build.xml 2007-03-22 01:01:14 UTC (rev 10426)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/build.xml 2007-03-22 01:03:12 UTC (rev 10427)
@@ -1,8 +1,5 @@
<project name="Quickstart_helloworld_action" default="runtest" basedir=".">
- <!-- Additional files to be deployed in the sar. -->
- <property name="additional.deploys" value="smooks-cdr.lst,smooks-res.xml" />
-
<!-- Import the base Ant build script... -->
<import file="base-build.xml"/>
Added: labs/jbossesb/trunk/product/samples/quickstarts/more_action/base-build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/more_action/base-build.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/more_action/base-build.xml 2007-03-22 01:03:12 UTC (rev 10427)
@@ -0,0 +1,80 @@
+<project name="Base" default="run" basedir=".">
+
+ <property file="../quickstarts.properties" />
+
+ <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. -->
+ <fileset dir="${esb.product.lib.dir}" includes="*.jar" /> <!-- Product Jars. -->
+ </path>
+ <path id="exec-classpath">
+ <pathelement location="." />
+ <pathelement location="build/classes" />
+ <pathelement location="src" />
+ <path refid="compile-classpath" />
+ <fileset dir="${jbosshome.dir}/server/default/lib" includes="jboss-j2ee.jar" /> <!-- Required for JMS Client Code. -->
+ </path>
+
+ <target name="compile" depends="clean">
+ <mkdir dir="${classes}" />
+ <javac srcdir="src" destdir="${classes}">
+ <classpath refid="compile-classpath" />
+ </javac>
+ </target>
+
+ <target name="run" depends="compile">
+ <echo>Launching Quickstart in standalone mode...</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">
+ <arg value="./jbossesb.xml" />
+ <classpath refid="exec-classpath" />
+ </java>
+ </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" />
+ </copy>
+
+ <jar destfile="build/${ant.project.name}.esb">
+ <fileset dir="build/classes" />
+ <fileset dir="src" excludes="**/*.java" />
+ <fileset dir="build" includes="META-INF/**" />
+ <fileset dir="${basedir}" includes="jbm-queue-service.xml"/>
+ </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}" />
+ </target>
+
+ <target name="clean">
+ <delete dir="build" />
+ </target>
+
+</project>
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/more_action/base-build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified: labs/jbossesb/trunk/product/samples/quickstarts/more_action/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/more_action/build.xml 2007-03-22 01:01:14 UTC (rev 10426)
+++ labs/jbossesb/trunk/product/samples/quickstarts/more_action/build.xml 2007-03-22 01:03:12 UTC (rev 10427)
@@ -1,81 +1,13 @@
<project name="Quickstart_more_action" default="run" basedir=".">
-
- <property file="../quickstarts.properties" />
-
- <property name="build.dir" value="${basedir}/build"/>
- <property name="src.dir" value="${basedir}/src"/>
- <property name="esb-config" value="${basedir}/jbossesb.xml"/>
-
- <path id="classpath">
- <!-- fileset dir="${basedir}" includes="jbossesb-properties.xml" -->
- <!-- fileset dir="${basedir}" includes="juddi.properties" -->
- <fileset dir="${basedir}/lib" includes="*jar"/>
- <fileset dir="${esb.product.lib.dir}" includes="*jar"/>
- <fileset dir="${esb.product.lib.dir}" includes="*xml"/>
- <fileset dir="${esb.product.lib.dir}/ext" includes="*jar"/>
- <fileset dir="${jbosshome.dir}/client" includes="*jar"/>
- <fileset dir="${jbosshome.dir}/server/default/lib">
- <include name="jboss-j2ee.jar"/> <!-- added this for the JMS client -->
- </fileset>
-
- <fileset dir="${basedir}" includes="build/**/*.jar"/>
- <fileset dir="${basedir}" includes="build/**/*.xml"/>
- <pathelement location="." />
- </path>
-
- <property name="cp" refid="classpath"/>
-
- <target name="echoCP">
- <echo message="Classpath is ${cp}"/>
- </target>
-
- <target name="prepare">
- <mkdir dir="${build.dir}" />
- </target>
-
- <target name="clean">
- <delete dir="${build.dir}" />
- </target>
-
- <target name="compile" depends="prepare">
- <javac srcdir="${src.dir}"
- destdir="${build.dir}">
- <classpath refid="classpath"/>
- </javac>
- </target>
-
- <target name="jars" depends="compile">
- <delete file="${build.dir}/${ant.project.name}.jar"/>
- <jar destfile="${build.dir}/${ant.project.name}.jar"
- basedir="${build.dir}"
- includes="**/*.class"/>
- </target>
+ <!-- Import the base Ant build script... -->
+ <import file="base-build.xml"/>
- <target name="run" depends="jars">
- <echo>More Actions</echo>
- <java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">
- <arg value="${esb-config}"/>
- <classpath refid="classpath"/>
- </java>
- </target>
-
- <target name="deployToSAR">
- <echo>Deploys the project to the JBoss Application Server ESB SAR</echo>
- <copy file="${build.dir}/${ant.project.name}.jar" overwrite="true"
- todir="${jbosshome.dir}/server/default/deploy/jbossesb.sar"
- />
- <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"/>
- </target>
-
<target name="runtest">
<echo>Runs Test JMS Sender</echo>
<java fork="yes" classname="quickstart.moreaction.test.SendJMSMessage" failonerror="true">
<arg value="Goodbye World"/>
- <classpath refid="classpath"/>
+ <classpath refid="exec-classpath"/>
</java>
</target>
</project>
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbm-queue-service.xml 2007-03-22 01:03:12 UTC (rev 10427)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.messaging.destination:service=Queue,name=quickstart_more_action_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.messaging.destination:service=Queue,name=quickstart_more_action_Response"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ </mbean>
+
+</server>
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbm-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: labs/jbossesb/trunk/product/samples/quickstarts/more_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/more_action/jboss-esb.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/more_action/jboss-esb.xml 2007-03-22 01:03:12 UTC (rev 10427)
@@ -0,0 +1,64 @@
+<?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_more_action_Request"
+ />
+ </jms-bus>
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/B"
+ />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+
+ <service category="ActionServices"
+ name="MoreActionService"
+ description="More Action EPR description" >
+ <listeners>
+ <jms-listener name="JMS-Gateway"
+ busidref="quickstartGwChannel"
+ maxThreads="1"
+ is-gateway="true"
+ />
+ <jms-listener name="JMS-ESBListener"
+ busidref="quickstartEsbChannel"
+ maxThreads="1"
+ />
+ </listeners>
+ <actions>
+ <action name="first" class="quickstart.moreaction.MyJMSListenerAction" process="displayMessage" >
+ <property name="exceptionMethod" value="exceptionHandler" />
+ </action>
+ <action name="second" class="quickstart.moreaction.MyJMSListenerAction" >
+ <property name="exceptionMethod" value="exceptionHandler" />
+ </action>
+ <action name="third" class="quickstart.moreaction.StatefulAction" process="methodOne,methodTwo,displayCount" >
+ <property name="exceptionMethod" value="exceptionHandler" />
+ </action>
+ <action name="fourth" class="quickstart.moreaction.CustomConfigAction" process="displayConfig" >
+ <property name="myStuff" value="rocks" />
+ <property name="moreStuff" value="rocks harder"/>
+ <property name="subElements">
+ <subElement1>Value of 1</subElement1>
+ <subElement2>Value of 2</subElement2>
+ <subElement3>Value of 3</subElement3>
+ </property>
+ </action>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/more_action/jboss-esb.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Deleted: labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbossesb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbossesb.xml 2007-03-22 01:01:14 UTC (rev 10426)
+++ labs/jbossesb/trunk/product/samples/quickstarts/more_action/jbossesb.xml 2007-03-22 01:03:12 UTC (rev 10427)
@@ -1,64 +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/quickstart_more_action_Request"
- />
- </jms-bus>
- <jms-bus busid="quickstartEsbChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/B"
- />
- </jms-bus>
-
- </jms-provider>
- </providers>
-
- <services>
-
- <service category="ActionServices"
- name="MoreActionService"
- description="More Action EPR description" >
- <listeners>
- <jms-listener name="JMS-Gateway"
- busidref="quickstartGwChannel"
- maxThreads="1"
- is-gateway="true"
- />
- <jms-listener name="JMS-ESBListener"
- busidref="quickstartEsbChannel"
- maxThreads="1"
- />
- </listeners>
- <actions>
- <action name="first" class="quickstart.moreaction.MyJMSListenerAction" process="displayMessage" >
- <property name="exceptionMethod" value="exceptionHandler" />
- </action>
- <action name="second" class="quickstart.moreaction.MyJMSListenerAction" >
- <property name="exceptionMethod" value="exceptionHandler" />
- </action>
- <action name="third" class="quickstart.moreaction.StatefulAction" process="methodOne,methodTwo,displayCount" >
- <property name="exceptionMethod" value="exceptionHandler" />
- </action>
- <action name="fourth" class="quickstart.moreaction.CustomConfigAction" process="displayConfig" >
- <property name="myStuff" value="rocks" />
- <property name="moreStuff" value="rocks harder"/>
- <property name="subElements">
- <subElement1>Value of 1</subElement1>
- <subElement2>Value of 2</subElement2>
- <subElement3>Value of 3</subElement3>
- </property>
- </action>
- </actions>
- </service>
- </services>
-
-</jbossesb>
More information about the jboss-svn-commits
mailing list