SCJP Certification

Sun Certified Java Programmer Certification exam essentials

August 23rd, 2010

How to create an enterprise bean that allows remote access?

SCBCD, by Daisy Williams.

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 { … }

Share

Back Top

Responses to “How to create an enterprise bean that allows remote access?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*