WildFly JNDI lookup for local EJB deployed in a WAR
问题 I'm using WildFly 8.1.0 Final release. My application is a JavaEE web app deployed in a WAR (there is no EJB module .ear). I want to programmatically invoke local EJB with his name using JNDI. The EJB are just annotated with @Stateless (there is no Local or Remote interfaces) I try below function: private <E extends DomainObject> CrudService<E> lookUp(Class<E> cl) { try { final Hashtable jndiProperties = new Hashtable(); jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client