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):