Why do you have a context name in dev/test but not in production?

On Fri, Mar 29, 2013 at 3:45 PM, Patel, Sanjay <[email protected]>wrote:

> 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?
>

Reply via email to