[jboss-cvs] JBossAS SVN: r78569 - in projects/ejb3/trunk/testsuite/src/test: resources/test/bank/META-INF and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 16 05:16:48 EDT 2008
Author: wolfc
Date: 2008-09-16 05:16:48 -0400 (Tue, 16 Sep 2008)
New Revision: 78569
Added:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/Bank21.java
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/BankRemote.java
Removed:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/TellerHome.java
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/BankBean.java
projects/ejb3/trunk/testsuite/src/test/resources/test/bank/META-INF/ejb-jar.xml
projects/ejb3/trunk/testsuite/src/test/resources/test/bank/META-INF/jboss.xml
Log:
EJBTHREE-1490: untangled remote and business remote interfaces
Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/Bank21.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/Bank21.java (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/Bank21.java 2008-09-16 09:16:48 UTC (rev 78569)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.ejb3.test.bank;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public interface Bank21 extends Bank
+{
+
+}
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/BankBean.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/BankBean.java 2008-09-16 09:16:16 UTC (rev 78568)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/BankBean.java 2008-09-16 09:16:48 UTC (rev 78569)
@@ -24,6 +24,7 @@
import java.io.Serializable;
import java.rmi.RemoteException;
import java.sql.Connection;
+
import javax.annotation.Resource;
import javax.ejb.EJBException;
import javax.ejb.Init;
@@ -38,7 +39,7 @@
* @author $Author$
* @version $Revision$
*/
-public class BankBean implements Bank, Serializable, javax.ejb.SessionSynchronization
+public class BankBean implements BankRemote, Serializable, javax.ejb.SessionSynchronization
{
transient public DataSource customerDb;
Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/BankRemote.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/BankRemote.java (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/BankRemote.java 2008-09-16 09:16:48 UTC (rev 78569)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.ejb3.test.bank;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public interface BankRemote extends Bank
+{
+
+}
Deleted: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/TellerHome.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/TellerHome.java 2008-09-16 09:16:16 UTC (rev 78568)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/bank/TellerHome.java 2008-09-16 09:16:48 UTC (rev 78569)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file 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.ejb3.test.bank;
-
-import java.rmi.*;
-import javax.ejb.*;
-
-/**
- * @see <related>
- * @author $Author$
- * @version $Revision$
- */
-public interface TellerHome extends EJBHome
-{
- // Constants -----------------------------------------------------
- public static final String COMP_NAME = "java:comp/env/ejb/Teller";
-
- public static final String JNDI_NAME = "bank/Teller";
-
- // Attributes ----------------------------------------------------
-
- // Static --------------------------------------------------------
-
- // Constructors --------------------------------------------------
-
- // Public --------------------------------------------------------
- public Teller create() throws RemoteException, CreateException;
-
-}
-
-/*
- * $Id$ Currently
- * locked by:$Locker$ Revision: $Log$
- * locked by:$Locker: $ Revision: Revision 1.3 2005/10/30 00:06:46 starksm
- * locked by:$Locker: $ Revision: Update the jboss LGPL headers
- * locked by:$Locker: $ Revision:
- * locked by:$Locker$ Revision: Revision 1.2 2005/05/03 23:51:01 bdecoste
- * locked by:$Locker$ Revision: fixed formatting
- * locked by:$Locker$ Revision: Revision 1.1
- * 2005/05/03 20:35:11 bdecoste test for ejb3 deployment descriptors Revision
- * 1.3 2001/01/20 16:32:52 osh More cleanup to avoid verifier warnings. Revision
- * 1.2 2001/01/07 23:14:36 peter Trying to get JAAS to work within test suite.
- * Revision 1.1.1.1 2000/06/21 15:52:38 oberg Initial import of jBoss test. This
- * module contains CTS tests, some simple examples, and small bean suites.
- */
Modified: projects/ejb3/trunk/testsuite/src/test/resources/test/bank/META-INF/ejb-jar.xml
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/resources/test/bank/META-INF/ejb-jar.xml 2008-09-16 09:16:16 UTC (rev 78568)
+++ projects/ejb3/trunk/testsuite/src/test/resources/test/bank/META-INF/ejb-jar.xml 2008-09-16 09:16:48 UTC (rev 78569)
@@ -10,7 +10,7 @@
<enterprise-beans>
<session>
<ejb-name>Teller</ejb-name>
- <remote>org.jboss.ejb3.test.bank.Teller</remote>
+ <business-remote>org.jboss.ejb3.test.bank.Teller</business-remote>
<ejb-class>org.jboss.ejb3.test.bank.TellerBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
@@ -35,7 +35,7 @@
</session>
<session>
<ejb-name>Bank</ejb-name>
- <remote>org.jboss.ejb3.test.bank.Bank</remote>
+ <business-remote>org.jboss.ejb3.test.bank.BankRemote</business-remote>
<ejb-class>org.jboss.ejb3.test.bank.BankBean</ejb-class>
<session-type>Stateful</session-type>
@@ -75,7 +75,7 @@
</session>
<session>
<ejb-name>Bank21</ejb-name>
- <remote>org.jboss.ejb3.test.bank.Bank</remote>
+ <remote>org.jboss.ejb3.test.bank.Bank21</remote>
<ejb-class>org.jboss.ejb3.test.bank.BankBean21</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
Modified: projects/ejb3/trunk/testsuite/src/test/resources/test/bank/META-INF/jboss.xml
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/resources/test/bank/META-INF/jboss.xml 2008-09-16 09:16:16 UTC (rev 78568)
+++ projects/ejb3/trunk/testsuite/src/test/resources/test/bank/META-INF/jboss.xml 2008-09-16 09:16:48 UTC (rev 78569)
@@ -12,7 +12,7 @@
<remote-binding>
<jndi-name>bank/Bank</jndi-name>
</remote-binding>
- <clustered>true</clustered>
+ <!-- clustered>true</clustered -->
<security-domain>java:/jaas/bank</security-domain>
<method-attributes>
<method>
More information about the jboss-cvs-commits
mailing list