posted 4 years ago
It depends on the EJB. EHB3 supports both local and remote EJBs. Most EJBs, it turned out, were best as local EJBs, but not all.
Remote EJBs depend on an EJB protocol server (these days it's RMI-IIOP). Wildfly, being a full-stack JEE server includes that service, so to use a remote EJB, you'd look up the EJB as documented in the Wildfly documentation.
A local EJB is located within the webapp that uses it, so the webapp already knows how to find it using a JPA EntityManager.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer