use of javax.ejb.EJBMetaData in project tomee by apache.
the class StatelessRmiIiopTests method test46_returnEJBMetaData.
public void test46_returnEJBMetaData() {
try {
final EJBMetaData actual = ejbObject.returnEJBMetaData();
assertNotNull("The EJBMetaData returned is null", actual);
assertEquals(actual.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
assertEquals(actual.getRemoteInterfaceClass(), actual.getRemoteInterfaceClass());
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
use of javax.ejb.EJBMetaData in project tomee by apache.
the class RmiIiopSingletonBean method returnNestedEJBMetaData.
public ObjectGraph returnNestedEJBMetaData() throws javax.ejb.EJBException {
ObjectGraph data = null;
try {
final InitialContext ctx = new InitialContext();
final EncSingletonHome home = (EncSingletonHome) ctx.lookup("java:comp/env/singleton/rmi-iiop/home");
final EJBMetaData object = home.getEJBMetaData();
data = new ObjectGraph(object);
} catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
use of javax.ejb.EJBMetaData in project tomee by apache.
the class UnknownEjbHomeTests method test01_getEJBMetaData.
//===============================
// Test ejb home methods
//
public void test01_getEJBMetaData() {
try {
final EJBMetaData ejbMetaData = ejbHome.getEJBMetaData();
assertNotNull("The EJBMetaData is null", ejbMetaData);
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
use of javax.ejb.EJBMetaData in project tomee by apache.
the class Cmp2RmiIiopTests method test46_returnEJBMetaData.
public void test46_returnEJBMetaData() {
try {
final EJBMetaData actual = ejbObject.returnEJBMetaData();
assertNotNull("The EJBMetaData returned is null", actual);
assertEquals(actual.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
assertEquals(actual.getRemoteInterfaceClass(), actual.getRemoteInterfaceClass());
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
use of javax.ejb.EJBMetaData in project tomee by apache.
the class Cmp2EjbHomeTests method test01_getEJBMetaData.
//===============================
// Test ejb home methods
//
public void test01_getEJBMetaData() {
try {
final EJBMetaData ejbMetaData = ejbHome.getEJBMetaData();
assertNotNull("The EJBMetaData is null", ejbMetaData);
} catch (final Exception e) {
fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
}
Aggregations