[jboss-svn-commits] JBL Code SVN: r10296 - in labs/jbossesb/trunk/product/samples/quickstarts: helloworld_action and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Mar 16 22:06:52 EDT 2007
Author: kurt.stam at jboss.com
Date: 2007-03-16 22:06:52 -0400 (Fri, 16 Mar 2007)
New Revision: 10296
Added:
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/base-build.xml
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbm-queue-service.xml
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jboss-esb.xml
Removed:
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbossesb.xml
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/build.xml
Log:
Converting helloworld_action over to new packaging.
Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml 2007-03-17 01:21:09 UTC (rev 10295)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml 2007-03-17 02:06:52 UTC (rev 10296)
@@ -1,4 +1,4 @@
-<project name="Helloworld-quickstart" default="run" basedir=".">
+<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" />
@@ -6,9 +6,6 @@
<!-- Import the base Ant build script... -->
<import file="base-build.xml"/>
- <!-- 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">
<echo>Runs Test JMS Sender</echo>
<java fork="yes" classname="quickstart.helloworld.test.SendJMSMessage" failonerror="true">
Added: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/base-build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/base-build.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/base-build.xml 2007-03-17 02:06:52 UTC (rev 10296)
@@ -0,0 +1,81 @@
+<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="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>
+
+ <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,deployment.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"/>
+ <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}" />
+ </target>
+
+ <target name="clean">
+ <delete dir="build" />
+ </target>
+
+</project>
\ No newline at end of file
Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/base-build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/build.xml 2007-03-17 01:21:09 UTC (rev 10295)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/build.xml 2007-03-17 02:06:52 UTC (rev 10296)
@@ -1,82 +1,17 @@
-<project name="Quickstart_helloworld_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>
-
- <target name="run" depends="jars">
- <echo>Basic JMS Gateway and Listener with 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" depends="jars">
- <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>
+<project name="Quickstart_helloworld_action" default="runtest" basedir=".">
- <target name="runtest">
- <echo>Runs Test JMS Sender</echo>
- <java fork="yes" classname="quickstart.helloworld_action.test.SendJMSMessage" failonerror="true">
- <arg value="Hello World"/>
- <classpath refid="classpath"/>
- </java>
- </target>
+ <!-- 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"/>
+
+ <target name="runtest">
+ <echo>Runs Test JMS Sender</echo>
+ <java fork="yes" classname="quickstart.helloworld_action.test.SendJMSMessage" failonerror="true">
+ <arg value="Hello World Action"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
</project>
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbm-queue-service.xml 2007-03-17 02:06:52 UTC (rev 10296)
@@ -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_helloworld_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_helloworld_action_Response"
+ 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/helloworld_action/jbm-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Copied: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jboss-esb.xml (from rev 10294, labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbossesb.xml)
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jboss-esb.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jboss-esb.xml 2007-03-17 02:06:52 UTC (rev 10296)
@@ -0,0 +1,69 @@
+<?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="quickstartGwChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_helloworld_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="HelloWorld_ActionESB"
+ name="SimpleListener"
+ description="Hello World" >
+ <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="displayAction"
+ class="quickstart.helloworld_action.MyJMSListenerAction"
+ process="displayMessage">
+ <!-- property name="exceptionMethod" value="exceptionHandler"/ -->
+ </action>
+ <action name="playAction"
+ class="quickstart.helloworld_action.MyJMSListenerAction"
+ process="playWithMessage">
+
+ <!-- property name="exceptionMethod" value="exceptionHandler"/ -->
+ </action>
+ <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/quickstart_helloworld_action_Response">
+ <messageProp name="quickstart" value="hello_world_action" />
+ </queue>
+ </target>
+ </NotificationList>
+ </property>
+ </action>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Deleted: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbossesb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbossesb.xml 2007-03-17 01:21:09 UTC (rev 10295)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/jbossesb.xml 2007-03-17 02:06:52 UTC (rev 10296)
@@ -1,69 +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="quickstartGwChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/quickstart_helloworld_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="HelloWorld_ActionESB"
- name="SimpleListener"
- description="Hello World" >
- <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="displayAction"
- class="quickstart.helloworld_action.MyJMSListenerAction"
- process="displayMessage">
- <property name="exceptionMethod" value="exceptionHandler"/>
- </action>
- <action name="playAction"
- class="quickstart.helloworld_action.MyJMSListenerAction"
- process="playWithMessage">
-
- <property name="exceptionMethod" value="exceptionHandler"/>
- </action>
- <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/quickstart_helloworld_action_Response">
- <messageProp name="quickstart" value="hello_world_action" />
- </queue>
- </target>
- </NotificationList>
- </property>
- </action>
- </actions>
- </service>
- </services>
-
-</jbossesb>
More information about the jboss-svn-commits
mailing list