Is it possibile to @Inject
a @Remote
EJB in a Web Application?
I'm running on Glassfish 5 and I'm deploying an EAR (EJB + WAR).
When I annotate the EJB interface with @Local
CDI works, with @Remote
not.
What might be the cause?
By the way, using @EJB
instead of @Inject
works flawlessly, but I'm up to solve the @Inject
issue.