[jboss-svn-commits] JBL Code SVN: r13468 - in labs/jbossesb/workspace/jwilliams/product/samples/quickstarts: webservice_consumer1 and 23 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jul 13 18:33:42 EDT 2007
Author: james.williams at jboss.com
Date: 2007-07-13 18:33:41 -0400 (Fri, 13 Jul 2007)
New Revision: 13468
Added:
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/build.xml
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/deployment.xml
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbm-queue-service.xml
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbmq-queue-service.xml
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jboss-esb.xml
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbossesb-properties.xml
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jndi.properties
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/juddi.properties
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/lib/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/listener.log
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/log4j.xml
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/readme.txt
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/MyAction.java
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/test/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/test/SendJMSMessage.java
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/lib/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/lib/ext/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/lib/ext/jbossws-client.jar
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/resources/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/resources/WEB-INF/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/resources/WEB-INF/classes/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/resources/WEB-INF/lib/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/resources/WEB-INF/web.xml
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/HelloWorldWS.java
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/webservice/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/view/
labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/view/index.jsp
Log:
adding webservice_consumer1 to workspace for testing.
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/build.xml
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/build.xml (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/build.xml 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,59 @@
+<project name="Quickstart_webservice_consumption" default="deploy" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <!-- Import the base Ant build script... -->
+ <import file="../conf/base-build.xml"/>
+
+ <property name="war.build.dir" location="${build.dir}/war/classes"/>
+
+ <target name="quickstart-specific-assemblies" depends="assert-ws-available, makewar"/>
+
+ <target name="makewar" description="make war">
+ <!-- Compile... -->
+ <mkdir dir="${war.build.dir}" />
+ <javac srcdir="war/src" destdir="${war.build.dir}" debug="true">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="war/lib/ext" includes="*.jar" />
+ </classpath>
+ </javac>
+
+ <!-- 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.build.dir}" includes="**/*.class"/>
+ <fileset dir="${basedir}/war/view">
+ <include name="**/*"/>
+ </fileset>
+ <classes dir="${basedir}">
+ <include name="juddi.properties"/>
+ </classes>
+ </war>
+ </target>
+
+ <target name="deploy-war" depends="prepare-deployment">
+ <copy todir="${org.jboss.esb.server.deploy.dir}"
+ file="${build.dir}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="undeploy-war" depends="dependencies">
+ <delete verbose="true" quiet="true"
+ file="${org.jboss.esb.server.deploy.dir}/${ant.project.name}.war"/>
+ </target>
+
+ <target name="runtest" depends="compile">
+ <echo>Runs Test JMS Sender</echo>
+ <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.webservicewar1.test.SendJMSMessage" failonerror="true">
+ <arg value="Hello World"/>
+ <classpath refid="exec-classpath"/>
+ </java>
+ </target>
+
+</project>
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/deployment.xml
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/deployment.xml (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/deployment.xml 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,5 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
+ <depends>jboss.esb:service=SoapUIClientService</depends>
+ <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumption_esb</depends>
+</jbossesb-deployment>
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbm-queue-service.xml 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_war1_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_war1_esb_reply"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ </mbean>
+</server>
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbmq-queue-service.xml 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumption_esb">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_consumption_esb_reply">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+</server>
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jboss-esb.xml (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jboss-esb.xml 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,43 @@
+<?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_consumption_esb" />
+ </jms-bus>
+
+ </jms-provider>
+ </providers>
+
+ <services>
+ <service category="MyServiceCategory" name="MyService"
+ description="Helloworld Webservice Consumer">
+ <listeners>
+ <jms-listener name="JMS-ESBListener"
+ busidref="quickstartEsbChannel" maxThreads="1" />
+ </listeners>
+ <actions>
+ <action name="message-mapper"
+ class="org.jboss.soa.esb.samples.quickstart.webservice_consumption.MyAction">
+ </action>
+ <action name="soapui-client-action"
+ class="org.jboss.soa.esb.actions.soap.SOAPClient">
+ <property name="wsdl"
+ value="http://127.0.0.1:8080/Quickstart_webservice_consumption/HelloWorldWS?wsdl" />
+ <property name="operation" value="sayHello" />
+ </action>
+ <action name="print-webservice-response" class="org.jboss.soa.esb.actions.SystemPrintln">
+ <property name="message" value="Hello World Webservice Response" />
+ </action>
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbossesb-properties.xml
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbossesb-properties.xml (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jbossesb-properties.xml 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ 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 JBoss Inc.
+-->
+<!-- $Id: jbossesb-unittest-properties.xml $ -->
+<!--
+ These options are described in the JBossESB manual.
+ Defaults are provided here for convenience only.
+
+ Please read through this file prior to using the system, and consider
+ updating the specified entries.
+-->
+<esb
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="jbossesb-1_0.xsd">
+ <properties name="core">
+ <property name="org.jboss.soa.esb.jndi.server.type" value="jboss"/>
+ <property name="org.jboss.soa.esb.jndi.server.url" value="localhost"/>
+ <property name="org.jboss.soa.esb.persistence.connection.factory" value="org.jboss.internal.soa.esb.persistence.format.MessageStoreFactoryImpl"/>
+ </properties>
+ <properties name="registry">
+ <property name="org.jboss.soa.esb.registry.queryManagerURI"
+ value="jnp://localhost:1099/InquiryService?org.apache.juddi.registry.rmi.Inquiry#inquire"/>
+ <property name="org.jboss.soa.esb.registry.lifeCycleManagerURI"
+ value="jnp://localhost:1099/PublishService?org.apache.juddi.registry.rmi.Publish#publish" />
+ <property name="org.jboss.soa.esb.registry.implementationClass"
+ value="org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl"/>
+ <property name="org.jboss.soa.esb.registry.factoryClass"
+ value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
+ <property name="org.jboss.soa.esb.registry.user"
+ value="jbossesb"/>
+ <property name="org.jboss.soa.esb.registry.password"
+ value="password"/>
+ <!-- the following parameter is scout specific to set the type of communication between scout and the UDDI (embedded, rmi, soap) -->
+ <property name="org.jboss.soa.esb.scout.proxy.transportClass"
+ value="org.apache.ws.scout.transport.RMITransport"/>
+ </properties>
+ <properties name="transports" depends="core">
+ <property name="org.jboss.soa.esb.mail.smtp.host" value="localhost"/>
+ <property name="org.jboss.soa.esb.mail.smtp.user" value="jbossesb"/>
+ <property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
+ <property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
+ </properties>
+ <properties name="connection">
+ <property name="min-pool-size" value="5"/>
+ <property name="max-pool=size" value="10"/>
+ <property name="blocking-timeout-millis" value="5000"/>
+ <property name="abandoned-connection-timeout" value="10000"/>
+ <property name="abandoned-connection-time-interval" value="30000"/>
+ </properties>
+ <properties name="dbstore">
+ <property name="org.jboss.soa.esb.persistence.db.connection.url" value="jdbc:hsqldb:hsql://localhost:9001/jbossesb"/>
+ <property name="org.jboss.soa.esb.persistence.db.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
+ <property name="org.jboss.soa.esb.persistence.db.user" value="sa"/>
+ <property name="org.jboss.soa.esb.persistence.db.pwd" value=""/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.initial.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.min.size" value="2"/>
+ <property name="org.jboss.soa.esb.persistence.db.pool.max.size" value="5"/>
+ <!--table managed by pool to test for valid connections - created by pool automatically -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.test.table" value="pooltest"/>
+ <!-- # of milliseconds to timeout waiting for a connection from pool -->
+ <property name="org.jboss.soa.esb.persistence.db.pool.timeout.millis" value="5000"/>
+ </properties>
+ <properties name="messagerouting">
+ <property name="org.jboss.soa.esb.routing.cbrClass" value="org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter"/>
+ </properties>
+</esb>
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jndi.properties
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jndi.properties (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/jndi.properties 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+java.naming.factory.url.pkgs=org.jnp.interfaces
+
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/juddi.properties
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/juddi.properties (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/juddi.properties 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,69 @@
+# jUDDI Registry Properties (used by RegistryServer)
+# see http://www.juddi.org for more information
+
+# The UDDI Operator Name
+juddi.operatorName = jUDDI.org
+
+# The i18n locale default codes
+juddi.i18n.languageCode = en
+juddi.i18n.countryCode = US
+
+# The UDDI DiscoveryURL Prefix
+juddi.discoveryURL = http://localhost:8080/juddi/uddiget.jsp?
+
+# The UDDI Operator Contact Email Address
+juddi.operatorEmailAddress = admin at juddi.org
+
+# The maximum name size and maximum number
+# of name elements allows in several of the
+# FindXxxx and SaveXxxx UDDI functions.
+juddi.maxNameLength=255
+juddi.maxNameElementsAllowed=5
+
+# The maximum number of UDDI artifacts allowed
+# per publisher. A value of '-1' indicates any
+# number of artifacts is valid (These values can be
+# overridden at the individual publisher level).
+juddi.maxBusinessesPerPublisher=25
+juddi.maxServicesPerBusiness=20
+juddi.maxBindingsPerService=10
+juddi.maxTModelsPerPublisher=100
+
+# jUDDI Authentication module to use
+juddi.auth = org.apache.juddi.auth.DefaultAuthenticator
+
+# jUDDI DataStore module currently to use
+juddi.dataStore = org.apache.juddi.datastore.jdbc.JDBCDataStore
+
+# use a dataSource (if set to false a direct
+# jdbc connection will be used.
+juddi.isUseDataSource=false
+juddi.jdbcDriver=com.mysql.jdbc.Driver
+juddi.jdbcUrl=jdbc:mysql://localhost:3306/juddi
+juddi.jdbcUsername=root
+juddi.jdbcPassword=admin
+# jUDDI DataSource to use
+# juddi.dataSource=java:comp/env/jdbc/MySqlDS
+
+# jUDDI UUIDGen implementation to use
+juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
+
+# jUDDI Cryptor implementation to use
+juddi.cryptor = org.apache.juddi.cryptor.DefaultCryptor
+
+# jUDDI Validator to use
+juddi.validator=org.apache.juddi.validator.DefaultValidator
+
+# jUDDI Proxy Properties (used by RegistryProxy)
+juddi.proxy.adminURL = http://localhost:8080/juddi/admin
+juddi.proxy.inquiryURL = http://localhost:8080/juddi/inquiry
+juddi.proxy.publishURL = http://localhost:8080/juddi/publish
+juddi.proxy.transportClass = org.apache.juddi.proxy.AxisTransport
+juddi.proxy.securityProvider = com.sun.net.ssl.internal.ssl.Provider
+juddi.proxy.protocolHandler = com.sun.net.ssl.internal.www.protocol
+
+# JNDI settings (used by RMITransport)
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/listener.log
===================================================================
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/log4j.xml
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/log4j.xml (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/log4j.xml 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.26.2.5 2005/09/15 09:31:02 dimitris Exp $ -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A size based file rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File" value="./listener.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%t][%c] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.jboss">
+ <priority value="WARN"/>
+ </category>
+ <category name="org.jboss.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.jboss.internal.soa.esb">
+ <priority value="ERROR"/>
+ </category>
+ <category name="org.apache">
+ <priority value="ERROR"/>
+ </category>
+ <category name="quickstart">
+ <priority value="INFO"/>
+ </category>
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/readme.txt
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/readme.txt (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/readme.txt 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,46 @@
+Overview:
+=========
+ This example demonstrates how to develop and host a 181 Web Service on
+ the JBoss Application Server. This Web Service is then used to make a
+ synchronous call into the ESB.
+
+
+Before Running:
+===============
+1. Update the "org.jboss.esb.server.home" property in the quickstarts.properties
+ file in "../".
+2. Make sure the jbossesb.sar is deployed on your JBoss Application Server.
+ In the ESB "install" folder update deployment.properties and then run "ant".
+ This example does require you to use a version for 4.0.4+ with the EJB3 profile.
+3. Make sure the JBoss Application server is running.
+
+
+
+To Run:
+=======
+TODO
+
+1. In the first command window, execute "ant". This will compile the project, build
+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. Run "ant runtest". This will drop a message directly to the bus via a Java client.
+
+3. Watch the ESB console output. you should see:
+
+TODO
+
+4. Use for favorite Web Service testing tool to invoke the Web Service. A great one
+is called SoapUI at www.soapui.org.
+
+The ESB console should produce the following messages:
+
+ TODO
+
+The AS console should produce the following message:
+ 22:47:30,531 INFO [STDOUT] I'm Hit! Your Name
+
+This assumes you put in "Your Name" as the parameter in your WS client testing tool.
+
+
+
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/MyAction.java
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/MyAction.java (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/MyAction.java 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,71 @@
+/*
+ * 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 JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumption;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+import java.util.HashMap;
+
+public class MyAction extends AbstractActionLifecycle {
+
+ protected ConfigTree _config;
+
+ public MyAction(ConfigTree config) {
+ _config = config;
+ }
+
+ public Message noOperation(Message message) {
+ return message;
+ }
+
+ public Message process(Message message) throws Exception {
+ logHeader();
+ String msgBody = new String(message.getBody().getByteArray());
+ System.out.println("Body: " + msgBody);
+ HashMap myMap = new HashMap();
+ myMap.put("paramsLocation", msgBody);
+ message.getBody().add(myMap);
+ logFooter();
+ return message;
+ }
+
+ public void exceptionHandler(Message message, Throwable exception) {
+ logHeader();
+ System.out.println("!ERROR!");
+ System.out.println(exception.getMessage());
+ System.out.println("For Message: ");
+ System.out.println(message.getBody().getByteArray());
+ logFooter();
+ }
+
+ // This makes it easier to read on the console
+ private void logHeader() {
+ System.out.println("\n&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
+ }
+
+ private void logFooter() {
+ System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+ }
+
+
+}
\ No newline at end of file
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/test/SendJMSMessage.java
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/test/SendJMSMessage.java (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/test/SendJMSMessage.java 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,69 @@
+ /*
+ * 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 JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumption.test;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+import org.jboss.soa.esb.message.format.MessageType;
+
+public class SendJMSMessage
+{
+
+ private void sendMessage(String message) throws Exception
+ {
+ try
+ {
+ System.setProperty("javax.xml.registry.ConnectionFactoryClass",
+ "org.apache.ws.scout.registry.ConnectionFactoryImpl");
+
+ // Create the delivery adapter for the target service (cache it)
+ MessageDeliveryAdapter deliveryAdapter = new MessageDeliveryAdapter(
+ "MyServiceCategory", "MyService");
+
+ // Create and populate the request message...
+ Message requestMessage = MessageFactory.getInstance().getMessage(
+ MessageType.JBOSS_XML);
+
+ requestMessage.getBody().add(message);
+
+ // Deliver the request message synchronously - timeout after 20
+ // seconds...
+ Message replyMessage = deliveryAdapter.deliverSync(requestMessage,
+ 20000);
+ } catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+ public static void main(String args[]) throws Exception
+ {
+ SendJMSMessage sm = new SendJMSMessage();
+
+ sm.sendMessage(args[0]);
+
+ }
+
+}
\ No newline at end of file
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/lib/ext/jbossws-client.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/lib/ext/jbossws-client.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/resources/WEB-INF/web.xml
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/resources/WEB-INF/web.xml (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/resources/WEB-INF/web.xml 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<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>HelloWorldWS</servlet-name>
+ <servlet-class>org.jboss.soa.esb.samples.quickstart.webservice_consumption.HelloWorldWS</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>HelloWorldWS</servlet-name>
+ <url-pattern>/HelloWorldWS</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/HelloWorldWS.java
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/HelloWorldWS.java (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/src/org/jboss/soa/esb/samples/quickstart/webservice_consumption/HelloWorldWS.java 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,55 @@
+/*
+ * 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 JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservice_consumption;
+
+// For setting up the basic WS
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+// For ESB Interaction
+import org.jboss.soa.esb.services.registry.Registry; // jbossesb-services.jar
+import org.jboss.soa.esb.services.registry.RegistryFactory; // jbossesb-services.jar
+import org.jboss.soa.esb.message.Message; // jbossesb-rosetta.jar
+import org.jboss.soa.esb.message.format.MessageFactory; // jbossesb-rosetta.jar
+import org.jboss.soa.esb.message.format.MessageType; // jbossesb-rosetta.jar
+import org.jboss.soa.esb.addressing.EPR; // jbossesb-rosetta.jar
+import org.jboss.soa.esb.couriers.TwoWayCourier; // jbossesb-rosetta.jar
+import org.jboss.soa.esb.couriers.CourierFactory; // jbossesb-rosetta.jar
+import org.jboss.soa.esb.couriers.CourierUtil; // jbossesb-rosetta.jar
+import org.jboss.soa.esb.addressing.Call;
+import org.jboss.soa.esb.listeners.message.MessageDeliveryAdapter; // jbossesb-rosetta.jar
+
+ at WebService(name = "HelloWorld", targetNamespace = "http://webservice_consumption/helloworld")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public class HelloWorldWS {
+ @WebMethod
+ public String sayHello(String toWhom) {
+
+ System.out.println("HelloWorld Webservice Hit! ");
+
+ return "Hello World Webservice Response: " + toWhom + " on " + new java.util.Date();
+
+ }
+}
+
+
Added: labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/view/index.jsp
===================================================================
--- labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/view/index.jsp (rev 0)
+++ labs/jbossesb/workspace/jwilliams/product/samples/quickstarts/webservice_consumer1/war/view/index.jsp 2007-07-13 22:33:41 UTC (rev 13468)
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ This is just a place holder.<br>
+ Verify the that the WS has been deployed by hitting
+ <a href="http://localhost:8080/jbossws">
+ http://localhost:8080/jbossws
+ </a>
+ </body>
+</html>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list