[jboss-cvs] JBoss Messaging SVN: r2699 - in trunk/docs/examples: web-services and 17 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu May 17 01:59:03 EDT 2007


Author: clebert.suconic at jboss.com
Date: 2007-05-17 01:59:03 -0400 (Thu, 17 May 2007)
New Revision: 2699

Added:
   trunk/docs/examples/web-services/
   trunk/docs/examples/web-services/README.html
   trunk/docs/examples/web-services/build.xml
   trunk/docs/examples/web-services/etc/
   trunk/docs/examples/web-services/etc/WEB-INF/
   trunk/docs/examples/web-services/etc/WEB-INF/web.xml
   trunk/docs/examples/web-services/etc/client-config/
   trunk/docs/examples/web-services/etc/client-config/client-config.xml
   trunk/docs/examples/web-services/etc/jndi.properties
   trunk/docs/examples/web-services/src-client/
   trunk/docs/examples/web-services/src-client/org/
   trunk/docs/examples/web-services/src-client/org/jboss/
   trunk/docs/examples/web-services/src-client/org/jboss/example/
   trunk/docs/examples/web-services/src-client/org/jboss/example/jms/
   trunk/docs/examples/web-services/src-client/org/jboss/example/jms/webservices/
   trunk/docs/examples/web-services/src-client/org/jboss/example/jms/webservices/client/
   trunk/docs/examples/web-services/src-client/org/jboss/example/jms/webservices/client/Client.java
   trunk/docs/examples/web-services/src/
   trunk/docs/examples/web-services/src/org/
   trunk/docs/examples/web-services/src/org/jboss/
   trunk/docs/examples/web-services/src/org/jboss/example/
   trunk/docs/examples/web-services/src/org/jboss/example/jms/
   trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/
   trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/
   trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExample.java
   trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExampleImpl.java
Log:
http://jira.jboss.org/jira/browse/JBMESSAGING-961

Added: trunk/docs/examples/web-services/README.html
===================================================================
--- trunk/docs/examples/web-services/README.html	                        (rev 0)
+++ trunk/docs/examples/web-services/README.html	2007-05-17 05:59:03 UTC (rev 2699)
@@ -0,0 +1 @@
+TODO!
\ No newline at end of file

Added: trunk/docs/examples/web-services/build.xml
===================================================================
--- trunk/docs/examples/web-services/build.xml	                        (rev 0)
+++ trunk/docs/examples/web-services/build.xml	2007-05-17 05:59:03 UTC (rev 2699)
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+   To run the example, set JBOSS_HOME and run ant (with no parameters)
+
+   $Id$
+
+ -->
+
+<project name="WebServicesExample" default="run">
+
+   <property environment="ENV"/>
+
+   <!-- These properties may be overriden by calling ants when this example is used in a smoke test -->
+   <property name="messaging.client.jar.path" value="../../"/>
+   <property name="messaging.client.jar.name" value="jboss-messaging-client.jar"/>
+   <property name="jboss.home" value="${ENV.JBOSS_HOME}"/>
+   <property name="jboss.configuration" value="messaging"/>
+   <property name="example.queue.name" value="testQueue"/>
+
+   <path id="common.compilation.classpath">
+      <fileset file="${jboss.home}/client/jboss-j2ee.jar"/>
+      <fileset file="${messaging.client.jar.path}/${messaging.client.jar.name}"/>
+   </path>
+
+   <property name="jboss.client" value="${jboss.home}/client"/>
+
+   <path id="runtime.classpath">
+      <path refid="common.compilation.classpath"/>
+      <pathelement path="./etc"/>
+      <pathelement path="../common/output/classes"/>
+      <pathelement path="./output/classes"/>
+      <pathelement location="${messaging.client.jar.path}/${messaging.client.jar.name}"/>
+      <pathelement location="${jboss.client}/activation.jar"/>
+      <pathelement location="${jboss.client}/commons-logging.jar"/>
+      <pathelement location="${jboss.client}/javassist.jar"/>
+      <pathelement location="${jboss.client}/jbossall-client.jar"/>
+      <pathelement location="${jboss.client}/jbossws-client.jar"/>
+      <pathelement location="${jboss.client}/log4j.jar"/>
+      <pathelement location="${jboss.client}/mail.jar"/>
+      <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
+      <pathelement location="${jboss.client}/jboss-jaxws.jar"/>
+      <pathelement location="${jboss.client}/jboss-jaxrpc.jar"/>
+      <pathelement location="${jboss.client}/jboss-saaj.jar"/>
+      <pathelement location="${jboss.client}/wsdl4j.jar"/>
+      <pathelement location="${jboss.client}/jaxb-api.jar"/>
+   </path>
+
+   <path id="client.classpath">
+      <path refid="common.compilation.classpath"/>
+      <pathelement path="./etc"/>
+      <pathelement path="../common/output/classes"/>
+      <pathelement path="./output/client-classes"/>
+
+      <!-- all this stuff for WebServices -->
+      <pathelement location="${messaging.client.jar.path}/${messaging.client.jar.name}"/>
+      <pathelement location="${jboss.client}/activation.jar"/>
+      <pathelement location="${jboss.client}/commons-logging.jar"/>
+      <pathelement location="${jboss.client}/javassist.jar"/>
+      <pathelement location="${jboss.client}/jbossall-client.jar"/>
+      <pathelement location="${jboss.client}/jbossws-client.jar"/>
+      <pathelement location="${jboss.client}/log4j.jar"/>
+      <pathelement location="${jboss.client}/mail.jar"/>
+      <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
+      <pathelement location="${jboss.client}/jboss-jaxws.jar"/>
+      <pathelement location="${jboss.client}/jboss-jaxrpc.jar"/>
+      <pathelement location="${jboss.client}/jboss-saaj.jar"/>
+      <pathelement location="${jboss.client}/wsdl4j.jar"/>
+      <pathelement location="${jboss.client}/jaxb-api.jar"/>
+      <pathelement location="${jboss.home}//lib/endorsed/xercesImpl.jar"/>
+
+
+      <pathelement location="${jboss.home}/client/jbossall-client.jar"/>
+      <pathelement location="${jboss.home}/server/${jboss.configuration}/lib/log4j.jar"/>
+      <pathelement location="${jboss.home}/server/${jboss.configuration}/lib/javassist.jar"/>
+      <pathelement location="${jboss.home}/server/${jboss.configuration}/deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar"/>
+      <pathelement location="${jboss.home}/server/${jboss.configuration}/deploy/jboss-aop-jdk50.deployer/trove.jar"/>
+
+
+   </path>
+
+   <target name="identify">
+      <echo message="###########################################################################"/>
+      <echo message="#              Running the WebServices example                            #"/>
+      <echo message="###########################################################################"/>
+      <echo message="The queue:      ${example.queue.name}"/>
+      <echo message="The client jar: ${messaging.client.jar.path}/${messaging.client.jar.name}"/>
+   </target>
+
+   <target name="sanity-check" depends="identify">
+      <available property="client.jar.present" file="${messaging.client.jar.path}/${messaging.client.jar.name}"/>
+      <fail message="Could not find client jar ${messaging.client.jar.path}/${messaging.client.jar.name}"
+            unless="client.jar.present"/>
+   </target>
+
+   <target name="init" depends="sanity-check">
+      <mkdir dir="./output/classes/META-INF"/>
+      <mkdir dir="./output/lib"/>
+      <mkdir dir="../common/output/classes"/>
+   </target>
+
+   <target name="compile" depends="init">
+      <javac destdir="../common/output/classes" debug="on" debuglevel="lines,vars,source">
+         <src path="../common/src"/>
+         <classpath refid="common.compilation.classpath"/>
+      </javac>
+      <javac destdir="./output/classes" debug="on" debuglevel="lines,vars,source">
+         <src path="./src"/>
+         <classpath refid="runtime.classpath"/>
+      </javac>
+   </target>
+
+   <target name="run-wsdl-client" depends="compile">
+      <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
+        <classpath refid="runtime.classpath"/>
+      </taskdef>
+
+      <mkdir dir="./output/client"/>
+
+      <get src="http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?wsdl" dest="./output/service.wsdl" />
+
+      <wstools config="./etc/client-config/client-config.xml"
+               dest="./output/client"/>
+   </target>
+
+
+   <target name="war" depends="compile">
+      <jar destfile="./output/lib/jms-web-service.war">
+         <zipfileset dir="./output/classes" prefix="WEB-INF/classes"/>
+         <zipfileset dir="./etc/WEB-INF" prefix="WEB-INF"/>
+      </jar>
+   </target>
+
+   <target name="deploy" depends="war">
+      <copy file="./output/lib/jms-web-service.war"
+            todir="${jboss.home}/server/${jboss.configuration}/deploy"/>
+      <antcall target="sleep"><param name="sleep.interval" value="5"/></antcall>
+   </target>
+
+   <target name="compile-client">
+      <mkdir dir="./output/client-classes"/>
+      <javac destdir="./output/client-classes" debug="on" debuglevel="lines,vars,source">
+         <src path="./output/client"/>
+         <src path="./src-client"/>
+         <classpath refid="runtime.classpath"/>
+      </javac>
+   </target>
+
+
+   <target name="run" depends="deploy, run-wsdl-client, compile-client">
+      <antcall target="send-and-receive"/>
+      <antcall target="undeploy"/>
+   </target>
+
+   <target name="send-and-receive">
+      <!-- The client expects to find the name of the queue to connect to as value of the
+           'example.queue.name' property, which *may* be defined by calling ants when this example
+            is used in a smoke test -->
+      <java classname="org.jboss.example.jms.webservices.client.Client"
+            classpathref="client.classpath" fork="yes" failonerror="true">
+         <sysproperty key="example.queue.name" value="${example.queue.name}"/>
+         <!--
+         <jvmarg line="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,suspend=y,address=example"/>
+          -->
+      </java>
+   </target>
+
+   <target name="undeploy">
+      <delete file="${jboss.home}/server/${jboss.configuration}/deploy/jms-web-service.war"
+              quiet="true"/>
+   </target>
+
+   <target name="clean" depends="undeploy">
+      <delete dir="./output" quiet="true"/>
+      <delete dir="../common/output" quiet="true"/>
+   </target>
+
+   <target name="sleep">
+      <echo message="Sleeping for ${sleep.interval} seconds ..."/>
+      <sleep seconds="${sleep.interval}"/>
+   </target>
+
+</project>
+


Property changes on: trunk/docs/examples/web-services/build.xml
___________________________________________________________________
Name: svn:keywords
   + Id LastChangedDate Author Revision

Added: trunk/docs/examples/web-services/etc/WEB-INF/web.xml
===================================================================
--- trunk/docs/examples/web-services/etc/WEB-INF/web.xml	                        (rev 0)
+++ trunk/docs/examples/web-services/etc/WEB-INF/web.xml	2007-05-17 05:59:03 UTC (rev 2699)
@@ -0,0 +1,11 @@
+<?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>JMSWebServiceExample</servlet-name> 
+      <servlet-class>org.jboss.example.jms.webservices.endpoint.WebServiceExampleImpl</servlet-class>
+   </servlet>
+   <servlet-mapping>
+      <servlet-name>JMSWebServiceExample</servlet-name>
+      <url-pattern>/JMSWebServiceExample</url-pattern>
+   </servlet-mapping>
+</web-app>
\ No newline at end of file


Property changes on: trunk/docs/examples/web-services/etc/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
   + Id LastChangedDate Author Revision

Added: trunk/docs/examples/web-services/etc/client-config/client-config.xml
===================================================================
--- trunk/docs/examples/web-services/etc/client-config/client-config.xml	                        (rev 0)
+++ trunk/docs/examples/web-services/etc/client-config/client-config.xml	2007-05-17 05:59:03 UTC (rev 2699)
@@ -0,0 +1,8 @@
+<!-- This is a WebServices config file used by wsstools as showed on JBoss WebServices documentation -->
+
+<configuration>
+      <wsdl-java location="./output/service.wsdl">
+        <mapping location="jaxrpc-mapping.xml" />
+      </wsdl-java>
+</configuration>
+


Property changes on: trunk/docs/examples/web-services/etc/client-config/client-config.xml
___________________________________________________________________
Name: svn:keywords
   + Id LastChangedDate Author Revision

Added: trunk/docs/examples/web-services/etc/jndi.properties
===================================================================
--- trunk/docs/examples/web-services/etc/jndi.properties	                        (rev 0)
+++ trunk/docs/examples/web-services/etc/jndi.properties	2007-05-17 05:59:03 UTC (rev 2699)
@@ -0,0 +1,4 @@
+### JBossNS properties
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

Added: trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExample.java
===================================================================
--- trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExample.java	                        (rev 0)
+++ trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExample.java	2007-05-17 05:59:03 UTC (rev 2699)
@@ -0,0 +1,56 @@
+/*
+   * JBoss, Home of Professional Open Source
+   * Copyright 2005, JBoss Inc., and individual contributors as indicated
+   * by the @authors tag. See the copyright.txt in the distribution for a
+   * full listing of individual contributors.
+   *
+   * This is free software; you can redistribute it and/or modify it
+   * under the terms of the GNU Lesser General Public License as
+   * published by the Free Software Foundation; either version 2.1 of
+   * the License, or (at your option) any later version.
+   *
+   * This software is distributed in the hope that it will be useful,
+   * but WITHOUT ANY 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 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.
+   */
+
+package org.jboss.example.jms.webservices.endpoint;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * @author <a href="mailto:clebert.suconic at jboss.org">Clebert Suconic</a>
+ * @version <tt>$Revision$</tt>
+ *          $Id$
+ */
+public interface WebServiceExample extends Remote
+{
+
+   // Constants ------------------------------------------------------------------------------------
+
+   // Attributes -----------------------------------------------------------------------------------
+
+   // Static ---------------------------------------------------------------------------------------
+
+   // Constructors ---------------------------------------------------------------------------------
+
+   // Public ---------------------------------------------------------------------------------------
+
+   public String sendMessage(String queueName, String message) throws RemoteException;
+
+   // Package protected ----------------------------------------------------------------------------
+
+   // Protected ------------------------------------------------------------------------------------
+
+   // Private --------------------------------------------------------------------------------------
+
+   // Inner classes --------------------------------------------------------------------------------
+
+}


Property changes on: trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExample.java
___________________________________________________________________
Name: svn:keywords
   + Id LastChangedDate Author Revision

Added: trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExampleImpl.java
===================================================================
--- trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExampleImpl.java	                        (rev 0)
+++ trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExampleImpl.java	2007-05-17 05:59:03 UTC (rev 2699)
@@ -0,0 +1,106 @@
+/*
+   * JBoss, Home of Professional Open Source
+   * Copyright 2005, JBoss Inc., and individual contributors as indicated
+   * by the @authors tag. See the copyright.txt in the distribution for a
+   * full listing of individual contributors.
+   *
+   * This is free software; you can redistribute it and/or modify it
+   * under the terms of the GNU Lesser General Public License as
+   * published by the Free Software Foundation; either version 2.1 of
+   * the License, or (at your option) any later version.
+   *
+   * This software is distributed in the hope that it will be useful,
+   * but WITHOUT ANY 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 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.
+   */
+
+package org.jboss.example.jms.webservices.endpoint;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.naming.InitialContext;
+import javax.jms.Destination;
+import javax.jms.ConnectionFactory;
+import javax.jms.Connection;
+import javax.jms.Session;
+import javax.jms.MessageProducer;
+import java.rmi.RemoteException;
+
+
+/**
+ * @author <a href="mailto:clebert.suconic at jboss.org">Clebert Suconic</a>
+ * @version <tt>$Revision$</tt>
+ *          $Id$
+ */
+ at WebService(name="JMSSample")
+public class WebServiceExampleImpl implements WebServiceExample
+{
+
+   // Constants ------------------------------------------------------------------------------------
+
+   // Attributes -----------------------------------------------------------------------------------
+
+   // Static ---------------------------------------------------------------------------------------
+
+   // Constructors ---------------------------------------------------------------------------------
+
+   // Public ---------------------------------------------------------------------------------------
+
+   @WebMethod(operationName = "sendMessage")
+   public String sendMessage(String queueName, String message) throws RemoteException
+   {
+
+      Connection conn = null;
+      try
+      {
+         System.out.println("sending queue = " + queueName + " message = " + message);
+
+         InitialContext ctx = new InitialContext();
+         Destination dest = (Destination)ctx.lookup(queueName);
+
+         ConnectionFactory factory = (ConnectionFactory)ctx.lookup("/ConnectionFactory");
+         conn = factory.createConnection();
+
+         Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
+
+         MessageProducer producer = sess.createProducer(dest);
+         producer.send(sess.createTextMessage(message));
+
+
+         return "ok!";
+      }
+      catch (Exception e)
+      {
+         throw new RemoteException(e.getMessage());
+      }
+      finally
+      {
+         try
+         {
+            if (conn != null)
+            {
+               conn.close();
+            }
+         }
+         catch (Exception ignored)
+         {
+            ignored.printStackTrace();
+         }
+      }
+   }
+
+   // Package protected ----------------------------------------------------------------------------
+
+   // Protected ------------------------------------------------------------------------------------
+
+   // Private --------------------------------------------------------------------------------------
+
+   // Inner classes --------------------------------------------------------------------------------
+
+}


Property changes on: trunk/docs/examples/web-services/src/org/jboss/example/jms/webservices/endpoint/WebServiceExampleImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id LastChangedDate Author Revision

Added: trunk/docs/examples/web-services/src-client/org/jboss/example/jms/webservices/client/Client.java
===================================================================
--- trunk/docs/examples/web-services/src-client/org/jboss/example/jms/webservices/client/Client.java	                        (rev 0)
+++ trunk/docs/examples/web-services/src-client/org/jboss/example/jms/webservices/client/Client.java	2007-05-17 05:59:03 UTC (rev 2699)
@@ -0,0 +1,103 @@
+/*
+   * JBoss, Home of Professional Open Source
+   * Copyright 2005, JBoss Inc., and individual contributors as indicated
+   * by the @authors tag. See the copyright.txt in the distribution for a
+   * full listing of individual contributors.
+   *
+   * This is free software; you can redistribute it and/or modify it
+   * under the terms of the GNU Lesser General Public License as
+   * published by the Free Software Foundation; either version 2.1 of
+   * the License, or (at your option) any later version.
+   *
+   * This software is distributed in the hope that it will be useful,
+   * but WITHOUT ANY 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 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.
+   */
+
+package org.jboss.example.jms.webservices.client;
+
+import org.jboss.example.jms.common.ExampleSupport;
+import org.jboss.example.jms.webservices.endpoint.JMSSample;
+import org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl;
+import org.jboss.ws.core.jaxrpc.client.ServiceImpl;
+import javax.xml.rpc.ServiceFactory;
+import javax.xml.namespace.QName;
+import javax.naming.InitialContext;
+import javax.jms.Destination;
+import javax.jms.ConnectionFactory;
+import javax.jms.Session;
+import java.net.URL;
+import java.io.File;
+
+import javax.jms.*;
+import javax.jms.IllegalStateException;
+
+/**
+ * This Client will use auto generated classes from WebServices. You need to compile this class using ant.
+ * 
+ * @author <a href="mailto:clebert.suconic at jboss.org">Clebert Suconic</a>
+ * @version <tt>$Revision$</tt>
+ *          $Id$
+ */
+public class Client extends ExampleSupport
+{
+   public void example() throws Exception
+   {
+      ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
+
+      URL wsdlLocation = new URL("http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?wsdl");
+      QName serviceName = new QName("http://endpoint.webservices.jms.example.jboss.org/", "JMSSampleService");
+
+      File fileMapping = new File("./output/client/jaxrpc-mapping.xml");
+
+      ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, fileMapping.toURL());
+
+      JMSSample sample = (JMSSample)service.getPort(JMSSample.class);
+
+      sample.sendMessage("queue/testQueue","Hello from a WebService!");
+
+
+
+      InitialContext ctx = new InitialContext();
+      Destination dest = (Destination)ctx.lookup("queue/testQueue");
+
+      ConnectionFactory cf = (ConnectionFactory)ctx.lookup("/ConnectionFactory");
+      Connection conn = cf.createConnection();
+      conn.start();
+
+      Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
+
+      MessageConsumer consumer = sess.createConsumer(dest);
+      TextMessage msg = (TextMessage)consumer.receive(10000);
+
+      conn.close();
+
+      if (msg == null)
+      {
+         throw new IllegalStateException("Couldn't receive message");
+      }
+
+      if (!msg.getText().equals("Hello from a WebService!"))
+      {
+         throw new IllegalStateException("Couldn't receive message");
+      }
+
+      System.out.println("Received message ok!");
+   }
+
+   protected boolean isQueueExample()
+   {
+      return true;
+   }
+
+   public static void main(String[] args) throws Exception
+   {
+      new Client().example();
+   }
+}
\ No newline at end of file


Property changes on: trunk/docs/examples/web-services/src-client/org/jboss/example/jms/webservices/client/Client.java
___________________________________________________________________
Name: svn:keywords
   + Id LastChangedDate Author Revision




More information about the jboss-cvs-commits mailing list