O'Reilly logo
  • Marcus Kraus thinks this is interesting:

Next, have a look at the @EJB TheatreBox box that can be used to safely inject an EJB into your class without the need of your manually performing a JNDI lookup. This practice can be used to increase the portability of your application between different application servers where different JNDI rules might exist.

From

Cover of JBoss AS 7 Development

Note

simpler :-)