JBAS014134 error when calling getSessionContext().getEJBObject() from EJB3 bean

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.