I use EJBs in my spring application. To inject EJB in my controller I do as below.
@EJB(mappedName = "java:global/myAppName/MyBean") MyBean myBean; It works fine. Now when I deploy my application in production, It fails to find EJB. Because there is no context in my production environment, EJBs get deployed in TomEE like "java:global//MyBean". So the spring controller cannot find the EJBs. Is there any better way to inject EJBs?
