Injected EJB is not behaving as an EJB when invoked

Solution Verified - Updated -

Issue

  • We deploy a @Stateful or @StatelessEJB class and @Inject it into another class. We are able to call that injected object, but we notice some problem behaviors suggesting the injected object is not properly behaving as expected per our EJB annotations and config. For example, no bean instance is being fetched from the EJB pool upon invocation and we can see concurrency issues as the same instance of the class is being shared and used across multiple threads at once.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 7.x
    • 8.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content