aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1520
    
  22

Try this:
Regards,
Frits
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

Thanks Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How use apply @Remote/@locate on Session bean Implementation class
 
Similar Threads
EJB-StatefulSessionBean
[EJB3.0] Providing both Remote and local views to the same Session Bean
java.rmi.RemoteExcepion. Working with StatefulSessionBean
statefulsessionbean
StatefulSessionBean - regarding