Author: heiko.braun(a)jboss.com
Date: 2006-11-15 13:18:07 -0500 (Wed, 15 Nov 2006)
New Revision: 1441
Added:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java
trunk/src/test/resources/jaxws/samples/retail/META-INF/jaxws-handler.xml
Log:
Add support for async invocations
Added:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java 2006-11-15
18:17:48 UTC (rev 1440)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java 2006-11-15
18:18:07 UTC (rev 1441)
@@ -0,0 +1,43 @@
+/*
+* 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.test.ws.jaxws.samples.retail.cc;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 9, 2006
+ */
+public class CreditcardProcessor {
+
+ public static void process(String creditcatrd)
+ {
+ // this will take some time
+ try
+ {
+ Thread.currentThread().join(1500);
+ }
+ catch (InterruptedException e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Property changes on:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/src/test/resources/jaxws/samples/retail/META-INF/jaxws-handler.xml
===================================================================
--- trunk/src/test/resources/jaxws/samples/retail/META-INF/jaxws-handler.xml 2006-11-15
18:17:48 UTC (rev 1440)
+++ trunk/src/test/resources/jaxws/samples/retail/META-INF/jaxws-handler.xml 2006-11-15
18:18:07 UTC (rev 1441)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+ <handler>
+ <handler-name>SOAPMessageTrace</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.samples.retail.handler.SOAPMessageTrace</handler-class>
+ </handler>
+ </handler-chain>
+
+</handler-chains>
\ No newline at end of file