[jboss-cvs] JBossAS SVN: r74055 - projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 3 21:57:47 EDT 2008


Author: scott.stark at jboss.org
Date: 2008-06-03 21:57:46 -0400 (Tue, 03 Jun 2008)
New Revision: 74055

Added:
   projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/DefaultWebService.java
   projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/DefaultWebServiceService.java
Modified:
   projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/Client.java
Log:
JBMETA-44, simple WebServiceRef usage

Modified: projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/Client.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/Client.java	2008-06-04 01:56:49 UTC (rev 74054)
+++ projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/Client.java	2008-06-04 01:57:46 UTC (rev 74055)
@@ -30,6 +30,7 @@
 import javax.jms.Queue;
 import javax.jms.QueueConnectionFactory;
 import javax.transaction.UserTransaction;
+import javax.xml.ws.WebServiceRef;
 
 import org.omg.CORBA.ORB;
 
@@ -40,6 +41,8 @@
 public class Client
 {
    private static ResourceIF resourceMethodBean;
+   @WebServiceRef(name="service/somewebservice")
+   static DefaultWebServiceService service = null;
 
    @EJB(beanName = "ResourceOnFieldBean")
    private static ResourceIF resourceFieldBean;

Added: projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/DefaultWebService.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/DefaultWebService.java	                        (rev 0)
+++ projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/DefaultWebService.java	2008-06-04 01:57:46 UTC (rev 74055)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * 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.metadata.annotation.client.basic;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public interface DefaultWebService
+{
+   public java.lang.String ping(java.lang.String info);
+}

Added: projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/DefaultWebServiceService.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/DefaultWebServiceService.java	                        (rev 0)
+++ projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/client/basic/DefaultWebServiceService.java	2008-06-04 01:57:46 UTC (rev 74055)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * 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.metadata.annotation.client.basic;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class DefaultWebServiceService extends javax.xml.ws.Service
+{
+   public DefaultWebServiceService(java.net.URL url, javax.xml.namespace.QName qname)
+   {
+      super(url, qname);
+   }
+
+ public DefaultWebService getDefaultWebServicePort()
+ {
+    return null;
+ }
+}




More information about the jboss-cvs-commits mailing list