diff --git a/common/src/main/java/com/sun/ts/lib/harness/keyword.properties b/common/src/main/java/com/sun/ts/lib/harness/keyword.properties
index dfb9e0695f..7e57ae30a4 100644
--- a/common/src/main/java/com/sun/ts/lib/harness/keyword.properties
+++ b/common/src/main/java/com/sun/ts/lib/harness/keyword.properties
@@ -425,10 +425,6 @@ com/sun/ts/tests/ejb30/bb/session/stateful/migration/threetwo/override = javaee_
com/sun/ts/tests/ejb30/bb/session/stateless/migration/threetwo/annotated = javaee_optional ejb_2x_optional
com/sun/ts/tests/ejb30/bb/session/stateless/migration/threetwo/descriptor = javaee_optional ejb_2x_optional
com/sun/ts/tests/ejb30/bb/session/stateless/migration/threetwo/override = javaee_optional ejb_2x_optional
-com/sun/ts/tests/ejb30/bb/session/stateful/remove/complement = javaee_optional ejb_2x_optional
-com/sun/ts/tests/ejb30/bb/session/stateful/remove/annotated = javaee_optional ejb_2x_optional
-com/sun/ts/tests/ejb30/bb/session/stateful/remove/descriptor = javaee_optional ejb_2x_optional
-com/sun/ts/tests/ejb30/bb/session/stateful/remove/override = javaee_optional ejb_2x_optional
com/sun/ts/tests/ejb30/bb/session/stateless/migration/twothree/annotated = javaee_optional ejb_2x_optional
com/sun/ts/tests/ejb30/bb/session/stateless/migration/twothree/descriptor = javaee_optional ejb_2x_optional
com/sun/ts/tests/ejb30/bb/session/stateless/migration/twothree/override = javaee_optional ejb_2x_optional
diff --git a/connector/src/main/java/com/sun/ts/tests/connector/deployment/Deployment.java b/connector/src/main/java/com/sun/ts/tests/connector/deployment/Deployment.java
index 28241cf8a9..680805f011 100644
--- a/connector/src/main/java/com/sun/ts/tests/connector/deployment/Deployment.java
+++ b/connector/src/main/java/com/sun/ts/tests/connector/deployment/Deployment.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,10 +20,12 @@
package com.sun.ts.tests.connector.deployment;
-import java.rmi.RemoteException;
+import java.util.Properties;
-import jakarta.ejb.EJBObject;
+public interface Deployment {
+ public void initialize(Properties props);
-public interface Deployment extends EJBObject {
- boolean testRarInEar() throws RemoteException;
+ public boolean testRarInEar();
+
+ public void cleanup();
}
diff --git a/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentClient.java b/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentClient.java
index 1945c8f026..99196ec22b 100644
--- a/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentClient.java
+++ b/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,8 +33,6 @@ public class DeploymentClient extends EETest {
// Harness requirements
private Deployment hr = null;
- private DeploymentHome home = null;
-
private StringBuffer logData = null;
private Properties props = null;
@@ -66,9 +64,7 @@ public void setup(String[] args, Properties p) throws Exception {
try {
jc = new TSNamingContext();
- logMsg("Looked up home!!");
- home = (DeploymentHome) jc.lookup("java:comp/env/ejb/Deployment",
- DeploymentHome.class);
+ hr = (Deployment) jc.lookup("java:comp/env/ejb/Deployment", Deployment.class);
logMsg("Setup ok;");
} catch (Exception e) {
throw new Exception("Setup Failed!", e);
@@ -90,9 +86,9 @@ public void setup(String[] args, Properties p) throws Exception {
*/
public void testRarInEar() throws Exception {
try {
+ hr.initialize(props);
- hr = home.create(props);
-
+ // invoke method on the EJB
boolean result = hr.testRarInEar();
if (result) {
@@ -101,15 +97,14 @@ public void testRarInEar() throws Exception {
throw new Exception("Embedded resource adapter test failed");
}
- // invoke method on the EJB
logMsg("Test passed;");
} catch (Exception e) {
throw new Exception("Test Failed!", e);
}
}
- /* cleanup -- none in this case */
public void cleanup() throws Exception {
+ hr.cleanup();
logMsg("Cleanup ok;");
}
}
diff --git a/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentEJB.java b/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentEJB.java
index 799de791b8..c5d59f37f0 100644
--- a/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentEJB.java
+++ b/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentEJB.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -28,11 +28,7 @@
import com.sun.ts.tests.common.connector.whitebox.TSDataSource;
import com.sun.ts.tests.connector.util.DBSupport;
-import jakarta.ejb.CreateException;
-import jakarta.ejb.SessionBean;
-import jakarta.ejb.SessionContext;
-
-public class DeploymentEJB implements SessionBean {
+public class DeploymentEJB {
private TSNamingContext context = null;
private Properties p = null;
@@ -56,15 +52,15 @@ public class DeploymentEJB implements SessionBean {
public DeploymentEJB() {
}
- public void ejbCreate(Properties props) throws CreateException {
+ public void initialize(Properties props) {
p = props;
try {
this.context = new TSNamingContext();
- TestUtil.logTrace("ejbCreate");
+ TestUtil.logTrace("initialize");
TestUtil.init(props);
- System.out.println("Inside ejbCreate of DeploymentEJB!");
+ System.out.println("Inside initialize of DeploymentEJB!");
whitebox_tx = p.getProperty("whitebox-embed");
@@ -129,20 +125,8 @@ public boolean testRarInEar() {
return result;
}
- public void setSessionContext(SessionContext sc) {
-
- try {
- TestUtil.logTrace("setSessionContext");
- // this.context = new TSNamingContext();
- } catch (Exception sqle) {
- TestUtil.printStackTrace(sqle);
- sqle.getMessage();
- }
-
- }
-
- public void ejbRemove() {
- TestUtil.logTrace("ejbRemove");
+ public void cleanup() {
+ TestUtil.logTrace("cleanup");
try {
if (con != null) {
con.close();
@@ -152,10 +136,4 @@ public void ejbRemove() {
}
}
- public void ejbActivate() {
- }
-
- public void ejbPassivate() {
- }
-
}
diff --git a/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentHome.java b/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentHome.java
deleted file mode 100644
index 74d5758a43..0000000000
--- a/connector/src/main/java/com/sun/ts/tests/connector/deployment/DeploymentHome.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/*
- * $Id$
- */
-
-package com.sun.ts.tests.connector.deployment;
-
-import java.rmi.RemoteException;
-
-import jakarta.ejb.CreateException;
-import jakarta.ejb.EJBHome;
-
-public interface DeploymentHome extends EJBHome {
- Deployment create(java.util.Properties p)
- throws RemoteException, CreateException;
-}
diff --git a/connector/src/main/java/com/sun/ts/tests/connector/deployment/ejb_Deployment_client.xml b/connector/src/main/java/com/sun/ts/tests/connector/deployment/ejb_Deployment_client.xml
index 3919b6c419..e57accbfbb 100644
--- a/connector/src/main/java/com/sun/ts/tests/connector/deployment/ejb_Deployment_client.xml
+++ b/connector/src/main/java/com/sun/ts/tests/connector/deployment/ejb_Deployment_client.xml
@@ -1,7 +1,7 @@
-
-removeBean
-Session
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.complement.Client
-removeBean
-
-
-java:app/stateful_remove_complement_ejb/RemoveBean!com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF
-
-
+
+ removeBean
+ Session
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.complement.Client
+ removeBean
+
+ java:app/stateful_remove_complement_ejb/RemoveBean!com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF
+
-
-removeBean2
-Session
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.complement.Client
-removeBean2
-
-
-java:app/stateful_remove_complement_ejb/RemoveBean!com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF
-
-
+
+ removeBean2
+ Session
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.complement.Client
+ removeBean2
+
+ java:app/stateful_remove_complement_ejb/RemoveBean!com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF
+
-
-removeNotRetainBean
-Session
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveNotRetainIF
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.complement.Client
-removeNotRetainBean
-
-
-java:app/stateful_remove_complement_ejb/RemoveNotRetainBean!com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveNotRetainIF
-
-
+
+ removeNotRetainBean
+ Session
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveNotRetainIF
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.complement.Client
+ removeNotRetainBean
+
+ java:app/stateful_remove_complement_ejb/RemoveNotRetainBean!com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveNotRetainIF
+
-
-testBean
-Session
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.TestIF
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.complement.Client
-testBean
-
-
-java:global/stateful_remove_complement/stateful_remove_complement_ejb/StatelessTestBean
-
-
+
+ testBean
+ Session
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.TestIF
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.complement.Client
+ testBean
+
+ java:global/stateful_remove_complement/stateful_remove_complement_ejb/StatelessTestBean
+
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/complement/stateful_remove_complement_ejb.xml b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/complement/stateful_remove_complement_ejb.xml
index b4f86be0a0..184f1f17b3 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/complement/stateful_remove_complement_ejb.xml
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/complement/stateful_remove_complement_ejb.xml
@@ -1,7 +1,7 @@
-
-removeBean
-Session
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF
-stateful_remove_descriptor_ejb.jar#RemoveBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.Client
-removeBean
-
-
+
+ removeBean
+ Session
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF
+ stateful_remove_descriptor_ejb.jar#RemoveBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.Client
+ removeBean
+
+
-
-removeBean2
-Session
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF
-stateful_remove_descriptor_ejb.jar#RemoveBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.Client
-removeBean2
-
-
+
+ removeBean2
+ Session
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF
+ stateful_remove_descriptor_ejb.jar#RemoveBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.Client
+ removeBean2
+
+
-
-removeNotRetainBean
-Session
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveNotRetainIF
-stateful_remove_descriptor_ejb.jar#RemoveNotRetainBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.Client
-removeNotRetainBean
-
-
+
+ removeNotRetainBean
+ Session
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveNotRetainIF
+ stateful_remove_descriptor_ejb.jar#RemoveNotRetainBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.Client
+ removeNotRetainBean
+
+
-
-testBean
-Session
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.TestIF
-stateful_remove_descriptor_ejb.jar#StatelessTestBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.Client
-testBean
-
-
+
+ testBean
+ Session
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.TestIF
+ stateful_remove_descriptor_ejb.jar#StatelessTestBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.descriptor.Client
+ testBean
+
+
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/descriptor/stateful_remove_descriptor_ejb.xml b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/descriptor/stateful_remove_descriptor_ejb.xml
index dc955bb58a..88b9e19bd1 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/descriptor/stateful_remove_descriptor_ejb.xml
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/descriptor/stateful_remove_descriptor_ejb.xml
@@ -1,7 +1,7 @@
-
-removeBean
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF
-stateful_remove_override_ejb.jar#RemoveBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.override.Client
-removeBean
-
-
-
-
-removeBean2
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF
-stateful_remove_override_ejb.jar#RemoveBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.override.Client
-removeBean2
-
-
-
-
-removeNotRetainBean
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveNotRetainIF
-stateful_remove_override_ejb.jar#RemoveNotRetainBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.override.Client
-removeNotRetainBean
-
-
-
-
-testBean
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.TestIF
-stateful_remove_override_ejb.jar#StatelessTestBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.remove.override.Client
-testBean
-
-
+
+ removeBean
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveIF
+ stateful_remove_override_ejb.jar#RemoveBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.override.Client
+ removeBean
+
+
+
+
+ removeBean2
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.Remove2IF
+ stateful_remove_override_ejb.jar#RemoveBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.override.Client
+ removeBean2
+
+
+
+
+ removeNotRetainBean
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.RemoveNotRetainIF
+ stateful_remove_override_ejb.jar#RemoveNotRetainBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.override.Client
+ removeNotRetainBean
+
+
+
+
+ testBean
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.common.TestIF
+ stateful_remove_override_ejb.jar#StatelessTestBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.remove.override.Client
+ testBean
+
+
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/override/stateful_remove_override_ejb.xml b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/override/stateful_remove_override_ejb.xml
index 76e26d1270..541fd7b435 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/override/stateful_remove_override_ejb.xml
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateful/remove/override/stateful_remove_override_ejb.xml
@@ -1,7 +1,7 @@
-ejb30 sessioncontext
-
-
-ejb30 sessioncontext
-SessionContextBean
-com.sun.ts.tests.ejb30.common.sessioncontext.TwoRemoteHome
-com.sun.ts.tests.ejb30.common.sessioncontext.TwoRemoteIF
-com.sun.ts.tests.ejb30.common.sessioncontext.TwoLocalHome
-com.sun.ts.tests.ejb30.common.sessioncontext.TwoLocalIF
-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF
-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF
-com.sun.ts.tests.ejb30.common.sessioncontext.Three2IF
-com.sun.ts.tests.ejb30.common.sessioncontext.Three1IF
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.SessionContextBean
-Stateful
-Bean
-
-sessionContext
-jakarta.ejb.SessionContext
-
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.SessionContextBean
-sessionContext
-
-
-
-
-
-
-
-ejb30 sessioncontext
-AcceptBean
-com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF
-com.sun.ts.tests.ejb30.common.sessioncontext.AcceptIF
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.AcceptBean
-Stateful
-Bean
-
-sessionContext
-jakarta.ejb.SessionContext
-
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.AcceptBean
-sessionContext
-
-
-
-
-
-
-
-TestBean
-TestBean
-com.sun.ts.tests.ejb30.common.sessioncontext.TestIF
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
-Stateful
-Bean
-
-local2
-Session
-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF
-SessionContextBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
-local2
-
-
-
-local1
-Session
-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF
-SessionContextBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
-local1
-
-
-
-acceptLocal
-Session
-com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF
-AcceptBean
-
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
-acceptLocal
-
-
-
-sessionContext
-jakarta.ejb.SessionContext
-
-com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
-sessionContext
-
-
-
-
-
-
-
+ ejb30 sessioncontext
+
+
+ ejb30 sessioncontext
+ SessionContextBean
+ com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF
+ com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF
+ com.sun.ts.tests.ejb30.common.sessioncontext.Three2IF
+ com.sun.ts.tests.ejb30.common.sessioncontext.Three1IF
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.SessionContextBean
+ Stateful
+ Bean
+
+ sessionContext
+ jakarta.ejb.SessionContext
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.SessionContextBean
+ sessionContext
+
+
+
+
+
+
+
+ ejb30 sessioncontext
+ AcceptBean
+ com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF
+ com.sun.ts.tests.ejb30.common.sessioncontext.AcceptIF
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.AcceptBean
+ Stateful
+ Bean
+
+ sessionContext
+ jakarta.ejb.SessionContext
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.AcceptBean
+ sessionContext
+
+
+
+
+
+
+
+ TestBean
+ TestBean
+ com.sun.ts.tests.ejb30.common.sessioncontext.TestIF
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
+ Stateful
+ Bean
+
+ local2
+ Session
+ com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF
+ SessionContextBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
+ local2
+
+
+
+ local1
+ Session
+ com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF
+ SessionContextBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
+ local1
+
+
+
+ acceptLocal
+ Session
+ com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF
+ AcceptBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
+ acceptLocal
+
+
+
+ sessionContext
+ jakarta.ejb.SessionContext
+
+ com.sun.ts.tests.ejb30.bb.session.stateful.sessioncontext.descriptor.TestBean
+ sessionContext
+
+
+
+
+
+
+
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/Client.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/Client.java
index 996f15feb8..6cf5184d02 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/Client.java
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/Client.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,8 +20,6 @@
package com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.annotated;
-import java.rmi.RemoteException;
-
import com.sun.javatest.Status;
import com.sun.ts.tests.ejb30.common.helper.TestFailedException;
import com.sun.ts.tests.ejb30.common.sessioncontext.AcceptIF;
@@ -29,10 +27,7 @@
import com.sun.ts.tests.ejb30.common.sessioncontext.TestIF;
import com.sun.ts.tests.ejb30.common.sessioncontext.Three1IF;
import com.sun.ts.tests.ejb30.common.sessioncontext.Three2IF;
-import com.sun.ts.tests.ejb30.common.sessioncontext.TwoRemoteHome;
-import com.sun.ts.tests.ejb30.common.sessioncontext.TwoRemoteIF;
-import jakarta.ejb.CreateException;
import jakarta.ejb.EJB;
public class Client extends ClientBase {
@@ -42,9 +37,6 @@ public class Client extends ClientBase {
@EJB(name = "sessionContextBean2")
private static Three2IF sessionContextBean2;
- @EJB(name = "twoSessionContextBeanHome")
- private static TwoRemoteHome twoSessionContextBeanHome;
-
@EJB(name = "testBean")
private static TestIF testBean;
@@ -55,18 +47,6 @@ protected Three2IF getSessionContextBean2() {
return sessionContextBean2;
}
- protected TwoRemoteIF getTwoSessionContextBean() throws TestFailedException {
- Object obj = null;
- try {
- obj = twoSessionContextBeanHome.create();
- } catch (RemoteException e) {
- throw new TestFailedException(e);
- } catch (CreateException e) {
- throw new TestFailedException(e);
- }
- return (TwoRemoteIF) obj;
- }
-
protected Three1IF getSessionContextBean() {
return sessionContextBean;
}
@@ -211,22 +191,4 @@ public static void main(String[] args) {
* @test_Strategy:
*
*/
-
- /*
- * @testName: getInvokedBusinessInterfaceRemoteIllegal
- *
- * @assertion_ids:EJB:JAVADOC:10; EJB:JAVADOC:11; EJB:JAVADOC:171
- *
- * @test_Strategy:
- *
- */
- /*
- * @testName: getInvokedBusinessInterfaceLocalIllegal
- *
- * @assertion_ids: EJB:JAVADOC:171; EJB:JAVADOC:126
- *
- * @test_Strategy:
- *
- */
-
}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/SessionContextBean.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/SessionContextBean.java
index c71751148e..c85dc29e90 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/SessionContextBean.java
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/SessionContextBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,22 +26,16 @@
import com.sun.ts.tests.ejb30.common.sessioncontext.Three2IF;
import com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF;
import com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF;
-import com.sun.ts.tests.ejb30.common.sessioncontext.TwoLocalHome;
-import com.sun.ts.tests.ejb30.common.sessioncontext.TwoRemoteHome;
import jakarta.annotation.Resource;
import jakarta.ejb.Local;
-import jakarta.ejb.LocalHome;
import jakarta.ejb.Remote;
-import jakarta.ejb.RemoteHome;
import jakarta.ejb.SessionContext;
import jakarta.ejb.Stateless;
@Stateless(name = "SessionContextBean")
@Remote({ Three1IF.class, Three2IF.class })
@Local({ ThreeLocal1IF.class, ThreeLocal2IF.class })
-@RemoteHome(TwoRemoteHome.class)
-@LocalHome(TwoLocalHome.class)
public class SessionContextBean extends SessionContextBeanBase
// implements Three1IF, Three2IF
{
@@ -59,13 +53,4 @@ public SessionContextBean() {
public void remove() {
}
-
- //////////////////////////////////////////////////////////////////////
- // optional ejbCreate() method because this bean has RemoteHome
- // it may throw any application exception, and possibly CreateException
- //////////////////////////////////////////////////////////////////////
- public void ejbCreate() throws TestFailedException {
-
- }
-
}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/TestBean.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/TestBean.java
index 765ff7b9dc..bf00de446a 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/TestBean.java
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/TestBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -26,11 +26,8 @@
import com.sun.ts.tests.ejb30.common.sessioncontext.TestIF;
import com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF;
import com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF;
-import com.sun.ts.tests.ejb30.common.sessioncontext.TwoLocalHome;
-import com.sun.ts.tests.ejb30.common.sessioncontext.TwoLocalIF;
import jakarta.annotation.Resource;
-import jakarta.ejb.CreateException;
import jakarta.ejb.EJB;
import jakarta.ejb.Remote;
import jakarta.ejb.SessionContext;
@@ -51,19 +48,6 @@ public class TestBean extends TestBeanBase {
@EJB(name = "acceptLocal")
private AcceptLocalIF acceptLocal;
- @EJB(name = "twoSessionContextBeanHome")
- private TwoLocalHome twoSessionContextBeanLocalHome;
-
- protected TwoLocalIF getTwoLocal() throws TestFailedException {
- Object obj = null;
- try {
- obj = twoSessionContextBeanLocalHome.create();
- } catch (CreateException e) {
- throw new TestFailedException(e);
- }
- return (TwoLocalIF) obj;
- }
-
protected SessionContext getSessionContext() {
return sessionContext;
}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/build.xml b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/build.xml
index 98af2a3e40..f5c5d1f43e 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/build.xml
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/bb/session/stateless/sessioncontext/annotated/build.xml
@@ -1,7 +1,7 @@
-ejb30 sessioncontext
-
-
-ejb30 sessioncontext
-SessionContextBean
-com.sun.ts.tests.ejb30.common.sessioncontext.TwoRemoteHome
-com.sun.ts.tests.ejb30.common.sessioncontext.TwoRemoteIF
-com.sun.ts.tests.ejb30.common.sessioncontext.TwoLocalHome
-com.sun.ts.tests.ejb30.common.sessioncontext.TwoLocalIF
-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF
-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF
-com.sun.ts.tests.ejb30.common.sessioncontext.Three2IF
-com.sun.ts.tests.ejb30.common.sessioncontext.Three1IF
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.SessionContextBean
-Stateless
-Container
-
-sessionContext
-jakarta.ejb.SessionContext
-
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.SessionContextBean
-sessionContext
-
-
-
-
-
-
-
-ejb30 sessioncontext
-AcceptBean
-com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF
-com.sun.ts.tests.ejb30.common.sessioncontext.AcceptIF
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.AcceptBean
-Stateless
-Container
-
-sessionContext
-jakarta.ejb.SessionContext
-
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.AcceptBean
-sessionContext
-
-
-
-
-
-
-
-TestBean
-TestBean
-com.sun.ts.tests.ejb30.common.sessioncontext.TestIF
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
-Stateless
-Container
-
-local2
-Session
-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF
-SessionContextBean
-
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
-local2
-
-
-
-local1
-Session
-com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF
-SessionContextBean
-
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
-local1
-
-
-
-acceptLocal
-Session
-com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF
-AcceptBean
-
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
-acceptLocal
-
-
-
-sessionContext
-jakarta.ejb.SessionContext
-
-com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
-sessionContext
-
-
-
-
-
-
-
+ ejb30 sessioncontext
+
+
+ ejb30 sessioncontext
+ SessionContextBean
+ com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF
+ com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF
+ com.sun.ts.tests.ejb30.common.sessioncontext.Three2IF
+ com.sun.ts.tests.ejb30.common.sessioncontext.Three1IF
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.SessionContextBean
+ Stateless
+ Container
+
+ sessionContext
+ jakarta.ejb.SessionContext
+
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.SessionContextBean
+ sessionContext
+
+
+
+
+
+
+
+ ejb30 sessioncontext
+ AcceptBean
+ com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF
+ com.sun.ts.tests.ejb30.common.sessioncontext.AcceptIF
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.AcceptBean
+ Stateless
+ Container
+
+ sessionContext
+ jakarta.ejb.SessionContext
+
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.AcceptBean
+ sessionContext
+
+
+
+
+
+
+
+ TestBean
+ TestBean
+ com.sun.ts.tests.ejb30.common.sessioncontext.TestIF
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
+ Stateless
+ Container
+
+ local2
+ Session
+ com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal2IF
+ SessionContextBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
+ local2
+
+
+
+ local1
+ Session
+ com.sun.ts.tests.ejb30.common.sessioncontext.ThreeLocal1IF
+ SessionContextBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
+ local1
+
+
+
+ acceptLocal
+ Session
+ com.sun.ts.tests.ejb30.common.sessioncontext.AcceptLocalIF
+ AcceptBean
+
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
+ acceptLocal
+
+
+
+ sessionContext
+ jakarta.ejb.SessionContext
+
+ com.sun.ts.tests.ejb30.bb.session.stateless.sessioncontext.descriptor.TestBean
+ sessionContext
+
+
+
+
+
+
+
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/ClientBase.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/ClientBase.java
index 8e25abb932..3c92f06fcf 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/ClientBase.java
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/ClientBase.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,7 +20,6 @@
package com.sun.ts.tests.ejb30.common.sessioncontext;
-import java.rmi.RemoteException;
import java.util.Properties;
import com.sun.ts.lib.harness.EETest;
@@ -34,9 +33,6 @@ abstract public class ClientBase extends EETest {
abstract protected Three2IF getSessionContextBean2();
- abstract protected TwoRemoteIF getTwoSessionContextBean()
- throws TestFailedException;
-
abstract protected TestIF getTestBean();
abstract protected AcceptIF getAcceptBean();
@@ -325,35 +321,4 @@ public void getInvokedBusinessInterfaceLocal2() throws Exception {
throw new Exception(e);
}
}
-
- /*
- * testName: getInvokedBusinessInterfaceRemoteIllegal
- *
- * @test_Strategy:
- *
- */
- public void getInvokedBusinessInterfaceRemoteIllegal() throws Exception {
- try {
- TwoRemoteIF twoSessionContextBean = getTwoSessionContextBean();
- twoSessionContextBean.getInvokedBusinessInterfaceRemoteIllegal();
- } catch (TestFailedException e) {
- throw new Exception(e);
- } catch (RemoteException e) {
- throw new Exception(e);
- }
- }
-
- /*
- * testName: getInvokedBusinessInterfaceLocalIllegal
- *
- * @test_Strategy:
- *
- */
- public void getInvokedBusinessInterfaceLocalIllegal() throws Exception {
- try {
- testBean.getInvokedBusinessInterfaceLocalIllegal();
- } catch (TestFailedException e) {
- throw new Exception(e);
- }
- }
}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/SessionContextBeanBase.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/SessionContextBeanBase.java
index 36b39d0ef0..d99b336062 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/SessionContextBeanBase.java
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/SessionContextBeanBase.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -91,12 +91,6 @@ public Class getInvokedBusinessInterfaceLocal2() throws TestFailedException {
return getInvokedBusinessInterface();
}
- //////////////////////////////////////////////////////////////////////
- // TwoRemoteIF methods
- //////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////
- // TwoLocalIF methods
- //////////////////////////////////////////////////////////////////////
public void noop() {
}
@@ -120,7 +114,6 @@ public void getInvokedBusinessInterfaceLocalIllegal() {
getInvokedBusinessInterfaceRemoteIllegal();
}
- //////////////////////////////////////////////////////////////////////
private void getBusinessObject1Illegal() throws TestFailedException {
try {
getSessionContext().getBusinessObject(Object.class);
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TestBeanBase.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TestBeanBase.java
index 4d694bac83..ba3e804f90 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TestBeanBase.java
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TestBeanBase.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -23,7 +23,6 @@
import com.sun.ts.tests.ejb30.common.helper.TLogger;
import com.sun.ts.tests.ejb30.common.helper.TestFailedException;
-import jakarta.ejb.EJBException;
import jakarta.ejb.SessionContext;
abstract public class TestBeanBase implements TestIF {
@@ -33,8 +32,6 @@ abstract public class TestBeanBase implements TestIF {
abstract protected ThreeLocal2IF getLocal2();
- abstract protected TwoLocalIF getTwoLocal() throws TestFailedException;
-
abstract protected AcceptLocalIF getAcceptLocalBean();
public void getBusinessObjectLocal1() throws TestFailedException {
@@ -193,14 +190,4 @@ public void lookupIllegalArgumentException() throws TestFailedException {
+ "a non-existent name: " + lookupName);
}
}
-
- public void getInvokedBusinessInterfaceLocalIllegal()
- throws TestFailedException {
- TwoLocalIF twoSessionContextBean = getTwoLocal();
- try {
- twoSessionContextBean.getInvokedBusinessInterfaceLocalIllegal();
- } catch (EJBException e) {
- throw new TestFailedException(e);
- }
- }
}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TestIF.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TestIF.java
index af1f966fe9..b7ee9add77 100644
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TestIF.java
+++ b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TestIF.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -41,7 +41,4 @@ public abstract void lookupIllegalArgumentException()
throws TestFailedException;
public void getBusinessObjectLocal1Illegal() throws TestFailedException;
-
- public void getInvokedBusinessInterfaceLocalIllegal()
- throws TestFailedException;
}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoLocalHome.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoLocalHome.java
deleted file mode 100644
index 5869dbcd0f..0000000000
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoLocalHome.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/*
- * $Id$
- */
-
-package com.sun.ts.tests.ejb30.common.sessioncontext;
-
-import com.sun.ts.tests.ejb30.common.helper.TestFailedException;
-
-import jakarta.ejb.CreateException;
-import jakarta.ejb.EJBLocalHome;
-
-public interface TwoLocalHome extends EJBLocalHome {
- public TwoLocalIF create() throws CreateException, TestFailedException;
-
-}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoLocalIF.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoLocalIF.java
deleted file mode 100644
index 8995c3175e..0000000000
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoLocalIF.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/*
- * $Id$
- */
-
-package com.sun.ts.tests.ejb30.common.sessioncontext;
-
-import jakarta.ejb.EJBLocalObject;
-
-public interface TwoLocalIF extends EJBLocalObject {
- public void noop();
-
- public void getInvokedBusinessInterfaceLocalIllegal();
-}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoRemoteHome.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoRemoteHome.java
deleted file mode 100644
index 6e6a4acd27..0000000000
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoRemoteHome.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/*
- * $Id$
- */
-
-package com.sun.ts.tests.ejb30.common.sessioncontext;
-
-import java.rmi.RemoteException;
-
-import com.sun.ts.tests.ejb30.common.helper.TestFailedException;
-
-import jakarta.ejb.CreateException;
-import jakarta.ejb.EJBHome;
-
-public interface TwoRemoteHome extends EJBHome {
- public TwoRemoteIF create()
- throws RemoteException, CreateException, TestFailedException;
-
-}
diff --git a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoRemoteIF.java b/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoRemoteIF.java
deleted file mode 100644
index 28ce6184ae..0000000000
--- a/ejb30/src/main/java/com/sun/ts/tests/ejb30/common/sessioncontext/TwoRemoteIF.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/*
- * $Id$
- */
-
-package com.sun.ts.tests.ejb30.common.sessioncontext;
-
-import java.rmi.RemoteException;
-
-import jakarta.ejb.EJBObject;
-
-public interface TwoRemoteIF extends EJBObject {
- public void noop() throws RemoteException;
-
- public void getInvokedBusinessInterfaceRemoteIllegal() throws RemoteException;
-}
diff --git a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1.java b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1.java
index e13c11085b..9c34224014 100644
--- a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1.java
+++ b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,14 +20,10 @@
package com.sun.ts.tests.integration.sec.propagation;
-import java.rmi.RemoteException;
+public interface Bean1 {
+ public String getCallerPrincipalName();
-import jakarta.ejb.EJBObject;
+ public String getPropagatedPrincipalName();
-public interface Bean1 extends EJBObject {
- public String getCallerPrincipalName() throws RemoteException;
-
- public String getPropagatedPrincipalName() throws RemoteException;
-
- public String Test() throws RemoteException;
+ public String Test();
}
diff --git a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1EJB.java b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1EJB.java
index b335c34f2b..aae07d01bf 100644
--- a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1EJB.java
+++ b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1EJB.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -24,18 +24,14 @@
import com.sun.ts.lib.util.TSNamingContextInterface;
import com.sun.ts.lib.util.TestUtil;
-import jakarta.ejb.CreateException;
+import jakarta.annotation.Resource;
import jakarta.ejb.EJBException;
-import jakarta.ejb.SessionBean;
import jakarta.ejb.SessionContext;
-public class Bean1EJB implements SessionBean {
+public class Bean1EJB {
- private SessionContext sessionContext = null;
-
- public void ejbCreate() throws CreateException {
- TestUtil.logTrace("ejbCreate OK");
- }
+ @Resource
+ private SessionContext sessionContext;
/**
* Returns the name of the caller principal
@@ -55,16 +51,12 @@ public String getPropagatedPrincipalName() {
TSNamingContextInterface nctx = null;
String testLookup = "java:comp/env/ejb/Bean2";
- Bean2Home bean2Home = null;
Bean2 bean2Ref = null;
nctx = new TSNamingContext();
- bean2Home = (Bean2Home) nctx.lookup(testLookup, Bean2Home.class);
- bean2Ref = bean2Home.create();
+ bean2Ref = (Bean2) nctx.lookup(testLookup, Bean2.class);
result = bean2Ref.getCallerPrincipalName();
-
- bean2Ref.remove();
} catch (Exception e) {
TestUtil.printStackTrace(e);
throw new EJBException("Exception: " + e.getMessage());
@@ -76,24 +68,4 @@ public String getPropagatedPrincipalName() {
public String Test() {
return "true";
}
-
- public void setSessionContext(SessionContext sc) {
- sessionContext = sc;
- }
-
- public void ejbRemove() {
- TestUtil.logTrace("ejbRemove");
- }
-
- public void ejbDestroy() {
- TestUtil.logTrace("ejbDestroy");
- }
-
- public void ejbActivate() {
- TestUtil.logTrace("ejbActivate");
- }
-
- public void ejbPassivate() {
- TestUtil.logTrace("ejbPassivate");
- }
}
diff --git a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1Home.java b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1Home.java
deleted file mode 100644
index 2ee6e06fdb..0000000000
--- a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean1Home.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/*
- * $Id$
- */
-
-package com.sun.ts.tests.integration.sec.propagation;
-
-import java.rmi.RemoteException;
-
-import jakarta.ejb.CreateException;
-import jakarta.ejb.EJBHome;
-
-public interface Bean1Home extends EJBHome {
- Bean1 create() throws RemoteException, CreateException;
-}
diff --git a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2.java b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2.java
index 0c8b62a4ee..ce392e42f5 100644
--- a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2.java
+++ b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -20,10 +20,6 @@
package com.sun.ts.tests.integration.sec.propagation;
-import java.rmi.RemoteException;
-
-import jakarta.ejb.EJBObject;
-
-public interface Bean2 extends EJBObject {
- public String getCallerPrincipalName() throws RemoteException;
+public interface Bean2 {
+ public String getCallerPrincipalName();
}
diff --git a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2EJB.java b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2EJB.java
index d3707ded6d..372402463c 100644
--- a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2EJB.java
+++ b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2EJB.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -22,17 +22,13 @@
import com.sun.ts.lib.util.TestUtil;
-import jakarta.ejb.CreateException;
-import jakarta.ejb.SessionBean;
+import jakarta.annotation.Resource;
import jakarta.ejb.SessionContext;
-public class Bean2EJB implements SessionBean {
+public class Bean2EJB {
- private SessionContext sessionContext = null;
-
- public void ejbCreate() throws CreateException {
- TestUtil.logTrace("ejbCreate OK");
- }
+ @Resource
+ private SessionContext sessionContext;
/**
* Returns the name of the caller principal
@@ -40,24 +36,4 @@ public void ejbCreate() throws CreateException {
public String getCallerPrincipalName() {
return sessionContext.getCallerPrincipal().getName();
}
-
- public void setSessionContext(SessionContext sc) {
- sessionContext = sc;
- }
-
- public void ejbRemove() {
- TestUtil.logTrace("ejbRemove");
- }
-
- public void ejbDestroy() {
- TestUtil.logTrace("ejbDestroy");
- }
-
- public void ejbActivate() {
- TestUtil.logTrace("ejbActivate");
- }
-
- public void ejbPassivate() {
- TestUtil.logTrace("ejbPassivate");
- }
}
diff --git a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2Home.java b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2Home.java
deleted file mode 100644
index b09cd42e3b..0000000000
--- a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/Bean2Home.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0, which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * This Source Code may also be made available under the following Secondary
- * Licenses when the conditions for such availability set forth in the
- * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
- * version 2 with the GNU Classpath Exception, which is available at
- * https://www.gnu.org/software/classpath/license.html.
- *
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
- */
-
-/*
- * $Id$
- */
-
-package com.sun.ts.tests.integration.sec.propagation;
-
-import java.rmi.RemoteException;
-
-import jakarta.ejb.CreateException;
-import jakarta.ejb.EJBHome;
-
-public interface Bean2Home extends EJBHome {
- Bean2 create() throws RemoteException, CreateException;
-}
diff --git a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/build.xml b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/build.xml
index a8e8db1487..88990f3425 100644
--- a/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/build.xml
+++ b/integration/src/main/java/com/sun/ts/tests/integration/sec/propagation/build.xml
@@ -1,7 +1,7 @@