Accessing an EJB on a different server with @EJB or @Resource annotation



I have EJBs deployed on a Glassfish server and I have a Servlet accessing them from another server (which is also a Glassfish server). Of course it's possible to look it by using JNDI lookup, but is there a way to look it up by using an annotation? So far I haven't found an example for this.





Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at