Remote access allows an enterprise bean to run on a different machine with a different Java virtual machine (JVM). An enterprise bean that allows remote access can be created in any of the following ways:
By decorating the business interface of the enterprise bean with the @Remote annotation:
@Remote
public interface InterfaceName { … }
By decorating the bean class with @Remote, and specifying the business interface or interfaces:
@Remote(InterfaceName.class)
public class BeanName implements InterfaceName { … }
Responses to “How to create an enterprise bean that allows remote access?”