Cannot use @In to inject Seam 2 component into an EJB

Solution Verified - Updated -

Issue

We have a seam web application, and we need access to automatic generated components through EJB3 for re-use as entities, and all generated logic with seam-gen.

We get a NullPointerException when accessing an @In injected value

class MyEjb {
 @In MyComponent component;

 ...
}

Environment

  • JBoss Enterprise Application Platform (EAP) 5
  • Seam 2.2

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