use of javax.ejb.EJBMetaData in project tomee by apache.
the class Complex2EjbHomeTests 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 RmiIiopCmp2Bean method returnNestedEJBMetaData.
public ObjectGraph returnNestedEJBMetaData() {
ObjectGraph data = null;
try {
final InitialContext ctx = new InitialContext();
final EncCmpHome home = (EncCmpHome) ctx.lookup("java:comp/env/cmp/rmi-iiop/home");
final EJBMetaData object = home.getEJBMetaData();
data = new ObjectGraph(object);
} catch (final Exception e) {
throw new EJBException(e);
}
return data;
}
use of javax.ejb.EJBMetaData in project tomee by apache.
the class RmiIiopCmp2Bean method returnEJBMetaData.
public EJBMetaData returnEJBMetaData() {
EJBMetaData data = null;
try {
final InitialContext ctx = new InitialContext();
final EncCmpHome home = (EncCmpHome) ctx.lookup("java:comp/env/cmp/rmi-iiop/home");
data = home.getEJBMetaData();
} catch (final Exception e) {
throw new EJBException(e);
}
return data;
}
use of javax.ejb.EJBMetaData in project tomee by apache.
the class RmiIiopCmpBean method returnNestedEJBMetaData.
public ObjectGraph returnNestedEJBMetaData() throws javax.ejb.EJBException {
ObjectGraph data = null;
try {
final InitialContext ctx = new InitialContext();
final EncCmpHome home = (EncCmpHome) ctx.lookup("java:comp/env/cmp/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 RmiIiopBmpBean method returnEJBMetaData.
public EJBMetaData returnEJBMetaData() throws javax.ejb.EJBException {
EJBMetaData data = null;
try {
final InitialContext ctx = new InitialContext();
final EncBmpHome home = (EncBmpHome) ctx.lookup("java:comp/env/bmp/rmi-iiop/home");
data = home.getEJBMetaData();
} catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
Aggregations