I have a EJB module in remote Glassfish server and application client in my computer. I want to connect from the application client to the remote EJB.
Here is the my EJB interface:
@Remote
public interface BookEJBRemote
{
public String getTitle();
}
Here is the my ejb:
@Stateless
public class BookEJB implements BookEJBRemote
{
@Override
public String getTitle()
{
return "Twenty Thousand Leagues Under the Sea";
}
}
I have several questions :
No matter how i try i never manage to run application client ? Can you guys put some working example? And thank you for every advises and examples?
Check this tutorial Creating a Java Stand-Alone Client. Basically you need to