Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. CONBW, thanks for your contribution but I must say I'm not following this post. Everything I read recently suggests dropping the use of both `@EJB` and `@ManagedBean` in favour of `@Inject` and `@Named`, respectively. By telling me I should use them, you're sending me to a place where I am even more confused. I'll do some further reading on differences between `@EJB` and `@Inject` but I believe that recommendations are published for a reason.
      singulars
    2. CO@jacekn As with most solutions in this space there isn't a right or wrong answer but there are several nuanced ones. If you are coding to EE6 then you would definately use `@Managed` and `@EJB` in EE7 you can use `@Inject` and `@Named` or you can do it the EE6 way. EE7 moves away from the use of `@Managed` because it was seen as extraneous, much the same way the EE6 requirement of an empty beans.xml to enable the CDI container was dropped in EE7.
      singulars
    3. CO@jacekn Subjectively, I prefer using `@EJB` for my TX management logic, however, because of the short comings of the the EJB API back in the pre EE5 days they got a bad name. The recent push to add TX mgmnt into CDI is to some extent an effort to market EE as a stack which does not require the 'evil' EJB word. As of EE7 CDI TX support is not as feature rich and powerful as the EJB container and IMHO the EJB API is just as easy if not easier to work with. David Levins (TomEE, OpenEJB, etc.) has a good comparison here http://stackoverflow.com/questions/13487987/where-to-use-ejb-3-1-and-cdi
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload