File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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):

 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2171
57
Android Chrome Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
Regards,
Frits
 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frits
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic