JBAS014134 error when calling getSessionContext().getEJBObject() from EJB3 bean
Issue
We need call something like this in out EJB3 ejb.
public void example() {
getSessionContext().getEJBObject();
}
But this method failed.
JBAS014134: EJB Invocation failed on component HelloWorld for method public abstract java.lang.String test.HelloWorldRemote.sayHello(java.lang.String): java.lang.IllegalStateException: JBAS014354: Bean HelloWorld does not have an EJBObject
at org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.getEJBObject(StatefulSessionComponent.java:185)
How we can get this Reference?
Environment
- JBoss Enterprise Application Platform (EAP) 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.