[jboss-svn-commits] JBL Code SVN: r12145 - in labs/jbossesb/trunk/product/samples/trailblazer: client/jsp and 6 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri May 25 14:13:23 EDT 2007
Author: tcunning
Date: 2007-05-25 14:13:23 -0400 (Fri, 25 May 2007)
New Revision: 12145
Added:
labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jaxb-api.jar
labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jboss-jaxws.jar
labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jbossws-core.jar
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/jaxrpc-mapping.xml
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/webservices.xml
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wsdl/
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wsdl/LoanBrokerService.wsdl
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wstools-config.xml
labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanRequester.java
labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerInterface.java
labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWSService.java
Removed:
labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/axis.jar
labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/commons-discovery.jar
labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/milyn-smooks-csv-0.1.jar
labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/opencsv-1.6.jar
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS-wsdl
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS-wsdl.xml
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS.wsdl
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/from__loanbroker.cdrl
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/smooks-cdr.lst
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/to____jmsbank.cdrl
labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/
Modified:
labs/jbossesb/trunk/product/samples/trailblazer/build.properties
labs/jbossesb/trunk/product/samples/trailblazer/build.xml
labs/jbossesb/trunk/product/samples/trailblazer/client/jsp/index.jsp
labs/jbossesb/trunk/product/samples/trailblazer/client/resources/web.xml
labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanBroker.java
labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java
labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/WebCustomer.java
labs/jbossesb/trunk/product/samples/trailblazer/esb/conf/deployment.xml
Log:
bug:JBESB-540
Commit changes to trailblazer. Removed AXIS references, now using
JBossWS. Cleaned up unused files. Cleaned up super-long target names
in build.xml.
Modified: labs/jbossesb/trunk/product/samples/trailblazer/build.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/build.properties 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/build.properties 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,2 +1,2 @@
-org.jboss.soa.samples.trailblazer.jboss_home=/Users/tcunning/esb/esbserver
+org.jboss.soa.samples.trailblazer.jboss_home=/Users/cunningt/esb/jboss-4.2.0.GA
org.jboss.soa.samples.trailblazer.jboss_server=default
Modified: labs/jbossesb/trunk/product/samples/trailblazer/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/build.xml 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/build.xml 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,234 +1,236 @@
-<!--
- JBoss, Home of Professional Open Source
- Copyright 2006, JBoss Inc., and others contributors as indicated
- by the @authors tag. All rights reserved.
- 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 Lesser General Public License, v. 2.1.
- 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 Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public License,
- v.2.1 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 Daniel Brum
--->
+<project name="TRAILBLAZER" default="esb.samples.trailblazer.esb.compile" basedir=".">
-<project name="TRAILBLAZER" default="org.jboss.esb.samples.trailblazer.esb.compile" basedir=".">
-
<!-- UPDATE THIS WITH YOUR JBOSS_HOME AND SERVER -->
- <property file="build.properties" />
+ <property name="trailblazer.dir" location="."/>
+ <property name="esb.home.dir" value="${trailblazer.dir}/../.."/>
+ <property name="install.dir" value="${esb.home.dir}/install"/>
+ <property file="${install.dir}/deployment.properties"/>
- <property name="org.jboss.soa.samples.trailblazer.jboss_home" value="/jboss-4.0.5.GA"/>
- <property name="org.jboss.soa.samples.trailblazer.jboss_server" value="default"/>
- <property name="org.jboss.soa.samples.trailblazer.home" value="."/>
+ <property name="org.jboss.esb.server.home" value="/jboss-4.0.5.GA"/>
+ <property name="org.jboss.esb.server.config" value="default"/>
+ <property name="trailblazer.dir" value="."/>
- <property name="org.jboss.soa.samples.trailblazer.esb_home" location="../../"/>
+ <property name="esb.home.dir" location="../../"/>
<!-- properties for the esb part of the trailblazer -->
- <property name="org.jboss.esb.samples.trailblazer.esb.dest" value="${basedir}/esb/build"/>
- <property name="org.jboss.esb.samples.trailblazer.esb.classes.dir" value="${basedir}/esb/build/classes"/>
- <property name="org.jboss.esb.samples.trailblazer.esb.testclasses.dir" value="${basedir}/esb/build/classes/tests/"/>
- <property name="org.jboss.esb.samples.trailblazer.esb.src.dir" value="${basedir}/esb/src"/>
- <property name="org.jboss.esb.samples.trailblazer.esb.test.dir" value="${basedir}/esb/test"/>
- <property name="org.jboss.esb.samples.trailblazer.esb.lib.dir" value="${basedir}/esb/lib"/>
- <property name="org.jboss.esb.samples.trailblazer.esb.tests.report.dir" value="${basedir}/esb/build/tests"/>
+ <property name="esb.dest" value="${basedir}/esb/build"/>
+ <property name="classes.dir" value="${basedir}/esb/build/classes"/>
+ <property name="esb.testclasses.dir" value="${basedir}/esb/build/classes/tests/"/>
+ <property name="esb.src.dir" value="${basedir}/esb/src"/>
+ <property name="esb.test.dir" value="${basedir}/esb/test"/>
+ <property name="esb.lib.dir" value="${basedir}/esb/lib"/>
+ <property name="report.dir" value="${basedir}/esb/build/tests"/>
<!-- properties for the client(web) part of the trailblazer -->
- <property name="org.jboss.esb.samples.trailblazer.client.dest" value="${basedir}/client/build"/>
- <property name="org.jboss.esb.samples.trailblazer.client.classes.dir" value="${basedir}/client/build/classes"/>
- <property name="org.jboss.esb.samples.trailblazer.client.testclasses.dir" value="${basedir}/client/build/classes/tests/"/>
- <property name="org.jboss.esb.samples.trailblazer.client.src.dir" value="${basedir}/client/src"/>
- <property name="org.jboss.esb.samples.trailblazer.client.test.dir" value="${basedir}/client/test"/>
- <property name="org.jboss.esb.samples.trailblazer.client.lib.dir" value="${basedir}/client/lib"/>
- <property name="org.jboss.esb.samples.trailblazer.client.tests.report.dir" value="${basedir}/client/build/tests"/>
+ <property name="client.dir" value="${basedir}/client"/>
+ <property name="esb.samples.trailblazer.client.dest"
+ value="${basedir}/client/build"/>
+ <property name="esb.samples.trailblazer.client.classes.dir"
+ value="${basedir}/client/build/classes"/>
+ <property name="esb.samples.trailblazer.client.testclasses.dir"
+ value="${basedir}/client/build/classes/tests/"/>
+ <property name="esb.samples.trailblazer.client.src.dir"
+ value="${basedir}/client/src"/>
+ <property name="esb.samples.trailblazer.client.test.dir"
+ value="${basedir}/client/test"/>
+ <property name="esb.samples.trailblazer.client.lib.dir"
+ value="${basedir}/client/lib"/>
+ <property name="esb.samples.trailblazer.client.tests.report.dir"
+ value="${basedir}/client/build/tests"/>
<property environment="env" />
- <property name="org.jboss.soa.esb.lib.file" value="jbossesb-rosetta.jar"/>
- <property name="org.jboss.soa.esb.lib.dist.dir" value="${org.jboss.soa.samples.trailblazer.esb_home}/lib"/>
- <property name="org.jboss.soa.esb.lib.src.dir" value="../../build/jbossesb/lib"/>
+ <property name="esb.lib.file" value="jbossesb-rosetta.jar"/>
+ <property name="soa.esb.lib.dist.dir" value="${esb.home.dir}/lib"/>
+ <property name="soa.esb.lib.src.dir" value="../../build/jbossesb/lib"/>
- <available file="${org.jboss.soa.esb.lib.file}"
- filepath="${org.jboss.soa.esb.lib.dist.dir}"
- property="org.jboss.soa.esb.lib.dir"
- value="${org.jboss.soa.esb.lib.dist.dir}"/>
+ <available file="${esb.lib.file}"
+ filepath="${soa.esb.lib.dist.dir}"
+ property="soa.esb.lib.dir"
+ value="${soa.esb.lib.dist.dir}"/>
- <available file="${org.jboss.soa.esb.lib.file}"
- filepath="${org.jboss.soa.esb.lib.src.dir}"
- property="org.jboss.soa.esb.lib.dir"
- value="${org.jboss.soa.esb.lib.src.dir}"/>
+ <available file="${esb.lib.file}"
+ filepath="${soa.esb.lib.src.dir}"
+ property="soa.esb.lib.dir"
+ value="${soa.esb.lib.src.dir}"/>
- <property name="org.jboss.soa.esb.lib.ext.dir" value="${org.jboss.soa.esb.lib.dir}/ext"/>
-
+ <property name="soa.esb.lib.ext.dir" value="${soa.esb.lib.dir}/ext"/>
+ <!-- wstools classpath -->
+ <path id="wstools.classpath">
+ <fileset dir="${client.dir}/lib/ext/jboss-jaxws.jar"/>
+ <fileset dir="${client.dir}/lib/ext/jbossws-client.jar"/>
+ <fileset dir="${esb.samples.trailblazer.client.lib.dir}" includes="*.jar"/>
+ </path>
+
<!-- classpath -->
- <path id="org.jboss.esb.samples.trailblazer.esb.classpath">
- <fileset dir="${org.jboss.soa.esb.lib.dir}/ext" includes="*.jar"/>
- <fileset dir="${org.jboss.esb.samples.trailblazer.esb.lib.dir}/ext" includes="*.jar"/>
- <fileset dir="${org.jboss.soa.samples.trailblazer.jboss_home}/client" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
- <fileset dir="${org.jboss.soa.esb.lib.dir}" includes="*.jar"/>
- <fileset dir="${org.jboss.esb.samples.trailblazer.client.lib.dir}/ext" includes="*.jar"/>
+ <path id="esb.samples.trailblazer.esb.classpath">
+ <fileset dir="${soa.esb.lib.dir}/ext" includes="*.jar"/>
+ <fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
+ <fileset dir="${org.jboss.esb.server.home}/client" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
+ <fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
+ <fileset dir="${esb.samples.trailblazer.client.lib.dir}/ext" includes="*.jar"/>
</path>
<!-- classpath for running the listener-->
- <path id="org.jboss.esb.samples.trailblazer.esb.classpath.run">
- <fileset dir="${org.jboss.soa.esb.lib.ext.dir}"
+ <path id="esb.samples.trailblazer.esb.classpath.run">
+ <fileset dir="${soa.esb.lib.ext.dir}"
includes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
- <fileset dir="${org.jboss.esb.samples.trailblazer.esb.dest}/dist" includes="trailblazer-esb.jar"/>
- <fileset dir="${org.jboss.soa.samples.trailblazer.esb_home}/lib/ext" includes="*.jar" excludes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
- <fileset dir="${org.jboss.soa.esb.lib.ext.dir}" includes="*.jar" excludes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
- <fileset dir="${org.jboss.soa.samples.trailblazer.jboss_home}/client" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
- <fileset dir="${org.jboss.soa.esb.lib.dir}" includes="*.jar"/>
- <fileset dir="${org.jboss.esb.samples.trailblazer.esb.lib.dir}/ext" includes="*.jar"/>
+ <fileset dir="${esb.dest}/dist" includes="trailblazer-esb.jar"/>
+ <fileset dir="${esb.home.dir}/lib/ext" includes="*.jar" excludes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
+ <fileset dir="${soa.esb.lib.ext.dir}" includes="*.jar" excludes="jaxr-api*.jar,scout*.jar,juddi*.jar"/>
+ <fileset dir="${org.jboss.esb.server.home}/client" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
+ <fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
+ <fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
<!-- for finding the jbossesb-properties.xml file -->
<pathelement location="${basedir}"/>
</path>
- <path id="org.jboss.esb.samples.trailblazer.esb.classpath.client">
- <fileset dir="${org.jboss.soa.esb.lib.ext.dir}"/>
- <fileset dir="${org.jboss.esb.samples.trailblazer.esb.lib.dir}/ext" includes="*.jar"/>
- <fileset dir="${org.jboss.soa.samples.trailblazer.jboss_home}/client" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
- <fileset dir="${org.jboss.soa.esb.lib.dir}" includes="*.jar"/>
- <fileset dir="${org.jboss.esb.samples.trailblazer.client.lib.dir}/ext" includes="*.jar"/>
- <fileset dir="${org.jboss.esb.samples.trailblazer.esb.dest}/dist" includes="trailblazer-esb.jar"/>
- <pathelement location="${org.jboss.esb.samples.trailblazer.esb.classes.dir}"/>
- </path>
+ <path id="esb.samples.trailblazer.esb.classpath.client">
+ <fileset dir="${soa.esb.lib.ext.dir}"/>
+ <fileset dir="${esb.lib.dir}/ext" includes="*.jar"/>
+ <fileset dir="${org.jboss.esb.server.home}/client" includes="jbossall-client.jar jbossws-client.jar mail.jar"/>
+ <fileset dir="${soa.esb.lib.dir}" includes="*.jar"/>
+ <fileset dir="${esb.samples.trailblazer.client.lib.dir}/ext" includes="*.jar"/>
+ <fileset dir="${esb.dest}/dist" includes="trailblazer-esb.jar"/>
+ <pathelement location="${classes.dir}"/>
+ </path>
-
-
<target name="clean">
- <delete dir="${org.jboss.esb.samples.trailblazer.esb.dest}"/>
- <delete dir="${org.jboss.esb.samples.trailblazer.client.dest}"/>
+ <delete dir="${esb.dest}"/>
+ <delete dir="${esb.samples.trailblazer.client.dest}"/>
</target>
+ <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
+ <classpath>
+ <pathelement location="client/lib/ext/jboss-jaxws.jar"/>
+ <pathelement location="client/lib/ext/jbossws-core.jar"/>
+ <pathelement location="${esb.home.dir}/lib/ext/activation.jar"/>
+ <pathelement location="${esb.home.dir}/lib/ext/jbossall-client.jar"/>
+ <pathelement location="${esb.home.dir}/lib/ext/mail.jar"/>
+ <pathelement path="${esb.samples.trailblazer.client.classes.dir}"/>
+ </classpath>
+ </taskdef>
+
+ <target name="wstools">
+ <wstools
+ dest="client/WEB-INF"
+ config="client/resources/wstools-config.xml"
+ />
+ </target>
+
+ <taskdef name="wsconsume" classname="org.jboss.ws.tools.jaxws.ant.wsconsume">
+ <classpath>
+ <pathelement location="runtime/java-getopt-1.0.13.jar"/>
+ <pathelement location="client/lib/ext/jaxb-api.jar"/>
+ <pathelement location="client/lib/ext/jaxb-impl.jar"/>
+ <pathelement location="client/lib/ext/jbossws-wsconsume-impl.jar"/>
+ <pathelement location="client/lib/ext/jaxb-xjc.jar"/>
+ <pathelement location="client/lib/ext/jbossws-client.jar"/>
+ <pathelement location="client/lib/ext/jbossws-core.jar"/>
+ </classpath>
+ </taskdef>
+
<!-- =================================================================== -->
<!-- Prepares the directory structure -->
<!-- =================================================================== -->
- <target name="org.jboss.esb.samples.trailblazer.prepare" depends="clean">
- <mkdir dir="${org.jboss.esb.samples.trailblazer.esb.dest}"/>
- <mkdir dir="${org.jboss.esb.samples.trailblazer.esb.dest}/dist"/>
- <mkdir dir="${org.jboss.esb.samples.trailblazer.esb.dest}/classes"/>
- <mkdir dir="${org.jboss.esb.samples.trailblazer.client.dest}"/>
- <mkdir dir="${org.jboss.esb.samples.trailblazer.client.dest}/dist"/>
- <mkdir dir="${org.jboss.esb.samples.trailblazer.client.dest}/classes"/>
+ <target name="trailblazer.prepare" depends="clean">
+ <mkdir dir="${esb.dest}"/>
+ <mkdir dir="${esb.dest}/dist"/>
+ <mkdir dir="${esb.dest}/classes"/>
+ <mkdir dir="${esb.samples.trailblazer.client.dest}"/>
+ <mkdir dir="${esb.samples.trailblazer.client.dest}/dist"/>
+ <mkdir dir="${esb.samples.trailblazer.client.dest}/classes"/>
</target>
<!-- Compilation targets -->
<!-- ___________________ -->
<!-- ESB COMPILATION -->
- <target name="org.jboss.esb.samples.trailblazer.esb.compile" depends="org.jboss.esb.samples.trailblazer.prepare"
+ <target name="esb.compile"
+ depends="trailblazer.prepare"
description="Compiling Trailblazer ESB classes">
<javac
- destdir="${org.jboss.esb.samples.trailblazer.esb.classes.dir}"
- classpathref="org.jboss.esb.samples.trailblazer.esb.classpath"
- debug="true"
- >
- <src path="${org.jboss.esb.samples.trailblazer.esb.src.dir}"/>
+ destdir="${classes.dir}"
+ classpathref="esb.samples.trailblazer.esb.classpath"
+ debug="true">
+ <src path="${esb.src.dir}"/>
</javac>
</target>
<!-- CLIENT(WEB) COMPILATION -->
- <target name="org.jboss.esb.samples.trailblazer.client.compile" depends="org.jboss.esb.samples.trailblazer.prepare"
+ <target name="client.compile"
+ depends="trailblazer.prepare"
description="Compiling Trailblazer client classes">
- <javac
- destdir="${org.jboss.esb.samples.trailblazer.client.classes.dir}"
- classpathref="org.jboss.esb.samples.trailblazer.esb.classpath.client" debug="true">
- <src path="${org.jboss.esb.samples.trailblazer.client.src.dir}"/>
+ <javac destdir="${esb.samples.trailblazer.client.classes.dir}"
+ classpathref="esb.samples.trailblazer.esb.classpath.client" debug="true">
+ <src path="${esb.samples.trailblazer.client.src.dir}"/>
</javac>
</target>
-
<!-- JAR/WAR targets -->
- <target name="org.jboss.esb.samples.trailblazer.esb.jar" depends="compile" >
+ <target name="esb.jar" depends="compile" >
+ <property name="esb.build.dir" value="${esb.dest}" />
- <!-- shortened variable - the long ones are a bit ridiculous :-) -->
- <property name="esb.build.dir" value="${org.jboss.esb.samples.trailblazer.esb.dest}" />
-
- <!-- ESB Client JAR -->
+ <!-- ESB Client JAR -->
<echo message="Building Trailblazer ESB archives"/>
- <jar destfile="${esb.build.dir}/dist/trailblazer-esb.jar"
- basedir="${org.jboss.esb.samples.trailblazer.esb.classes.dir}"
- includes="**/*.class" excludes="**/web/*.class">
- </jar>
- <!-- ESB Deployment (.esb) -->
- <copy todir="${esb.build.dir}/META-INF">
- <fileset dir="esb/conf" includes="jboss-esb.xml,deployment.xml" />
- </copy>
- <jar destfile="${esb.build.dir}/dist/trailblazer.esb">
- <fileset dir="${org.jboss.esb.samples.trailblazer.esb.classes.dir}" excludes="**/web/*.class" />
- <fileset dir="${esb.build.dir}" includes="META-INF/**" />
- <fileset dir="esb/conf" includes="jbm-queue-service.xml" />
- <fileset dir="${basedir}" includes="trailblazer.properties,template/**" />
- </jar>
+ <jar destfile="${esb.build.dir}/dist/trailblazer-esb.jar"
+ basedir="${classes.dir}"
+ includes="**/*.class" excludes="**/web/*.class">
+ </jar>
+ <!-- ESB Deployment (.esb) -->
+ <copy todir="${esb.build.dir}/META-INF">
+ <fileset dir="esb/conf" includes="jboss-esb.xml,deployment.xml" />
+ </copy>
+ <jar destfile="${esb.build.dir}/dist/trailblazer.esb">
+ <fileset dir="${classes.dir}" excludes="**/web/*.class" />
+ <fileset dir="${esb.build.dir}" includes="META-INF/**" />
+ <fileset dir="esb/conf" includes="jbmq-service.xml"/>
+ <fileset dir="${basedir}" includes="trailblazer.properties,template/**" />
+ </jar>
+ </target>
+ <target name="war" depends="compile">
+
<!-- Web side WAR -->
<echo message="Building Trailblazer WAR file"/>
- <delete file="${org.jboss.esb.samples.trailblazer.client.dest}/dist/trailblazer.war" />
- <war warfile="${org.jboss.esb.samples.trailblazer.client.dest}/dist/trailblazer.war"
- webxml="${basedir}/client/resources/web.xml">
- <classes dir="${org.jboss.esb.samples.trailblazer.client.classes.dir}" includes="**/web/**/*.class"/>
- <classes dir="${org.jboss.esb.samples.trailblazer.client.classes.dir}" includes="**/loanbroker/**/*.class"/>
- <classes dir="${basedir}" includes="trailblazer.properties" />
- <lib dir="${org.jboss.soa.esb.lib.dir}">
- <include name="*.jar"/>
- </lib>
-
- <lib dir="${org.jboss.esb.samples.trailblazer.esb.dest}/dist">
- <include name="trailblazer-esb.jar"/>
- </lib>
-
- <lib dir="${org.jboss.esb.samples.trailblazer.client.lib.dir}/ext">
- <include name="axis.jar"/>
- <include name="commons-discovery.jar"/>
- </lib>
- <lib dir="${org.jboss.soa.esb.lib.ext.dir}">
- <include name="xbean*.jar"/>
- <include name="xmlpublic.jar"/>
- <include name="stax-api-*.jar"/>
- <include name="commons-discovery.jar"/>
- <include name="jbossts-common.jar"/>
- <include name="jaxr-api-*.jar"/>
- <include name="scout-*.jar"/>
- <include name="juddi-*.jar"/>
- </lib>
- <fileset dir="${basedir}/client/jsp">
+ <delete file="${esb.samples.trailblazer.client.dest}/dist/trailblazer.war" />
+ <war warfile="${esb.samples.trailblazer.client.dest}/dist/trailblazer.war"
+ webxml="${basedir}/client/resources/web.xml">
+ <classes dir="${esb.samples.trailblazer.client.classes.dir}">
+ <include name="**/loanbroker/*.class"/>
+ <include name="**/trailblazer/web/*.class"/>
+ <include name="trailblazer.properties"/>
+ </classes>
+ <webinf dir="${basedir}/client/resources">
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="webservices.xml"/>
+ <include name="wsdl/*"/>
+ </webinf>
+ <lib dir="${esb.dest}/dist">
+ <include name="trailblazer-esb.jar"/>
+ </lib>
+ <fileset dir="client/jsp">
<include name="**/*.jsp"/>
</fileset>
- <webinf dir="${basedir}/client/resources">
- <include name="jboss-web.xml"/>
- </webinf>
- <classes dir="${basedir}">
- <include name="juddi.properties"/>
- </classes>
</war>
</target>
- <target name="deploy" depends="jar">
- <property name="target-server" value="${org.jboss.soa.samples.trailblazer.jboss_home}/server/${org.jboss.soa.samples.trailblazer.jboss_server}" />
+
+ <target name="deploy" depends="jar, war">
+ <property name="target-server" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}" />
- <echo message="Deploying Trailblazer EAR and WAR files to target server '${target-server}'."/>
- <copy todir="${target-server}/deploy">
- <fileset dir="${org.jboss.esb.samples.trailblazer.esb.dest}/dist/" includes="trailblazer.esb" />
- <fileset dir="${org.jboss.esb.samples.trailblazer.client.dest}/dist/" includes="trailblazer.war" />
- </copy>
-
- <!-- copy file="${basedir}/esb-trailblazer-service.xml" overwrite="true"
- todir="${org.jboss.soa.samples.trailblazer.jboss_home}/server/${org.jboss.soa.samples.trailblazer.jboss_server}/deploy"/>
- <copy file="${basedir}/jbossesb-properties.xml"
- tofile="${org.jboss.soa.samples.trailblazer.jboss_home}/server/${org.jboss.soa.samples.trailblazer.jboss_server}/deploy/jbossesb.sar/jbossesb-properties.xml" overwrite="true"/ -->
+ <echo message="Deploying Trailblazer EAR and WAR files to target server '${target-server}'."/>
+ <copy todir="${target-server}/deploy">
+ <fileset dir="${esb.dest}/dist/" includes="trailblazer.esb" />
+ <fileset dir="${esb.samples.trailblazer.client.dest}/dist/" includes="trailblazer.war" />
+ </copy>
</target>
<!-- Short target names -->
- <target name="compile" depends="org.jboss.esb.samples.trailblazer.esb.compile,org.jboss.esb.samples.trailblazer.client.compile"/>
- <target name="jar" depends="org.jboss.esb.samples.trailblazer.esb.jar"/>
+ <target name="compile" depends="esb.compile,client.compile"/>
+ <target name="jar" depends="esb.jar"/>
<!-- run the ESB listeners -->
<!-- set the first argument to 0 for an indefinite run for the listener launcher -->
@@ -238,16 +240,14 @@
<target name="runESB" depends="jar">
<echo>Running ESB Trailblazer listeners</echo>
<java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">
- <jvmarg value="-Dorg.jboss.soa.esb.propertyFile=${org.jboss.soa.samples.trailblazer.home}/esb/jbossesb-properties.xml"/>
- <arg value="${org.jboss.soa.samples.trailblazer.home}/esb/conf/jboss-esb.xml"/>
- <classpath refid="org.jboss.esb.samples.trailblazer.esb.classpath.run"/>
+ <jvmarg value="-Dorg.jboss.soa.esb.propertyFile=${trailblazer.dir}/esb/jbossesb-properties.xml"/>
+ <arg value="${trailblazer.dir}/esb/conf/jboss-esb.xml"/>
+ <classpath refid="esb.samples.trailblazer.esb.classpath.run"/>
</java>
</target>
<!-- javadocs paths -->
- <path id="org.jboss.esb.samples.trailblazer.esb.javadocs.path">
+ <path id="esb.samples.trailblazer.esb.javadocs.path">
<pathelement path="esb/classes"/>
</path>
-
-
</project>
Modified: labs/jbossesb/trunk/product/samples/trailblazer/client/jsp/index.jsp
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/jsp/index.jsp 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/jsp/index.jsp 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,3 +1,5 @@
+<%@ page import="org.jboss.soa.esb.samples.trailblazer.web.WebCustomer"%>
+<%@ page import="org.jboss.soa.esb.samples.trailblazer.loanbroker.LoanRequester"%>
<%
/*
* JBoss, Home of Professional Open Source
@@ -18,7 +20,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
String[] formHeader = {"Name", "Address", "SSN", "Email", "Salary", "Employer", "LoanAmount", "LoanDuration"};
@@ -109,22 +111,8 @@
</form>
<% } else {
-
- org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSBindingStub binding=null;
- try {
- binding = (org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSBindingStub)
- new org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSServiceLocator().getLoanBrokerWSPort();
- }
- catch (javax.xml.rpc.ServiceException jre) {
- if(jre.getLinkedCause()!=null)
- jre.getLinkedCause().printStackTrace();
-
- }
- // Time out after a minute
- binding.setTimeout(60000);
-
//Setting the values in the request
- org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer webCustomer = new org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer();
+ WebCustomer webCustomer = new WebCustomer();
webCustomer.setName(formValue[0]);
webCustomer.setAddress(formValue[1]);
webCustomer.setSsn(Integer.valueOf(formValue[2]).intValue());
@@ -132,10 +120,9 @@
webCustomer.setSalary(Double.valueOf(formValue[4]).doubleValue());
webCustomer.setEmployerName(formValue[5]);
webCustomer.setLoanAmount(Double.valueOf(formValue[6]).doubleValue());
- webCustomer.setLoanDuration(Integer.valueOf(formValue[7]).intValue());
-
- binding.requestLoan(webCustomer); %>
-
+ webCustomer.setLoanDuration(Integer.valueOf(formValue[7]).intValue());
+ LoanRequester.request(webCustomer);
+%>
<table width="100%" border="0" cellpadding="10" cellspacing="3">
<tr><td><br><br><br><br>
<tr><td><h1>Loan Broker</h1></td></tr>
@@ -143,9 +130,5 @@
<tr><td><a href="index.jsp">Fill out another request</a></td></tr>
<% } %>
-
-
-
-
</body>
-</html>
\ No newline at end of file
+</html>
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/axis.jar
===================================================================
(Binary files differ)
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/commons-discovery.jar
===================================================================
(Binary files differ)
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jaxb-api.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jaxb-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jboss-jaxws.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jboss-jaxws.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jbossws-core.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/jbossws-core.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/milyn-smooks-csv-0.1.jar
===================================================================
(Binary files differ)
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/lib/ext/opencsv-1.6.jar
===================================================================
(Binary files differ)
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS-wsdl
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS-wsdl 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS-wsdl 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-<definitions name="LoanBrokerWSService" targetNamespace="http://localhost/trailblazerWS">
-<types>
- <schema elementFormDefault="qualified" targetNamespace="http://localhost/trailblazerWS">
- <complexType name="WebCustomer">
- <sequence>
- <element name="address" nillable="true" type="string"/>
- <element name="email" nillable="true" type="string"/>
- <element name="employerName" nillable="true" type="string"/>
- <element name="loanAmount" type="double"/>
- <element name="loanDuration" type="int"/>
- <element name="name" nillable="true" type="string"/>
- <element name="salary" type="double"/>
- <element name="ssn" type="int"/>
- </sequence>
- </complexType>
- </schema>
-</types>
-
-<message name="LoanBrokerESB-WS_RequestLoanResponse"/>
- <message name="LoanBrokerESB-WS_RequestLoan">
-<part name="WebCustomer_1" type="tns:WebCustomer"/>
-</message>
-<portType name="LoanBrokerESB-WS">
- <operation name="RequestLoan" parameterOrder="WebCustomer_1">
-<input message="tns:LoanBrokerESB-WS_RequestLoan"/>
-<output message="tns:LoanBrokerESB-WS_RequestLoanResponse"/>
-</operation>
-</portType>
- <binding name="LoanBrokerESB-WSBinding" type="tns:LoanBrokerESB-WS">
-<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="RequestLoan">
-<soap:operation soapAction=""/>
- <input>
-<soap:body namespace="http://localhost/trailblazerWS" use="literal"/>
-</input>
- <output>
-<soap:body namespace="http://localhost/trailblazerWS" use="literal"/>
-</output>
-</operation>
-</binding>
- <service name="LoanBrokerWSService">
- <port binding="tns:LoanBrokerESB-WSBinding" name="LoanBrokerESB-WSPort">
-<soap:address location="http://d820:8080/trailblazer/LoanBrokerWS"/>
-</port>
-</service>
-</definitions>
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS-wsdl.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS-wsdl.xml 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS-wsdl.xml 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-<definitions name="LoanBrokerWSService" targetNamespace="http://localhost/trailblazerWS">
-<types>
- <schema elementFormDefault="qualified" targetNamespace="http://localhost/trailblazerWS">
- <complexType name="WebCustomer">
- <sequence>
- <element name="address" nillable="true" type="string"/>
- <element name="email" nillable="true" type="string"/>
- <element name="employerName" nillable="true" type="string"/>
- <element name="loanAmount" type="double"/>
- <element name="loanDuration" type="int"/>
- <element name="name" nillable="true" type="string"/>
- <element name="salary" type="double"/>
- <element name="ssn" type="int"/>
- </sequence>
- </complexType>
- </schema>
-</types>
-
-<message name="LoanBrokerESB-WS_RequestLoanResponse"/>
- <message name="LoanBrokerESB-WS_RequestLoan">
-<part name="WebCustomer_1" type="tns:WebCustomer"/>
-</message>
-<portType name="LoanBrokerESB-WS">
- <operation name="RequestLoan" parameterOrder="WebCustomer_1">
-<input message="tns:LoanBrokerESB-WS_RequestLoan"/>
-<output message="tns:LoanBrokerESB-WS_RequestLoanResponse"/>
-</operation>
-</portType>
- <binding name="LoanBrokerESB-WSBinding" type="tns:LoanBrokerESB-WS">
-<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="RequestLoan">
-<soap:operation soapAction=""/>
- <input>
-<soap:body namespace="http://localhost/trailblazerWS" use="literal"/>
-</input>
- <output>
-<soap:body namespace="http://localhost/trailblazerWS" use="literal"/>
-</output>
-</operation>
-</binding>
- <service name="LoanBrokerWSService">
- <port binding="tns:LoanBrokerESB-WSBinding" name="LoanBrokerESB-WSPort">
-<soap:address location="http://d820:8080/trailblazer/LoanBrokerWS"/>
-</port>
-</service>
-</definitions>
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS.wsdl
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS.wsdl 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/LoanBrokerWS.wsdl 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<definitions name="LoanBrokerWSService" targetNamespace="http://localhost/trailblazer">
- <types>
- <schema elementFormDefault="qualified" targetNamespace="http://localhost/trailblazer">
- <complexType name="WebCustomer">
- <sequence>
-<element name="address" nillable="true" type="string"/>
-<element name="email" nillable="true" type="string"/>
-<element name="employerName" nillable="true" type="string"/>
-<element name="loanAmount" type="double"/>
-<element name="loanDuration" type="int"/>
-<element name="name" nillable="true" type="string"/>
-<element name="salary" type="double"/>
-<element name="ssn" type="int"/>
-</sequence>
-</complexType>
-</schema>
-</types>
-<message name="LoanBrokerWS_RequestLoanResponse"/>
- <message name="LoanBrokerWS_RequestLoan">
-<part name="WebCustomer_1" type="tns:WebCustomer"/>
-</message>
- <portType name="LoanBrokerWS">
- <operation name="RequestLoan" parameterOrder="WebCustomer_1">
-<input message="tns:LoanBrokerWS_RequestLoan"/>
-<output message="tns:LoanBrokerWS_RequestLoanResponse"/>
-</operation>
-</portType>
- <binding name="LoanBrokerWSBinding" type="tns:LoanBrokerWS">
-<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="RequestLoan">
-<soap:operation soapAction=""/>
- <input>
-<soap:body namespace="http://localhost/trailblazer" use="literal"/>
-</input>
- <output>
-<soap:body namespace="http://localhost/trailblazer" use="literal"/>
-</output>
-</operation>
-</binding>
- <service name="LoanBrokerWSService">
- <port binding="tns:LoanBrokerWSBinding" name="LoanBrokerWSPort">
-<soap:address location="http://localhost:8080/trailblazer/LoanBrokerWS"/>
-</port>
-</service>
-</definitions>
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/from__loanbroker.cdrl
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/from__loanbroker.cdrl 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/from__loanbroker.cdrl 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,16 +0,0 @@
-<?xml version='1.0'?>
-<!DOCTYPE smooks-resource-list PUBLIC '-//MILYN//DTD SMOOKS 1.0//EN' 'http://milyn.org/dtd/smooksres-list-1.0.dtd'>
-
-<smooks-resource-list>
-
- <!--
- Bank Quotes from the loan broker are always in CSV format. Need to enable a CSV to SAX parser
- to enable transformation of these messages.
-
- See: http://milyn.codehaus.org/javadoc/smooks-cartridges/csv/org/milyn/csv/CSVParser.html
- -->
- <smooks-resource useragent="type:BankQuote-CSV AND from:LoanBroker" selector="org.xml.sax.driver" path="org.milyn.csv.CSVParser" >
- <param name="fields" type="string-list">ssn,creditScore,creditHistoryLen,amount,term,customerUniqueId</param>
- </smooks-resource>
-
-</smooks-resource-list>
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/jaxrpc-mapping.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/jaxrpc-mapping.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/jaxrpc-mapping.xml 2007-05-25 18:13:23 UTC (rev 12145)
@@ -0,0 +1,69 @@
+<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
+ <package-mapping>
+ <package-type>org.jboss.soa.esb.samples.trailblazer.web</package-type>
+ <namespaceURI>http://org.jboss.ws/samples/rpcstyle/types</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.soa.esb.samples.trailblazer.web.WebCustomer</java-type>
+ <root-type-qname xmlns:typeNS='http://org.jboss.ws/samples/rpcstyle/types'>typeNS:WebCustomer</root-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>address</java-variable-name>
+ <xml-element-name>address</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>email</java-variable-name>
+ <xml-element-name>email</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>employerName</java-variable-name>
+ <xml-element-name>employerName</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>loanAmount</java-variable-name>
+ <xml-element-name>loanAmount</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>loanDuration</java-variable-name>
+ <xml-element-name>loanDuration</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>name</java-variable-name>
+ <xml-element-name>name</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>salary</java-variable-name>
+ <xml-element-name>salary</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>ssn</java-variable-name>
+ <xml-element-name>ssn</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <service-interface-mapping>
+ <service-interface>org.jboss.soa.esb.samples.trailblazer.web.LoanBrokerService</service-interface>
+ <wsdl-service-name xmlns:serviceNS='http://org.jboss.ws/samples/rpcstyle'>serviceNS:LoanBrokerService</wsdl-service-name>
+ <port-mapping>
+ <port-name>LoanBrokerInterfacePort</port-name>
+ <java-port-name>LoanBrokerInterfacePort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+ <service-endpoint-interface>org.jboss.soa.esb.samples.trailblazer.web.LoanBrokerInterface</service-endpoint-interface>
+ <wsdl-port-type xmlns:portTypeNS='http://org.jboss.ws/samples/rpcstyle'>portTypeNS:LoanBrokerInterface</wsdl-port-type>
+ <wsdl-binding xmlns:bindingNS='http://org.jboss.ws/samples/rpcstyle'>bindingNS:LoanBrokerInterfaceBinding</wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>RequestLoan</java-method-name>
+ <wsdl-operation>RequestLoan</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>org.jboss.soa.esb.samples.trailblazer.web.WebCustomer</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.ws/samples/rpcstyle'>wsdlMsgNS:LoanBrokerInterface_RequestLoan</wsdl-message>
+ <wsdl-message-part-name>WebCustomer_1</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
\ No newline at end of file
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/smooks-cdr.lst
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/smooks-cdr.lst 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/smooks-cdr.lst 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,31 +0,0 @@
-#################################################################################################################################################
-#
-# OVERVIEW:
-# =========
-# This is the Smooks configuration file "list file" i.e. it lists all the Smooks resource configuration files. One should think of these
-# configuration files as being the Smooks configuration database. These configurations may/will eventually be maintained in a database
-# with a graphical UI to aid comprehension.
-#
-# THINGS TO NOTE:
-# ===============
-# 1. Don't try to apply any significance to the fact that there are multiple .cdrl files. This does not mean they are
-# separate transformations. All these files are loaded by Smooks to make up a "database" of transformation
-# resource configurations. Smooks will dynamically select the resource configurations that apply in a given situation
-# based on the profiles associated with the requested transformation "useragent" e.g. message type, message producer,
-# message consumer.
-#
-# 2. The .cdrl list entries in this file are resource references on the *classpath* i.e. they're not filesystem paths.
-# These .cdrl files should all be located in the "transform" folder.
-#
-#################################################################################################################################################
-
-################################################################################
-# Message transformation resource definitions
-################################################################################
-/from__loanbroker.cdrl
-/to____jmsbank.cdrl
-
-################################################################################
-# Common transformation support resource definitions.
-################################################################################
-/org/milyn/templating/templating-cdu-creators-0.1.cdrl
Deleted: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/to____jmsbank.cdrl
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/to____jmsbank.cdrl 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/to____jmsbank.cdrl 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,40 +0,0 @@
-<?xml version='1.0'?>
-<!DOCTYPE smooks-resource-list PUBLIC '-//MILYN//DTD SMOOKS 1.0//EN' 'http://milyn.org/dtd/smooksres-list-1.0.dtd'>
-
-<smooks-resource-list>
-
- <!--
- 1. Bank Quotes from the loan broker are always XML'ified CSV records.
- See from__loanbroker.cdrl
- 2. The JMSBank needs this data as XML, but the XML produced by CSVParser needs the following
- modifications:
- i) A general restructuring of the <csv-record> elements to fit the format requirements of the JMSBank.
- (See http://milyn.codehaus.org/javadoc/smooks-cartridges/templating/org/milyn/templating/xslt/XslContentDeliveryUnitCreator.html)
- ii) Remove the root <csv-set>. We know that there's only one CSV record in this set and the JMSBank
- expects the root to be "org.jboss.soa.esb.samples.loanbroker.banks.BankQuoteRequest".
- (See http://milyn.codehaus.org/javadoc/smooks-cartridges/misc/org/milyn/cdres/trans/RemoveElementTU.html)
- Note of course that this particular transformation could be easily avoided by simply targeting the XSLT
- transformation at the <csv-set> element. However, if multiple <csv-record> elements were present and
- supported by the JMS Bank, a configuration like this would be more appropriate - the only difference being
- that the <csv-set> would more like get renamed than removed.
- -->
- <smooks-resource useragent="type:BankQuote-CSV AND from:LoanBroker AND to:JMSBank" selector="csv-record">
- <param name="restype">xsl</param>
- <param name="resdata">
- <![CDATA[
- <org.jboss.soa.esb.samples.loanbroker.banks.BankQuoteRequest>
- <ssn><xsl:value-of select="ssn"/></ssn>
- <creditScore><xsl:value-of select="creditScore"/></creditScore>
- <historyLength><xsl:value-of select="creditHistoryLen"/></historyLength>
- <loanAmount><xsl:value-of select="amount"/></loanAmount>
- <loanTerm><xsl:value-of select="term"/></loanTerm>
- <customerUID><xsl:value-of select="customerUniqueId"/></customerUID>
- </org.jboss.soa.esb.samples.loanbroker.banks.BankQuoteRequest>
- ]]>
- </param>
- </smooks-resource>
- <smooks-resource useragent="type:BankQuote-CSV AND from:LoanBroker AND to:JMSBank" selector="csv-set" path="org.milyn.cdres.trans.RemoveElementTU">
- <param name="keepChildContent">true</param>
- </smooks-resource>
-
-</smooks-resource-list>
Modified: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/web.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/web.xml 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/web.xml 2007-05-25 18:13:23 UTC (rev 12145)
@@ -2,11 +2,20 @@
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<servlet>
- <servlet-name>LoanBrokerWS</servlet-name>
+ <servlet-name>LoanBroker</servlet-name>
<servlet-class>org.jboss.soa.esb.samples.trailblazer.web.LoanBrokerWS</servlet-class>
</servlet>
<servlet-mapping>
- <servlet-name>LoanBrokerWS</servlet-name>
- <url-pattern>/LoanBrokerWS</url-pattern>
+ <servlet-name>LoanBroker</servlet-name>
+ <url-pattern>/LoanBroker</url-pattern>
</servlet-mapping>
+ <service-ref>
+ <service-ref-name>service/LoanBrokerService</service-ref-name>
+ <service-interface>javax.xml.rpc.Service</service-interface>
+ <wsdl-file>WEB-INF/wsdl/LoanBrokerService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component-ref>
+ <service-endpoint-interface>org.jboss.soa.esb.samples.trailblazer.web.LoanBrokerWS</service-endpoint-interface>
+ </port-component-ref>
+ </service-ref>
</web-app>
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/webservices.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/webservices.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/webservices.xml 2007-05-25 18:13:23 UTC (rev 12145)
@@ -0,0 +1,15 @@
+<webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
+ <webservice-description>
+ <webservice-description-name>LoanBrokerService</webservice-description-name>
+ <wsdl-file>WEB-INF/wsdl/LoanBrokerService.wsdl</wsdl-file>
+ <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+ <port-component>
+ <port-component-name>LoanBrokerInterfacePort</port-component-name>
+ <wsdl-port xmlns:portNS='http://org.jboss.ws/samples/rpcstyle'>portNS:LoanBrokerInterfacePort</wsdl-port>
+ <service-endpoint-interface>org.jboss.soa.esb.samples.trailblazer.web.LoanBrokerInterface</service-endpoint-interface>
+ <service-impl-bean>
+ <servlet-link>LoanBroker</servlet-link>
+ </service-impl-bean>
+ </port-component>
+ </webservice-description>
+</webservices>
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wsdl/LoanBrokerService.wsdl
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wsdl/LoanBrokerService.wsdl (rev 0)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wsdl/LoanBrokerService.wsdl 2007-05-25 18:13:23 UTC (rev 12145)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='LoanBrokerService' targetNamespace='http://org.jboss.ws/samples/rpcstyle' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://org.jboss.ws/samples/rpcstyle/types' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://org.jboss.ws/samples/rpcstyle' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types>
+ <schema targetNamespace='http://org.jboss.ws/samples/rpcstyle/types' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://org.jboss.ws/samples/rpcstyle/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+ <complexType name='WebCustomer'>
+ <sequence>
+ <element name='address' nillable='true' type='string'/>
+ <element name='email' nillable='true' type='string'/>
+ <element name='employerName' nillable='true' type='string'/>
+ <element name='loanAmount' type='double'/>
+ <element name='loanDuration' type='int'/>
+ <element name='name' nillable='true' type='string'/>
+ <element name='salary' type='double'/>
+ <element name='ssn' type='int'/>
+ </sequence>
+ </complexType>
+ </schema>
+ </types>
+ <message name='LoanBrokerInterface_RequestLoan' xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <part name='WebCustomer_1' type='ns1:WebCustomer'/>
+ </message>
+ <message name='LoanBrokerInterface_RequestLoanResponse'/>
+ <portType name='LoanBrokerInterface'>
+ <operation name='RequestLoan' parameterOrder='WebCustomer_1'>
+ <input message='tns:LoanBrokerInterface_RequestLoan'/>
+ <output message='tns:LoanBrokerInterface_RequestLoanResponse'/>
+ </operation>
+ </portType>
+ <binding name='LoanBrokerInterfaceBinding' type='tns:LoanBrokerInterface'>
+ <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='RequestLoan'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body namespace='http://org.jboss.ws/samples/rpcstyle' use='literal'/>
+ </input>
+ <output>
+ <soap:body namespace='http://org.jboss.ws/samples/rpcstyle' use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='LoanBrokerService'>
+ <port binding='tns:LoanBrokerInterfaceBinding' name='LoanBrokerInterfacePort'>
+ <soap:address location='http://localhost:8080/trailblazer/LoanBroker'/>
+ </port>
+ </service>
+</definitions>
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wstools-config.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wstools-config.xml (rev 0)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/resources/wstools-config.xml 2007-05-25 18:13:23 UTC (rev 12145)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ wstools -cp ../../../output/classes -config wstools-config.xml
+-->
+
+<configuration xmlns="http://www.jboss.org/jbossws-tools"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
+
+ <java-wsdl>
+ <service name="LoanBrokerService" style="rpc" endpoint="org.jboss.soa.esb.samples.trailblazer.web.LoanBrokerInterface"/>
+ <namespaces target-namespace="http://org.jboss.ws/samples/rpcstyle" type-namespace="http://org.jboss.ws/samples/rpcstyle/types"/>
+ <mapping file="jaxrpc-mapping.xml"/>
+ <webservices servlet-link="LoanBrokerEndpoint"/>
+ </java-wsdl>
+
+</configuration>
Modified: labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanBroker.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanBroker.java 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanBroker.java 2007-05-25 18:13:23 UTC (rev 12145)
@@ -90,13 +90,13 @@
private Customer getCustomer(WebCustomer wCustomer) {
Customer customer = new Customer();
- customer.ssn = wCustomer.ssn;
- customer.name = wCustomer.name;
- customer.address = wCustomer.address;
- customer.email = wCustomer.email;
- customer.salary = wCustomer.salary;
- customer.loanAmount = wCustomer.loanAmount;
- customer.loanDuration = wCustomer.loanDuration;
+ customer.ssn = wCustomer.getSsn();
+ customer.name = wCustomer.getName();
+ customer.address = wCustomer.getAddress();
+ customer.email = wCustomer.getEmail();
+ customer.salary = wCustomer.getSalary();
+ customer.loanAmount = wCustomer.getLoanAmount();
+ customer.loanDuration = wCustomer.getLoanDuration();
customer.creditScore = 0;
return customer;
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanRequester.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanRequester.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanRequester.java 2007-05-25 18:13:23 UTC (rev 12145)
@@ -0,0 +1,29 @@
+package org.jboss.soa.esb.samples.trailblazer.loanbroker;
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+
+import org.jboss.soa.esb.samples.trailblazer.web.*;
+
+/**
+ * LoanRequester is a small class that serves as a web service client.
+ */
+public class LoanRequester {
+ public LoanRequester() {
+ }
+
+ /**
+ * Grab the port and call request loan.
+ * @return customer customer bean
+ */
+ public static void request(WebCustomer customer) {
+ try {
+ InitialContext iniCtx = new InitialContext();
+ Service service = (Service)iniCtx.lookup("java:comp/env/service/LoanBrokerService");
+ LoanBrokerInterface port = (LoanBrokerInterface)service.getPort(LoanBrokerInterface.class);
+ port.RequestLoan(customer);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+}
\ No newline at end of file
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerInterface.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerInterface.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerInterface.java 2007-05-25 18:13:23 UTC (rev 12145)
@@ -0,0 +1,10 @@
+package org.jboss.soa.esb.samples.trailblazer.web;
+
+import java.rmi.Remote;
+
+/**
+ * The Loan broker web interface, which will handle a loan request.
+ */
+public interface LoanBrokerInterface extends Remote {
+ public void RequestLoan(WebCustomer webCustomer_1) throws java.rmi.RemoteException;
+}
Modified: labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java 2007-05-25 18:13:23 UTC (rev 12145)
@@ -22,7 +22,6 @@
*/
package org.jboss.soa.esb.samples.trailblazer.web;
-
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
@@ -33,19 +32,18 @@
/**
* The Loan broker web service, which will handle a loan request.
*/
- at WebService(name = "LoanBrokerWS", targetNamespace = "http://localhost/trailblazer")
+ at WebService(name = "LoanBrokerWS",
+ targetNamespace = "http://localhost/trailblazer")
@SOAPBinding(style = SOAPBinding.Style.RPC)
-public class LoanBrokerWS
-{
+public class LoanBrokerWS implements LoanBrokerInterface {
+ private static final long serialVersionUID = 1L;
private static Logger logger = Logger.getLogger(LoanBrokerWS.class);
@WebMethod
- // method name is .NET friendly
public void RequestLoan(WebCustomer customer) {
+ logger.info("WebCustomer received: \n" + customer);
- logger.info("WebCustomer received: \n" + customer);
-
- LoanBroker broker = new LoanBroker();
- broker.processLoanRequest(customer);
+ LoanBroker broker = new LoanBroker();
+ broker.processLoanRequest(customer);
}
}
Added: labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWSService.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWSService.java (rev 0)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWSService.java 2007-05-25 18:13:23 UTC (rev 12145)
@@ -0,0 +1,59 @@
+
+package org.jboss.soa.esb.samples.trailblazer.web;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * JBossWS Generated Source
+ *
+ * Generation Date: Thu May 24 11:21:38 EDT 2007
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ *
+ * JAX-WS Version: 2.0
+ *
+ */
+ at WebServiceClient(name = "LoanBrokerWSService", targetNamespace = "http://localhost/trailblazer", wsdlLocation = "http://localhost:8080/trailblazer/LoanBroker?wsdl")
+public class LoanBrokerWSService
+ extends Service
+{
+
+ private final static URL LOANBROKERWSSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("http://localhost:8080/trailblazer/LoanBroker?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ LOANBROKERWSSERVICE_WSDL_LOCATION = url;
+ }
+
+ public LoanBrokerWSService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public LoanBrokerWSService() {
+ super(LOANBROKERWSSERVICE_WSDL_LOCATION, new QName("http://localhost/trailblazer", "LoanBrokerWSService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns LoanBrokerWS
+ */
+ @WebEndpoint(name = "LoanBrokerWSPort")
+ public LoanBrokerWS getLoanBrokerWSPort() {
+ return (LoanBrokerWS)super.getPort(new QName("http://localhost/trailblazer", "LoanBrokerWSPort"), LoanBrokerWS.class);
+ }
+
+}
Modified: labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/WebCustomer.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/WebCustomer.java 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/web/WebCustomer.java 2007-05-25 18:13:23 UTC (rev 12145)
@@ -35,27 +35,43 @@
@SuppressWarnings("serial")
public class WebCustomer implements Serializable
{
- public String name ,address ,employerName;
- public double salary ,loanAmount;
- public int loanDuration;
- public int ssn;
- public String email;
-
-
- public WebCustomer(){}
-
- public WebCustomer(String name, String address, String employerName, double salary, int loanDuration, double loanAmount, int ssn,String email)
- {
- this.name = name;
- this.address = address;
- this.employerName = employerName;
- this.salary = salary;
- this.loanAmount = loanAmount;
- this.loanDuration = loanDuration;
- this.ssn = ssn;
- this.email = email;
- }//_________________________________________
-
+ private java.lang.String address;
+
+ private java.lang.String email;
+
+ private java.lang.String employerName;
+
+ private double loanAmount;
+
+ private int loanDuration;
+
+ private java.lang.String name;
+
+ private double salary;
+
+ private int ssn;
+
+ public WebCustomer() {
+ }
+
+ public WebCustomer(
+ java.lang.String address,
+ java.lang.String email,
+ java.lang.String employerName,
+ double loanAmount,
+ int loanDuration,
+ java.lang.String name,
+ double salary,
+ int ssn) {
+ this.address = address;
+ this.email = email;
+ this.employerName = employerName;
+ this.loanAmount = loanAmount;
+ this.loanDuration = loanDuration;
+ this.name = name;
+ this.salary = salary;
+ this.ssn = ssn;
+ }
public String toString() {
String ret = "-- WebCustomer details -- \n";
ret += "name: " + name + "\n";
@@ -71,4 +87,163 @@
return ret;
}
+ /**
+ * Gets the address value for this WebCustomer.
+ *
+ * @return address
+ */
+ public java.lang.String getAddress() {
+ return address;
+ }
+
+
+ /**
+ * Sets the address value for this WebCustomer.
+ *
+ * @param address
+ */
+ public void setAddress(java.lang.String address) {
+ this.address = address;
+ }
+
+
+ /**
+ * Gets the email value for this WebCustomer.
+ *
+ * @return email
+ */
+ public java.lang.String getEmail() {
+ return email;
+ }
+
+
+ /**
+ * Sets the email value for this WebCustomer.
+ *
+ * @param email
+ */
+ public void setEmail(java.lang.String email) {
+ this.email = email;
+ }
+
+
+ /**
+ * Gets the employerName value for this WebCustomer.
+ *
+ * @return employerName
+ */
+ public java.lang.String getEmployerName() {
+ return employerName;
+ }
+
+
+ /**
+ * Sets the employerName value for this WebCustomer.
+ *
+ * @param employerName
+ */
+ public void setEmployerName(java.lang.String employerName) {
+ this.employerName = employerName;
+ }
+
+
+ /**
+ * Gets the loanAmount value for this WebCustomer.
+ *
+ * @return loanAmount
+ */
+ public double getLoanAmount() {
+ return loanAmount;
+ }
+
+
+ /**
+ * Sets the loanAmount value for this WebCustomer.
+ *
+ * @param loanAmount
+ */
+ public void setLoanAmount(double loanAmount) {
+ this.loanAmount = loanAmount;
+ }
+
+
+ /**
+ * Gets the loanDuration value for this WebCustomer.
+ *
+ * @return loanDuration
+ */
+ public int getLoanDuration() {
+ return loanDuration;
+ }
+
+
+ /**
+ * Sets the loanDuration value for this WebCustomer.
+ *
+ * @param loanDuration
+ */
+ public void setLoanDuration(int loanDuration) {
+ this.loanDuration = loanDuration;
+ }
+
+
+ /**
+ * Gets the name value for this WebCustomer.
+ *
+ * @return name
+ */
+ public java.lang.String getName() {
+ return name;
+ }
+
+
+ /**
+ * Sets the name value for this WebCustomer.
+ *
+ * @param name
+ */
+ public void setName(java.lang.String name) {
+ this.name = name;
+ }
+
+
+ /**
+ * Gets the salary value for this WebCustomer.
+ *
+ * @return salary
+ */
+ public double getSalary() {
+ return salary;
+ }
+
+
+ /**
+ * Sets the salary value for this WebCustomer.
+ *
+ * @param salary
+ */
+ public void setSalary(double salary) {
+ this.salary = salary;
+ }
+
+
+ /**
+ * Gets the ssn value for this WebCustomer.
+ *
+ * @return ssn
+ */
+ public int getSsn() {
+ return ssn;
+ }
+
+
+ /**
+ * Sets the ssn value for this WebCustomer.
+ *
+ * @param ssn
+ */
+ public void setSsn(int ssn) {
+ this.ssn = ssn;
+ }
+
}
Modified: labs/jbossesb/trunk/product/samples/trailblazer/esb/conf/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer/esb/conf/deployment.xml 2007-05-25 17:52:28 UTC (rev 12144)
+++ labs/jbossesb/trunk/product/samples/trailblazer/esb/conf/deployment.xml 2007-05-25 18:13:23 UTC (rev 12145)
@@ -1,7 +1,7 @@
<jbossesb-deployment>
- <depends>jboss.messaging.destination:service=Queue,name=esb-tb-creditAgencyQueue</depends>
- <depends>jboss.messaging.destination:service=Queue,name=esb-tb-creditAgencyQueue_reply</depends>
- <depends>jboss.messaging.destination:service=Queue,name=esb-tb-bankRequestQueue</depends>
- <depends>jboss.messaging.destination:service=Queue,name=esb-tb-bankResponseQueue</depends>
- <depends>jboss.messaging.destination:service=Queue,name=esb-tb-bankGatewayResponseQueue</depends>
+ <depends>jboss.mq.destination:service=Queue,name=esb-tb-creditAgencyQueue</depends>
+ <depends>jboss.mq.destination:service=Queue,name=esb-tb-creditAgencyQueue_reply</depends>
+ <depends>jboss.mq.destination:service=Queue,name=esb-tb-bankRequestQueue</depends>
+ <depends>jboss.mq.destination:service=Queue,name=esb-tb-bankResponseQueue</depends>
+ <depends>jboss.mq.destination:service=Queue,name=esb-tb-bankGatewayResponseQueue</depends>
</jbossesb-deployment>
More information about the jboss-svn-commits
mailing list