use of jakarta.ejb.EJBHome in project tomee by apache.
the class ComplexEjbObjectTests method test04_getEjbHome.
public void test04_getEjbHome() {
try {
final EJBHome home = ejbObject.getEJBHome();
assertNotNull("The EJBHome is null", home);
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
use of jakarta.ejb.EJBHome in project tomee by apache.
the class ComplexHomeHandleTests method test01_getEJBHome.
// =================================
// Test home handle methods
//
public void test01_getEJBHome() {
try {
final EJBHome home = ejbHomeHandle.getEJBHome();
assertNotNull("The EJBHome is null", home);
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
use of jakarta.ejb.EJBHome in project tomee by apache.
the class RmiIiopStatefulBean method returnEJBHome.
public EJBHome returnEJBHome() throws jakarta.ejb.EJBException {
EJBHome data = null;
try {
final InitialContext ctx = new InitialContext();
data = (EJBHome) ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
} catch (final Exception e) {
e.printStackTrace();
throw new jakarta.ejb.EJBException(e);
}
return data;
}
use of jakarta.ejb.EJBHome in project tomee by apache.
the class RmiIiopSingletonBean method returnEJBHome.
public EJBHome returnEJBHome() throws jakarta.ejb.EJBException {
EJBHome data = null;
try {
final InitialContext ctx = new InitialContext();
data = (EJBHome) ctx.lookup("java:comp/env/singleton/rmi-iiop/home");
} catch (final Exception e) {
e.printStackTrace();
throw new jakarta.ejb.EJBException(e);
}
return data;
}
use of jakarta.ejb.EJBHome in project tomee by apache.
the class RmiIiopCmp2Bean method returnEJBHome.
public EJBHome returnEJBHome() {
EJBHome data = null;
try {
final InitialContext ctx = new InitialContext();
data = (EJBHome) ctx.lookup("java:comp/env/cmp/rmi-iiop/home");
} catch (final Exception e) {
e.printStackTrace();
throw new EJBException(e);
}
return data;
}
Aggregations