use of org.apache.openejb.test.stateless.BasicStatelessBusinessRemote in project tomee by apache.
the class ContextLookupStatefulBean method lookupStatelessBusinessRemote.
public void lookupStatelessBusinessRemote() throws TestFailureException {
try {
try {
final BasicStatelessBusinessRemote object = (BasicStatelessBusinessRemote) ejbContext.lookup("stateful/beanReferences/stateless-business-remote");
Assert.assertNotNull("The EJB BusinessRemote is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.stateless.BasicStatelessBusinessRemote in project tomee by apache.
the class ContextLookupStatefulPojoBean method lookupStatelessBusinessRemote.
public void lookupStatelessBusinessRemote() throws TestFailureException {
try {
try {
final BasicStatelessBusinessRemote object = (BasicStatelessBusinessRemote) ejbContext.lookup("stateful/beanReferences/stateless-business-remote");
Assert.assertNotNull("The EJB BusinessRemote is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.stateless.BasicStatelessBusinessRemote in project tomee by apache.
the class EncStatefulBean method lookupStatelessBusinessRemote.
public void lookupStatelessBusinessRemote() throws TestFailureException {
try {
try {
final InitialContext ctx = new InitialContext();
Assert.assertNotNull("The InitialContext is null", ctx);
final BasicStatelessBusinessRemote object = (BasicStatelessBusinessRemote) ctx.lookup("java:comp/env/stateful/beanReferences/stateless-business-remote");
Assert.assertNotNull("The EJB BusinessRemote is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.stateless.BasicStatelessBusinessRemote in project tomee by apache.
the class ContextLookupMdbPojoBean method lookupStatelessBusinessRemote.
public void lookupStatelessBusinessRemote() throws TestFailureException {
try {
try {
final BasicStatelessBusinessRemote object = (BasicStatelessBusinessRemote) getMessageDrivenContext().lookup("stateless/beanReferences/stateless-business-remote");
Assert.assertNotNull("The EJB BusinessRemote is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.stateless.BasicStatelessBusinessRemote in project tomee by apache.
the class ContextLookupCmpBean method lookupStatelessBusinessRemote.
public void lookupStatelessBusinessRemote() throws TestFailureException {
try {
try {
final BasicStatelessBusinessRemote object = (BasicStatelessBusinessRemote) ejbContext.lookup("entity/cmp/beanReferences/stateless-business-remote");
Assert.assertNotNull("The EJB BusinessRemote is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
Aggregations