If your client runs in a different vm from the ejb container you need to use Remote interfaces
I checked my project settings. But the vm of jboss and the one of my app are the same!
Do you have any idea what else could be wrong?
I could be wrong, but to me it looks like you are running a standalone client? In which case there will be a separate vm for your client and for jboss whether you run both from whithin Eclipse or not
you're right. It is a standalone client. It has a main method. But does that mean that both applications are on the same vm but are remote to each other? What could I do to run my standalone app in the VM of the app server? How else should I test my local interfaces if I don't have any chance with a small test software??
Main client + app running in jboss = 2 vms :-)
One way to test your application would be to deploy an additional bean with a remote interface, calling the local interfaces you want to test. Another to create an MBean that calls the local interfaces. Alternatively you may want to look at using embedded EJB 3 during your testing cycles.
I think it will use a second entity bean!
But one further question only to be sure about that point:
If I run my application on JBOSS and use Servlets as client, I will be able to use the local interface, won't I?