Will the JavaBean and the EJB SLSB located on a different machine. If you want to achieve this, you call the EJB via JNDI.
Yes, they are located in different machines.
So JBoss has no built in support for that and I have to use JNDI?
If JBoss has a built in support you won't be able to deploy it on another app-server won't you? Yes JNDI is your best option for this matter. :-)