it would be helpful if there is any example available.Yes it would - I don't think one exists.
jsmith wrote:That's my main beef with using remote EJB invocations from client applications, you need all those server specific dependencies just to be able to make it work. But if you turn said EJB into a JAX-WS webservice... you need none at all, plus the setup code is a whole lot easier.
There seems to be a few different ways you can get an client to talk to a GlassFish EJB server.
1. Look at http://edwin.baculsoft.com/2010/09/a-simple-java-client-server-application-using-ejb3-and-glassfish3/ and see if you can get that example to work in a JavaFX client. I couldn't believe that you would need to package 36 jars with your client app, just to talk to the server and say hello world, but that is what that blog recommends - other sources say differently though as below . . .