Posted by
Daisy Williams
Aug
26
A remote client is a location independent client of an enterprise bean. A client that runs in the same JVM as a bean instance uses the same API to access the bean as a client that runs in a different JVM on the same or different machine. The remote client uses a remote interface that specifies the remote business methods that a client can call on an enterprise bean. It also uses a remote home interface that specifies the methods used by remote clients for locating, creating, and removing instances of enterprise bean classes. The following are the characteristics of a remote client:
It is allowed to run on a different machine and a different Java virtual machine (JVM) than the enterprise bean it accesses.
Posted by
Daisy Williams
Aug
25
A local client of an enterprise bean is location dependent. It provides access to an enterprise bean that requires both the local client and the enterprise bean that provides the local client view to be in the same JVM. A local client must have the following characteristics:
The client must run on the same JVM as the enterprise bean it accesses.
It can be a web component or another enterprise bean.
The location of the enterprise bean that the local client accesses is not transparent.
Permanent link to this post (86 words, estimated 21 secs reading time)
Posted by
Daisy Williams
Aug
24
Local accessibility is the default accessibility of an enterprise bean. If the bean’s business interface is not decorated with @Local or @Remote, and the bean class does not specify the interface using @Local or @Remote, the business interface is by default a local interface. An enterprise bean that allows only local access can be created in any of the following two ways:
By annotating the business interface of the enterprise bean as a @Local interface:
@Local
public interface InterfaceName { … }
By decorating the bean class with @Local and specifying the interface name.
This is a preview of
How to build an enterprise bean that allows only local access?
.
Read the full post (104 words, estimated 25 secs reading time)
Posted by
Daisy Williams
Aug
23
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 { … }
Permanent link to this post (79 words, estimated 19 secs reading time)