Author: ALRubinger
Date: 2007-11-06 15:37:11 -0500 (Tue, 06 Nov 2007)
New Revision: 4999
Added:
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.java
Modified:
stack/native/branches/jbossws-native-2.0.2/ant-import-tests/build-jars-jaxws.xml
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.java
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.java
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/JBWS944TestCase.java
Log:
[JBAS-4903] Ensured test defines complete EJB2.1 view
Modified:
stack/native/branches/jbossws-native-2.0.2/ant-import-tests/build-jars-jaxws.xml
===================================================================
---
stack/native/branches/jbossws-native-2.0.2/ant-import-tests/build-jars-jaxws.xml 2007-11-06
20:09:03 UTC (rev 4998)
+++
stack/native/branches/jbossws-native-2.0.2/ant-import-tests/build-jars-jaxws.xml 2007-11-06
20:37:11 UTC (rev 4999)
@@ -176,6 +176,7 @@
<fileset dir="${tests.output.dir}/classes">
<include
name="org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.class"/>
<include
name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.class"/>
+ <include
name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.class"/>
<include
name="org/jboss/test/ws/jaxws/jbws944/EJB3RemoteHome.class"/>
</fileset>
</jar>
Modified:
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.java 2007-11-06
20:09:03 UTC (rev 4998)
+++
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3Bean01.java 2007-11-06
20:37:11 UTC (rev 4999)
@@ -34,11 +34,11 @@
@WebService(name = "EJB3Bean", serviceName = "EJB3BeanService",
targetNamespace = "http://org.jboss.ws/jbws944")
@WebContext(contextRoot = "/jaxws-jbws944", urlPattern =
"/FooBean01")
@SOAPBinding(style = SOAPBinding.Style.RPC)
-(a)Remote(EJB3RemoteInterface.class)
+(a)Remote({EJB3RemoteBusinessInterface.class,EJB3RemoteInterface.class})
@RemoteHome(EJB3RemoteHome.class)
@RemoteBinding(jndiBinding = "/ejb3/EJB3EndpointInterface")
@Stateless(name = "FooBean01")
-public class EJB3Bean01 implements EJB3RemoteInterface
+public class EJB3Bean01 implements EJB3RemoteBusinessInterface
{
@WebMethod
public String echo(String input)
Added:
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.java
(rev 0)
+++
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.java 2007-11-06
20:37:11 UTC (rev 4999)
@@ -0,0 +1,33 @@
+/*
+ * 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.jbws944;
+
+/**
+ * An EJB3 remote business interface
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 10-May-2005
+ */
+public interface EJB3RemoteBusinessInterface
+{
+ String echo(String input);
+}
Property changes on:
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteBusinessInterface.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Modified:
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.java 2007-11-06
20:09:03 UTC (rev 4998)
+++
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/EJB3RemoteInterface.java 2007-11-06
20:37:11 UTC (rev 4999)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * Copyright 2007, 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.
*
@@ -21,13 +21,15 @@
*/
package org.jboss.test.ws.jaxws.jbws944;
+import javax.ejb.EJBObject;
+
/**
- * An EJB3 remote interface
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 10-May-2005
+ * EJB2.1 Remote Interface
+ *
+ * @author <mailto:andrew.rubinger@redhat.com>ALR</a>
+ * @version $Revision$
*/
-public interface EJB3RemoteInterface
+public interface EJB3RemoteInterface extends EJBObject
{
String echo(String input);
}
Modified:
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/JBWS944TestCase.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/JBWS944TestCase.java 2007-11-06
20:09:03 UTC (rev 4998)
+++
stack/native/branches/jbossws-native-2.0.2/src/test/java/org/jboss/test/ws/jaxws/jbws944/JBWS944TestCase.java 2007-11-06
20:37:11 UTC (rev 4999)
@@ -57,7 +57,7 @@
public void testRemoteAccess() throws Exception
{
InitialContext iniCtx = getInitialContext();
- EJB3RemoteInterface ejb3Remote =
(EJB3RemoteInterface)iniCtx.lookup("/ejb3/EJB3EndpointInterface");
+ EJB3RemoteBusinessInterface ejb3Remote =
(EJB3RemoteBusinessInterface)iniCtx.lookup("/ejb3/EJB3EndpointInterface");
String helloWorld = "Hello world!";
Object retObj = ejb3Remote.echo(helloWorld);