This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes How use apply @Remote/@locate on Session bean Implementation class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "How use apply @Remote/@locate on Session bean Implementation class" Watch "How use apply @Remote/@locate on Session bean Implementation class" New topic
Author

How use apply @Remote/@locate on Session bean Implementation class

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

Source:Ivan Krizsan's OCPEJBD 6 (CX-311-093) study notes

2.2. Create a Stateful Session Bean with a Local Business Interface


The @Local annotation can be applied to both the session bean implementation class, in
which case it also needs to specify which interface(s) defines the local view,

The @Remote annotation can be applied to both the session bean implementation class, in
which case it also needs to specify which interface(s) defines the remote view,



Please let me know how can @Local/@Remote annotation be applied to both the session bean implementation class.
I had tried the below syntax but it seems to be incorrect(Here,StatefulSessionRemote is remote business interface and StatefulSessionBean is session bean implementation class):



OCPJP 6.0 93%
OCPJWCD 5.0 98%
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1529
    
  22

Try this:
Regards,
Frits
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

Thanks Frits
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How use apply @Remote/@locate on Session bean Implementation class
 
Similar Threads
EJB-StatefulSessionBean
StatefulSessionBean - regarding
statefulsessionbean
java.rmi.RemoteExcepion. Working with StatefulSessionBean
[EJB3.0] Providing both Remote and local views to the same Session Bean