I have a servlet application deployed on , say , server A and EJB app on server B . How do i invoke the ejb from the client web application on server A . Both application are running on Glassfish 3 . Can i use DI to inject remote resources . If not , i guess i have to use JNDI . Any suggestion and tutorial please .