Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Mohit G Gupta
Ranch Hand
Posts: 634
Chrome Eclipse IDE Java
  • 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
Posts: 2986
222
Android Chrome Eclipse IDE
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frits
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!