Skip to content

Instantly share code, notes, and snippets.

@OndraZizka
Created March 13, 2012 11:37
Show Gist options
  • Select an option

  • Save OndraZizka/2028282 to your computer and use it in GitHub Desktop.

Select an option

Save OndraZizka/2028282 to your computer and use it in GitHub Desktop.
* @EJB(name="ejb/myejb") org.acme.MyEjb myejb
* <p/>
* If the 'name' attribute is specified, the {@link JavaEEBeanLocator} will
* search in the JNDI registry for an EJB named 'java:comp/env/&lt;name&gt;'
* (in the example: 'java:comp/env/ejb/myejb')
* <p/>
* If the 'name' attribute is not specified the {@link JavaEEBeanLocator}
* will search in the JNDI registry for an EJB named
* 'java:comp/env/&lt;complete-class-name-of-the-ejb&gt;' (in the example:
* 'java:comp/env/com.acme.MyEjb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment