[jboss-cvs] JBossAS SVN: r71369 - in trunk/testsuite/src: main/org/jboss/test/refs/common and 4 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Mar 28 03:17:42 EDT 2008
Author: scott.stark at jboss.org
Date: 2008-03-28 03:17:42 -0400 (Fri, 28 Mar 2008)
New Revision: 71369
Added:
trunk/testsuite/src/main/org/jboss/test/refs/common/
trunk/testsuite/src/main/org/jboss/test/refs/common/Constants.java
trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkBeanBase.java
trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkIF.java
trunk/testsuite/src/main/org/jboss/test/refs/common/ServiceLocator.java
trunk/testsuite/src/main/org/jboss/test/refs/ejblink/
trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink1Bean.java
trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink2Bean.java
trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink3Bean.java
trunk/testsuite/src/main/org/jboss/test/refs/test/CircularRefResolutionUnitTestCase.java
trunk/testsuite/src/resources/refs/ejblink/
trunk/testsuite/src/resources/refs/ejblink/application-client.xml
trunk/testsuite/src/resources/refs/ejblink/one_ejb.xml
trunk/testsuite/src/resources/refs/ejblink/one_jboss.xml
trunk/testsuite/src/resources/refs/ejblink/two_ejb.xml
trunk/testsuite/src/resources/refs/ejblink/two_jboss.xml
Log:
Test of circular refs used at method invocation time
Added: trunk/testsuite/src/main/org/jboss/test/refs/common/Constants.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/refs/common/Constants.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/refs/common/Constants.java 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.refs.common;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public interface Constants
+{
+ public static final String BEAN1_REF_NAME = "java:comp/env/ejb/EjbLink1Bean";
+ public static final String BEAN2_REF_NAME = "java:comp/env/ejb/EjbLink2Bean";
+ public static final String BEAN3_REF_NAME = "java:comp/env/ejb/EjbLink3Bean";
+}
Property changes on: trunk/testsuite/src/main/org/jboss/test/refs/common/Constants.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkBeanBase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkBeanBase.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkBeanBase.java 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.refs.common;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+abstract public class EjbLinkBeanBase implements EjbLinkIF
+{
+ public void call() throws Exception
+ {
+ }
+}
Property changes on: trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkBeanBase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkIF.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkIF.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkIF.java 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.refs.common;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public interface EjbLinkIF
+{
+ public void remove(); //for sfsb only
+ public void call() throws Exception ;
+ public void callOne() throws Exception ;
+ public void callTwo() throws Exception ;
+ public void callThree() throws Exception ;
+}
Property changes on: trunk/testsuite/src/main/org/jboss/test/refs/common/EjbLinkIF.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/main/org/jboss/test/refs/common/ServiceLocator.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/refs/common/ServiceLocator.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/refs/common/ServiceLocator.java 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.refs.common;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class ServiceLocator
+{
+ private ServiceLocator()
+ {
+ }
+
+ public static Object lookup(String name) throws NamingException
+ {
+ return lookup(name, null);
+ }
+
+ public static Object lookupByShortName(String shortName)
+ throws NamingException
+ {
+ return lookup("java:comp/env/" + shortName, null);
+ }
+
+ public static Object lookup(Class type) throws NamingException
+ {
+ return lookup(null, type);
+ }
+
+ /**
+ * Looks up a resource by its name or fully qualified type name. If name is
+ * not null, then use it to look up and type is ignored. If name is null,
+ * then try to use the fully qualified class name of type.
+ *
+ */
+ public static Object lookup(String name, Class type) throws NamingException
+ {
+ String nameToUse = null;
+ if (name == null)
+ {
+ nameToUse = type.getName();
+ }
+ else
+ {
+ nameToUse = name;
+ }
+ Context context = new InitialContext();
+ return context.lookup(nameToUse);
+ }
+}
Property changes on: trunk/testsuite/src/main/org/jboss/test/refs/common/ServiceLocator.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink1Bean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink1Bean.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink1Bean.java 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.refs.ejblink;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.ejb.SessionContext;
+import javax.annotation.Resource;
+
+import org.jboss.test.refs.common.Constants;
+import org.jboss.test.refs.common.EjbLinkBeanBase;
+import org.jboss.test.refs.common.EjbLinkIF;
+import org.jboss.test.refs.common.ServiceLocator;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+ at Stateless(name="EjbLink1Bean")
+ at Remote({EjbLinkIF.class})
+public class EjbLink1Bean extends EjbLinkBeanBase
+ implements EjbLinkIF, Constants
+{
+
+ @Resource
+ private SessionContext sessionContext;
+
+ public EjbLink1Bean() {
+ }
+
+ public void remove() {
+ }
+
+ //////////////////////////////////////////////////////////////////////
+ public void callOne() throws Exception {
+ throw new IllegalStateException("Cannot call bean1 from bean1");
+ }
+
+ public void callThree() throws Exception {
+ throw new IllegalStateException("Cannot call local bean3 from bean1");
+ }
+
+ public void callTwo() throws Exception {
+ Object obj = ServiceLocator.lookup(BEAN2_REF_NAME);
+ EjbLinkIF bean2 = (EjbLinkIF) obj;
+ bean2.call();
+ }
+}
+
Property changes on: trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink1Bean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink2Bean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink2Bean.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink2Bean.java 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.refs.ejblink;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.ejb.SessionContext;
+import javax.annotation.Resource;
+
+import org.jboss.test.refs.common.Constants;
+import org.jboss.test.refs.common.EjbLinkBeanBase;
+import org.jboss.test.refs.common.EjbLinkIF;
+import org.jboss.test.refs.common.ServiceLocator;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+ at Stateless(name = "EjbLink2Bean")
+ at Remote( { EjbLinkIF.class })
+public class EjbLink2Bean extends EjbLinkBeanBase
+ implements EjbLinkIF, Constants
+{
+ @Resource
+ private SessionContext sessionContext;
+
+ public EjbLink2Bean()
+ {
+ }
+
+ public void remove()
+ {
+ }
+
+ public void callTwo() throws Exception
+ {
+ throw new IllegalStateException("Cannot call bean2 from bean2");
+ }
+
+ public void callOne() throws Exception
+ {
+ Object obj = ServiceLocator.lookup(BEAN1_REF_NAME);
+ EjbLinkIF bean1 = (EjbLinkIF) obj;
+ bean1.call();
+ }
+
+ public void callThree() throws Exception
+ {
+ Object obj = ServiceLocator.lookup(BEAN3_REF_NAME);
+ EjbLinkIF bean3 = (EjbLinkIF) obj;
+ bean3.call();
+ }
+}
Property changes on: trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink2Bean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink3Bean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink3Bean.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink3Bean.java 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.refs.ejblink;
+
+import javax.ejb.Stateless;
+import javax.ejb.SessionContext;
+import javax.annotation.Resource;
+
+import org.jboss.test.refs.common.EjbLinkBeanBase;
+import org.jboss.test.refs.common.EjbLinkIF;
+
+ at Stateless(name = "EjbLink3Bean")
+/*
+ * This bean is to be packaged in the same ejb-jar as EjbLink2Bean.
+ * bean2 calls bean3.call(), but this bean does not call any other beans.
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class EjbLink3Bean extends EjbLinkBeanBase
+ implements EjbLinkIF
+{
+
+ @Resource
+ private SessionContext sessionContext;
+
+ public EjbLink3Bean()
+ {
+ }
+
+ public void remove()
+ {
+ }
+
+ // ////////////////////////////////////////////////////////////////////
+
+ public void callThree() throws Exception
+ {
+ throw new IllegalStateException("Cannot call bean3 from bean3");
+ }
+
+ public void callTwo() throws Exception
+ {
+ throw new IllegalStateException("Cannot call bean2 from bean3");
+ }
+
+ public void callOne() throws Exception
+ {
+ throw new IllegalStateException("Cannot call bean1 from bean3");
+ }
+}
Property changes on: trunk/testsuite/src/main/org/jboss/test/refs/ejblink/EjbLink3Bean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/main/org/jboss/test/refs/test/CircularRefResolutionUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/refs/test/CircularRefResolutionUnitTestCase.java (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/refs/test/CircularRefResolutionUnitTestCase.java 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,109 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.refs.test;
+
+import java.util.Date;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.client.ClientLauncher;
+import org.jboss.test.JBossTestCase;
+import org.jboss.test.refs.client.Client;
+import org.jboss.test.refs.common.EjbLinkIF;
+import org.jboss.test.refs.ejbs2.StatelessTest;
+
+/**
+ * Tests of reference resolution. The ear consists of:
+ *
+ ejb3_ejblink.ear
+ + ejblink-client.jar
+ - @EJB(name = "ejb/StatefulBean", beanInterface = StatefulIF.class)
+ -> StatefulBean
+ + one_ejb.jar
+ - EjbLink1Bean
+ + @Stateless(name = "EjbLink1Bean")
+ + @Remote( { EjbLinkIF.class })
+ + ejb-ref
+ - ejb-name=ejb/EjbLink2Bean
+ - ejb-link=two_ejb.jar#EjbLink2Bean
+ + two_ejb.jar
+ - EjbLink2Bean
+ + @Stateless(name = "EjbLink2Bean")
+ + @Remote( { EjbLinkIF.class })
+ + ejb-ref
+ - ejb-ref-name=ejb/EjbLink1Bean
+ - ejb-link=one_ejb.jar#EjbLink1Bean
+ + ejb-local-ref
+ - ejb-ref-name=ejb/EjbLink3Bean
+ - ejb-link=EjbLink3Bean
+ - EjbLink3Bean
+ + @Stateless(name = "EjbLink3Bean")
+
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class CircularRefResolutionUnitTestCase
+ extends JBossTestCase
+{
+ public static Test suite() throws Exception
+ {
+ Test t1 = getDeploySetup(RefResolutionUnitTestCase.class, "refs.ear");
+ return t1;
+ }
+
+ public CircularRefResolutionUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testSessionEJBRefs()
+ throws Exception
+ {
+ InitialContext ctx = getInitialContext();
+ Object ref = ctx.lookup("refs/StatelessBean2/remote");
+ StatelessTest test = (StatelessTest) ref;
+ test.validate();
+ }
+
+ /**
+ *
+ * @throws Throwable
+ */
+ public void testClientSessionRefByInterface()
+ throws Throwable
+ {
+ String mainClassName = Client.class.getName();
+ // must match JNDI name in jboss-client.xml or display-name in application-client.xml
+ String applicationClientName = "refs_client";
+ String name = new Date().toString();
+ String args[] = { name };
+
+ ClientLauncher launcher = new ClientLauncher();
+ launcher.launch(mainClassName, applicationClientName, args);
+ assertNotNull(Client.getStatefulBean());
+ assertNotNull(Client.getStatelessBean());
+ }
+}
Property changes on: trunk/testsuite/src/main/org/jboss/test/refs/test/CircularRefResolutionUnitTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/resources/refs/ejblink/application-client.xml
===================================================================
--- trunk/testsuite/src/resources/refs/ejblink/application-client.xml (rev 0)
+++ trunk/testsuite/src/resources/refs/ejblink/application-client.xml 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application-client xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ version="5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_5.xsd">
+ <ejb-ref>
+ <ejb-ref-name>ejb/EjbLink1Bean</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <remote>org.jboss.test.refs.common.EjbLinkIF</remote>
+ <ejb-link>one_ejb.jar#EjbLink1Bean</ejb-link>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>ejb/EjbLink2Bean</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <remote>org.jboss.test.refs.common.EjbLinkIF</remote>
+ <ejb-link>two_ejb.jar#EjbLink2Bean</ejb-link>
+ </ejb-ref>
+</application-client>
Property changes on: trunk/testsuite/src/resources/refs/ejblink/application-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/resources/refs/ejblink/one_ejb.xml
===================================================================
--- trunk/testsuite/src/resources/refs/ejblink/one_ejb.xml (rev 0)
+++ trunk/testsuite/src/resources/refs/ejblink/one_ejb.xml 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ version="3.0"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
+ <enterprise-beans>
+ <session>
+ <ejb-name>EjbLink1Bean</ejb-name>
+ <ejb-class>org.jboss.test.refs.ejblink.EjbLink1Bean</ejb-class>
+
+ <ejb-ref>
+ <ejb-ref-name>ejb/EjbLink2Bean</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <remote>org.jboss.test.refs.common.EjbLinkIF</remote>
+ <ejb-link>two_ejb.jar#EjbLink2Bean</ejb-link>
+ </ejb-ref>
+
+ </session>
+ </enterprise-beans>
+</ejb-jar>
Property changes on: trunk/testsuite/src/resources/refs/ejblink/one_ejb.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/resources/refs/ejblink/one_jboss.xml
===================================================================
--- trunk/testsuite/src/resources/refs/ejblink/one_jboss.xml (rev 0)
+++ trunk/testsuite/src/resources/refs/ejblink/one_jboss.xml 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss xmlns="http://www.jboss.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/j2ee/schema
+ http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+ version="5.0">
+ <enterprise-beans>
+ <ejb>
+ <ejb-name>EjbLink1Bean</ejb-name>
+ <jndi-name>ejb3_stateless_ejblink_one_EjbLink1Bean</jndi-name>
+ <ejb-ref>
+ <ejb-ref-name>ejb/EjbLink2Bean</ejb-ref-name>
+ </ejb-ref>
+ </ejb>
+
+ </enterprise-beans>
+</jboss>
Property changes on: trunk/testsuite/src/resources/refs/ejblink/one_jboss.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/resources/refs/ejblink/two_ejb.xml
===================================================================
--- trunk/testsuite/src/resources/refs/ejblink/two_ejb.xml (rev 0)
+++ trunk/testsuite/src/resources/refs/ejblink/two_ejb.xml 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ version="3.0"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
+ <enterprise-beans>
+ <session>
+ <ejb-name>EjbLink2Bean</ejb-name>
+ <ejb-class>org.jboss.test.refs.ejblink.EjbLink2Bean</ejb-class>
+
+ <ejb-ref>
+ <ejb-ref-name>ejb/EjbLink1Bean</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <remote>org.jboss.test.refs.common.EjbLinkIF</remote>
+ <ejb-link>one_ejb.jar#EjbLink1Bean</ejb-link>
+ </ejb-ref>
+
+ <ejb-local-ref>
+ <ejb-ref-name>ejb/EjbLink3Bean</ejb-ref-name>
+ <ejb-ref-type>Session</ejb-ref-type>
+ <local>org.jboss.test.refs.common.EjbLinkIF</local>
+ <ejb-link>EjbLink3Bean</ejb-link>
+ </ejb-local-ref>
+
+ </session>
+ </enterprise-beans>
+</ejb-jar>
Property changes on: trunk/testsuite/src/resources/refs/ejblink/two_ejb.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
Added: trunk/testsuite/src/resources/refs/ejblink/two_jboss.xml
===================================================================
--- trunk/testsuite/src/resources/refs/ejblink/two_jboss.xml (rev 0)
+++ trunk/testsuite/src/resources/refs/ejblink/two_jboss.xml 2008-03-28 07:17:42 UTC (rev 71369)
@@ -0,0 +1,19 @@
+<jboss xmlns="http://www.jboss.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.org/j2ee/schema
+ http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+ version="5.0">
+ <enterprise-beans>
+ <ejb>
+ <ejb-name>EjbLink2Bean</ejb-name>
+ <jndi-name>ejb3_stateless_ejblink_one_EjbLink2Bean</jndi-name>
+ <ejb-ref>
+ <ejb-ref-name>ejb/EjbLink1Bean</ejb-ref-name>
+ </ejb-ref>
+ <ejb-ref>
+ <ejb-ref-name>ejb/EjbLink3Bean</ejb-ref-name>
+ </ejb-ref>
+ </ejb>
+
+ </enterprise-beans>
+</jboss>
Property changes on: trunk/testsuite/src/resources/refs/ejblink/two_jboss.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
More information about the jboss-cvs-commits
mailing list