JBoss Community

Re: Injecting POJO object to ejb session bean

created by Viggo Navarsete in EJB3 - View the full discussion

Yes you can:)

By using CDI, if supported by your container you can use the

@Inject annotation to inject a POJO. Remember that you also need a beans.xml bundled with your application, this is the way the container knows it should enable CDI for your application.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community