[jboss-svn-commits] JBL Code SVN: r10484 - in labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1: esb_actions and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Mar 23 12:52:54 EDT 2007
Author: tfennelly
Date: 2007-03-23 12:52:53 -0400 (Fri, 23 Mar 2007)
New Revision: 10484
Added:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/base-build.xml
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbmq-service.xml
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jboss-esb.xml
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/lib/
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/src/
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/src/quickstart/
Removed:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/esb_actions/src/
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbossesb.xml
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/src/quickstart/
Modified:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/build.xml
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/readme.txt
Log:
updated for new deployment model
Added: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/base-build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/base-build.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/base-build.xml 2007-03-23 16:52:53 UTC (rev 10484)
@@ -0,0 +1,94 @@
+<project name="Base" 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/" />
+
+ <antcall target="quickstart-specific-deploys" />
+
+ <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="quickstart-specific-deploys">
+ <!-- Override this target in the Quickstart in order to make Quickstart specific deployments. -->
+ <echo message="No Quickstart specific deployments being made." />
+ </target>
+
+ <target name="assert-ws-available">
+ <available property="ws-available" file="${jbosshome.dir}/server/default/deploy/jbossws.sar" type="dir" />
+ <fail unless="ws-available">**** DEPLOYMENT FAILED... Sorry, this Quickstart requires a JBoss Webservice container. '${jbosshome.dir}' does not have a Webservice container. Check the 'jbosshome.dir' property in ../quickstarts.properties"</fail>
+ <echo message="JBoss Webservice container found on target '${jbosshome.dir}'." />
+ </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/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/base-build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/build.xml 2007-03-23 16:50:44 UTC (rev 10483)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/build.xml 2007-03-23 16:52:53 UTC (rev 10484)
@@ -1,128 +1,52 @@
-<project name="Quickstart_webservice_war1" default="run" basedir=".">
-
- <property file="../quickstarts.properties" />
-
- <!-- setup for the ESB service -->
- <property name="esb_actions.build.dir" value="${basedir}/esb_actions/build"/>
- <property name="esb_actions.src.dir" value="${basedir}/esb_actions/src"/>
- <property name="esb-config" value="${basedir}/jbossesb.xml"/>
-
- <!-- setup for the WAR & Web service -->
- <property name="war.file.name" value="quickstartWAR1" />
- <property name="war.build.dir" value="${basedir}/war/build"/>
- <property name="war.src.dir" value="${basedir}/war/src"/>
-
+<project name="Quickstart_webservice_war1" default="deploy" basedir=".">
- <path id="classpath">
- <fileset dir="./war/lib/ext" includes="jbossws-client.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="${basedir}" includes="esb_actions/build/**/*.jar"/>
- <fileset dir="${jbosshome.dir}/server/default/lib">
- <include name="jboss-j2ee.jar"/>
- </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="${war.build.dir}"/>
- <mkdir dir="${war.build.dir}/dist"/>
- <mkdir dir="${esb_actions.build.dir}"/>
- </target>
+ <property name="additional.deploys" value="jbmq-service.xml"/>
- <target name="clean">
- <delete dir="${war.build.dir}" />
- <delete dir="${esb_actions.build.dir}"/>
- </target>
+ <!-- Import the base Ant build script... -->
+ <import file="base-build.xml"/>
- <target name="warcompile" depends="prepare">
- <javac srcdir="${war.src.dir}"
- destdir="${war.build.dir}">
- <classpath refid="classpath"/>
- </javac>
- </target>
-
- <target name="compile" depends="prepare">
- <javac srcdir="${esb_actions.src.dir}"
- destdir="${esb_actions.build.dir}">
- <classpath refid="classpath"/>
- </javac>
- </target>
+ <target name="quickstart-specific-deploys" depends="assert-ws-available">
+ <!-- Overriden from the target of the same name in base-build.xml. -->
+ <!-- Called by the "deploy" target. Don't call directly!! -->
- <target name="makewar" depends="warcompile">
- <war warfile="${war.build.dir}/dist/${war.file.name}.war"
- webxml="${basedir}/war/resources/WEB-INF/web.xml">
- <webinf dir="${basedir}/war/resources/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- <classes dir="${war.build.dir}" includes="**/*.class"/>
- <fileset dir="${basedir}/war/view">
- <include name="**/*"/>
- </fileset>
- <lib dir="${esb.product.lib.dir}">
- <include name="*.jar"/>
- </lib>
- <lib dir="${esb.product.lib.dir}/ext">
- <include name="jaxr-api-*.jar"/>
- <include name="scout-*.jar"/>
- <include name="juddi-*.jar"/>
- <include name="jbossts-common.jar"/>
- </lib>
- <classes dir="${basedir}">
- <include name="juddi.properties"/>
- </classes>
- </war>
- </target>
-
- <target name="jars" depends="compile">
- <delete file="${build.dir}/${ant.project.name}_ESB.jar"/>
- <jar destfile="${esb_actions.build.dir}/${ant.project.name}_ESB.jar"
- basedir="${esb_actions.build.dir}"
- includes="**/*.class"/>
- </target>
+ <!-- Build and deploy the webservice... -->
+ <antcall target="makewar" />
+ <copy file="build/${ant.project.name}.war" overwrite="true" todir="${jbosshome.dir}/server/default/deploy"/>
+ </target>
- <target name="deploywar" depends="makewar">
- <copy file="${war.build.dir}/dist/${war.file.name}.war" overwrite="true"
- todir="${jbosshome.dir}/server/default/deploy"/>
- </target>
-
- <target name="run" depends="deploywar,jars">
- <echo>The ESB services behind the WS War</echo>
- <java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">
- <arg value="${esb-config}"/>
- <classpath refid="classpath"/>
- </java>
- </target>
+ <target name="makewar">
+ <!-- Compile... -->
+ <mkdir dir="war/classes" />
+ <javac srcdir="war/src" destdir="war/classes">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="war/lib/ext" includes="*.jar" />
+ </classpath>
+ </javac>
- <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"/>
- <echo>Check your AS console to see if everything deployed properly</echo>
- </target>
-
- <target name="runtest">
- <echo>Runs Test JMS Sender</echo>
- <java fork="yes" classname="quickstart.helloworld.test.SendJMSMessage" failonerror="true">
- <arg value="Hello World"/>
- <classpath refid="classpath"/>
- </java>
- </target>
+ <!-- War... -->
+ <war warfile="build/${ant.project.name}.war"
+ webxml="${basedir}/war/resources/WEB-INF/web.xml">
+ <webinf dir="${basedir}/war/resources/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ <classes dir="war/classes" includes="**/*.class"/>
+ <fileset dir="${basedir}/war/view">
+ <include name="**/*"/>
+ </fileset>
+ <lib dir="${esb.product.lib.dir}">
+ <include name="*.jar"/>
+ </lib>
+ <lib dir="${esb.product.lib.dir}/ext">
+ <include name="jaxr-api-*.jar"/>
+ <include name="scout-*.jar"/>
+ <include name="juddi-*.jar"/>
+ <include name="jbossts-common.jar"/>
+ </lib>
+ <classes dir="${basedir}">
+ <include name="juddi.properties"/>
+ </classes>
+ </war>
+ </target>
</project>
\ No newline at end of file
Added: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbmq-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbmq-service.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbmq-service.xml 2007-03-23 16:52:53 UTC (rev 10484)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.mq.destination:service=Queue,name=quickstart_webservice_war1_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+</server>
\ No newline at end of file
Property changes on: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbmq-service.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Copied: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jboss-esb.xml (from rev 10465, labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbossesb.xml)
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jboss-esb.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jboss-esb.xml 2007-03-23 16:52:53 UTC (rev 10484)
@@ -0,0 +1,50 @@
+<?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="quickstartEsbChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/quickstart_webservice_war1_esb"
+ />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+
+ <service category="MyServiceCategory"
+ name="MyService"
+ description="WS Frontend speaks natively to the ESB" >
+ <listeners>
+ <jms-listener name="JMS-ESBListener"
+ busidref="quickstartEsbChannel"
+ maxThreads="1"
+ />
+ </listeners>
+ <actions>
+ <action name="displayAction"
+ class="quickstart.webservice_war1.MyAction"
+ process="displayMessage">
+ <property name="exceptionMethod" value="exceptionHandler"/>
+ </action>
+ <action name="playAction"
+ class="quickstart.webservice_war1.MyAction"
+ process="playWithMessage">
+ <property name="exceptionMethod" value="exceptionHandler"/>
+ </action>
+ <action name="displayAction"
+ class="quickstart.webservice_war1.MyAction"
+ process="displayMessage">
+ <property name="exceptionMethod" value="exceptionHandler"/>
+ </action>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Deleted: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbossesb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbossesb.xml 2007-03-23 16:50:44 UTC (rev 10483)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/jbossesb.xml 2007-03-23 16:52:53 UTC (rev 10484)
@@ -1,50 +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="quickstartEsbChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/B"
- />
- </jms-bus>
-
- </jms-provider>
- </providers>
-
- <services>
-
- <service category="MyServiceCategory"
- name="MyService"
- description="WS Frontend speaks natively to the ESB" >
- <listeners>
- <jms-listener name="JMS-ESBListener"
- busidref="quickstartEsbChannel"
- maxThreads="1"
- />
- </listeners>
- <actions>
- <action name="displayAction"
- class="quickstart.webservice_war1.MyAction"
- process="displayMessage">
- <property name="exceptionMethod" value="exceptionHandler"/>
- </action>
- <action name="playAction"
- class="quickstart.webservice_war1.MyAction"
- process="playWithMessage">
- <property name="exceptionMethod" value="exceptionHandler"/>
- </action>
- <action name="displayAction"
- class="quickstart.webservice_war1.MyAction"
- process="displayMessage">
- <property name="exceptionMethod" value="exceptionHandler"/>
- </action>
- </actions>
- </service>
- </services>
-
-</jbossesb>
Modified: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/readme.txt
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/readme.txt 2007-03-23 16:50:44 UTC (rev 10483)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/readme.txt 2007-03-23 16:52:53 UTC (rev 10484)
@@ -21,11 +21,14 @@
the needed jars and deploy the WAR component to the Application Server. If you are
monitoring the Application Server console you will see it hot deploy the WAR.
-2. Using a browser, hit the following URL: http://localhost:8080/jbossws.
-You should some the following result:
-jboss.ws:di=quickstartWAR1.war,port=HelloWorldPort,service=HelloWorldWSService
-http://yourMachineName:8080/quickstartWAR1/HelloWorldWS?wsdl
+2. Using a browser, hit the following URL: "http://localhost:8080/jbossws".
+You should see something like the following:
+------------------------------------------------------------------------------------------
+| jboss.ws:di=quickstartWAR1.war,port=HelloWorldPort,service=HelloWorldWSService |
+| http://yourMachineName:8080/quickstartWAR1/HelloWorldWS?wsdl |
+------------------------------------------------------------------------------------------
+
3. Use for favorite Web Service testing tool to invoke the Web Service. A great one
is called SoapUI at www.soapui.org.
Copied: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/src (from rev 10465, labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/esb_actions/src)
Copied: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/src/quickstart (from rev 10481, labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/webservice_war1/esb_actions/src/quickstart)
More information about the jboss-svn-commits
mailing list