[jboss-svn-commits] JBL Code SVN: r20625 - in labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut: coordinator and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jun 19 00:51:03 EDT 2008
Author: jeffdelong
Date: 2008-06-19 00:51:03 -0400 (Thu, 19 Jun 2008)
New Revision: 20625
Added:
labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/
labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/README.txt
labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/build.xml
labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/
labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/ws-c_web-app.xml
labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/ws-t_web-app.xml
labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/xts-coord_application.xml
Log:
Added: labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/README.txt
===================================================================
--- labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/README.txt (rev 0)
+++ labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/README.txt 2008-06-19 04:51:03 UTC (rev 20625)
@@ -0,0 +1,47 @@
+#
+# JBoss, Home of Professional Open Source
+# Copyright 2006, Red Hat Middleware LLC, and individual contributors
+# as indicated by the @author tags.
+# 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 General Public License, v. 2.0.
+# 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 General Public License for more details.
+# You should have received a copy of the GNU General Public License,
+# v. 2.0 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.
+#
+To create a stand-alone coordinator:
+
+(1) create a separate installation of your application server to the one you
+will use for your clients/services.
+
+(2) edit the build.xml to point to this installation.
+
+You need to set hostname, port and deploy.dir parameters to those for the
+application server used for the stand-alone coordinator.
+
+(3) run ant with the deploy target deploy -jboss.
+
+(4) when running clients and services, edit the wstx.xml file in their
+deployment to add
+
+ <property
+ name="com.arjuna.mw.wst.coordinatorURL"
+ value="http://@hostname@:@port@/xts/soap/ActivationCoordinator"/>
+
+ <property
+ name="com.arjuna.mw.wst.ba.terminatorURL"
+ value="http://@hostname@:@port@/xts/soap/BusinessActivityTerminatorParticipant"/>
+
+where hostname and port are replaced with the appropriate values.
+
+(5) make sure you start your coordinator deployment before any clients or
+services that may want to use it.
Added: labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/build.xml
===================================================================
--- labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/build.xml (rev 0)
+++ labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/build.xml 2008-06-19 04:51:03 UTC (rev 20625)
@@ -0,0 +1,124 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ 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 General Public License, v. 2.0.
+ 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 General Public License for more details.
+ You should have received a copy of the GNU General Public License,
+ v. 2.0 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.
+-->
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- Copyright (c) 2003, Arjuna Technologies Limited. -->
+<!-- -->
+<!-- Arjuna-XML Standalone Coordinator -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<project name="coordinator" default="webapps" basedir=".">
+
+ <!-- ================================================================== -->
+
+ <!-- The properties to override are the following: -->
+ <!-- hostname (defaults to localhost) -->
+ <!-- port (defaults to 8080 for jboss) -->
+
+ <!-- deploy.dir The deployment directory for the ear -->
+ <!-- xts.home The installation directory for AXTS -->
+ <!-- ================================================================== -->
+
+ <property name="xts.home" value=".."/>
+ <property name="deploy.dir" value="/usr/local/jboss/server/all/deploy"/>
+ <property name="hostname" value="localhost"/>
+ <property name="port" value="8080"/>
+ <property name="webmethods.urlstub" value="xts-coordinator"/>
+
+ <property name="lib.dir" location="${xts.home}/lib"/>
+ <property name="ext.dir" location="${lib.dir}/ext"/>
+
+ <property name="ext.package" value="jbossjta.jar jbossts-common.jar commons-logging-1.1.jar stax-api-1.0.jar wstx-asl-2.0.3.jar"/>
+
+ <!-- ================================================================== -->
+
+ <property name="build.dir" value="build"/>
+ <property name="dd.dir" value="dd"/>
+ <property name="webapps.dir" value="${xts.home}/webapps"/>
+ <property name="xts.coord.dd.dir" value="${xts.home}/coordinator/dd"/>
+ <property name="build.dd.dir" value="${build.dir}/dd"/>
+ <property name="build.webapps.dir" value="${build.dir}/webapps"/>
+ <property name="build.webmethods.dir" value="${build.dir}/webmethods"/>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ <delete>
+ <fileset dir="." includes="**/*.bak" defaultexcludes="no"/>
+ <fileset dir="." includes="**/*~" defaultexcludes="no"/>
+ <fileset dir="." includes="**/#*#" defaultexcludes="no"/>
+ <fileset dir="." includes="**/.#*" defaultexcludes="no"/>
+ </delete>
+ </target>
+
+ <target name="init">
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${build.dd.dir}"/>
+ <mkdir dir="${build.webapps.dir}"/>
+ <mkdir dir="${build.webapps.dir}/tmp/ws-c"/>
+ <mkdir dir="${build.webapps.dir}/tmp/ws-t"/>
+ <mkdir dir="${build.webmethods.dir}"/>
+ </target>
+
+ <target name="webapps" depends="init">
+ <filter token="hostname" value="${hostname}"/>
+ <filter token="port" value="${port}"/>
+
+ <unjar src="${webapps.dir}/ws-c.war" dest="${build.webapps.dir}/tmp/ws-c"/>
+
+ <copy file="${xts.coord.dd.dir}/ws-c_web-app.xml"
+ tofile="${build.webapps.dir}/tmp/ws-c/WEB-INF/web.xml" filtering="true" overwrite="true"/>
+
+ <jar destfile="${build.webapps.dir}/ws-c.war" basedir="${build.webapps.dir}/tmp/ws-c" manifest="${build.webapps.dir}/tmp/ws-c/META-INF/MANIFEST.MF"/>
+
+ <delete dir="${build.webapps.dir}/tmp/ws-c"/>
+
+ <unjar src="${webapps.dir}/ws-t.war" dest="${build.webapps.dir}/tmp/ws-t"/>
+
+ <copy file="${xts.coord.dd.dir}/ws-t_web-app.xml"
+ tofile="${build.webapps.dir}/tmp/ws-t/WEB-INF/web.xml" filtering="true" overwrite="true"/>
+
+ <jar destfile="${build.webapps.dir}/ws-t.war" basedir="${build.webapps.dir}/tmp/ws-t" manifest="${build.webapps.dir}/tmp/ws-t/META-INF/MANIFEST.MF"/>
+
+ <delete dir="${build.webapps.dir}/tmp/ws-t"/>
+
+ <jar destfile="${build.dir}/config.jar" basedir="${xts.home}/conf"/>
+ </target>
+
+ <target name="jboss-ear" depends="webapps">
+ <ear earfile="${build.webapps.dir}/xts-coordinator_jboss.ear" appxml="${dd.dir}/xts-coord_application.xml">
+ <fileset dir="${lib.dir}" includes="*.jar"/>
+ <fileset dir="${ext.dir}" includes="${ext.package}"/>
+ <fileset dir="${build.dir}" includes="config.jar"/>
+ <fileset dir="${webapps.dir}" includes="wscf.war wstx.war"/>
+ <fileset dir="${build.webapps.dir}" includes="ws-c.war ws-t.war"/>
+ </ear>
+ </target>
+
+ <target name="deploy-jboss" depends="jboss-ear, undeploy-jboss">
+ <copy file="${build.webapps.dir}/xts-coordinator_jboss.ear" tofile="${deploy.dir}/xts-coordinator.ear"/>
+ </target>
+
+ <target name="undeploy-jboss">
+ <delete file="${deploy.dir}/xts-coordinator.ear"/>
+ </target>
+</project>
Added: labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/ws-c_web-app.xml
===================================================================
--- labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/ws-c_web-app.xml (rev 0)
+++ labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/ws-c_web-app.xml 2008-06-19 04:51:03 UTC (rev 20625)
@@ -0,0 +1,96 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ 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 General Public License, v. 2.0.
+ 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 General Public License for more details.
+ You should have received a copy of the GNU General Public License,
+ v. 2.0 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.
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+ <display-name>Arjuna Web Services and WS-Coordination</display-name>
+
+ <description>Arjuna Web Services and WS-Coordination</description>
+
+ <!-- Initialise the Task Manager -->
+ <context-param>
+ <param-name>TaskManager.minWorkerCount</param-name>
+ <param-value>0</param-value>
+ </context-param>
+ <context-param>
+ <param-name>TaskManager.maxWorkerCount</param-name>
+ <param-value>10</param-value>
+ </context-param>
+ <listener>
+ <listener-class>com.arjuna.services.framework.admin.TaskManagerInitialisation</listener-class>
+ </listener>
+
+ <!-- Initialise WS-C services -->
+ <listener>
+ <listener-class>com.arjuna.webservices.wscoor.server.ActivationCoordinatorInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wscoor.server.ActivationRequesterInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wscoor.server.RegistrationCoordinatorInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wscoor.server.RegistrationRequesterInitialisation</listener-class>
+ </listener>
+
+ <!-- Initialise WS-C -->
+ <listener>
+ <listener-class>com.arjuna.wsc.messaging.deploy.CoordinationInitialisation</listener-class>
+ </listener>
+
+ <!-- Initialise the HTTP Client -->
+ <listener>
+ <listener-class>com.arjuna.webservices.transport.http.HttpClientInitialisation</listener-class>
+ </listener>
+
+ <servlet>
+ <servlet-name>HTTP SOAP Service Multiplexor Servlet</servlet-name>
+ <servlet-class>com.arjuna.webservices.transport.http.HttpServiceMultiplexorServlet</servlet-class>
+ <!--
+ The BaseHttpURI and BaseHttpsURI parameters specify the default values
+ used to generate the service URIs without reference to an incoming
+ request.
+ -->
+ <init-param>
+ <param-name>BaseHttpURI</param-name>
+ <param-value>http://@hostname@:@port@/xts/soap/</param-value>
+ </init-param>
+ <!--
+ <init-param>
+ <param-name>BaseHttpsURI</param-name>
+ <param-value>https://@hostname@:@port@/xts/soap/</param-value>
+ </init-param>
+ <init-param>
+ <param-name>LogPackets</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ -->
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <!-- servlet mappings -->
+ <servlet-mapping>
+ <servlet-name>HTTP SOAP Service Multiplexor Servlet</servlet-name>
+ <url-pattern>/soap/*</url-pattern>
+ </servlet-mapping>
+</web-app>
Added: labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/ws-t_web-app.xml
===================================================================
--- labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/ws-t_web-app.xml (rev 0)
+++ labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/ws-t_web-app.xml 2008-06-19 04:51:03 UTC (rev 20625)
@@ -0,0 +1,69 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ 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 General Public License, v. 2.0.
+ 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 General Public License for more details.
+ You should have received a copy of the GNU General Public License,
+ v. 2.0 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.
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
+
+<web-app>
+ <display-name>Arjuna Web Services Transaction</display-name>
+
+ <description>Arjuna Web Services Transaction</description>
+
+ <!-- Initialise Arjuna TX services -->
+ <listener>
+ <listener-class>com.arjuna.webservices.wsarjtx.server.TerminationParticipantInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wsarjtx.server.TerminationCoordinatorInitialisation</listener-class>
+ </listener>
+
+ <!-- Initialise WS-AT services -->
+ <listener>
+ <listener-class>com.arjuna.webservices.wsat.server.CompletionCoordinatorInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wsat.server.CompletionInitiatorInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wsat.server.CoordinatorInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wsat.server.ParticipantInitialisation</listener-class>
+ </listener>
+
+ <!-- Initialise WS-BA services -->
+ <listener>
+ <listener-class>com.arjuna.webservices.wsba.server.CoordinatorCompletionCoordinatorInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wsba.server.CoordinatorCompletionParticipantInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wsba.server.ParticipantCompletionCoordinatorInitialisation</listener-class>
+ </listener>
+ <listener>
+ <listener-class>com.arjuna.webservices.wsba.server.ParticipantCompletionParticipantInitialisation</listener-class>
+ </listener>
+
+ <!-- Initialise WS-T -->
+ <listener>
+ <listener-class>com.arjuna.wst.messaging.deploy.TransactionInitialisation</listener-class>
+ </listener>
+</web-app>
Added: labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/xts-coord_application.xml
===================================================================
--- labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/xts-coord_application.xml (rev 0)
+++ labs/jbossesb/workspace/jdelong/wstx/trunk/product/samples/quickstarts/NightOut/coordinator/dd/xts-coord_application.xml 2008-06-19 04:51:03 UTC (rev 20625)
@@ -0,0 +1,56 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ 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 General Public License, v. 2.0.
+ 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 General Public License for more details.
+ You should have received a copy of the GNU General Public License,
+ v. 2.0 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.
+-->
+
+<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
+
+<application>
+ <display-name>Arjuna-XML Coordinator</display-name>
+
+ <description>Arjuna-XML Coordinator</description>
+
+ <module>
+ <web>
+ <web-uri>ws-c.war</web-uri>
+ <context-root>/xts</context-root>
+ </web>
+ </module>
+
+ <module>
+ <web>
+ <web-uri>ws-t.war</web-uri>
+ <context-root>/ws-t</context-root>
+ </web>
+ </module>
+
+ <module>
+ <web>
+ <web-uri>wscf.war</web-uri>
+ <context-root>/wscf</context-root>
+ </web>
+ </module>
+
+ <module>
+ <web>
+ <web-uri>wstx.war</web-uri>
+ <context-root>/wstx</context-root>
+ </web>
+ </module>
+</application>
More information about the jboss-svn-commits
mailing list