Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EPractice Lab mock exam 3, question 11

 
Himai Minh
Ranch Hand
Posts: 1398
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I think choice a is correct, but the model answer does not say so.

My reason:


 
Himai Minh
Ranch Hand
Posts: 1398
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I can answer my own question. In GlassFish, if I don't specify the interface as @Local, by default , that interface is the bean's local interface.
But in the specification, on p.124- 125, it says differently.
1. If the bean only implements one interface and does not expose any other interfaces, that interface is a local interface unless it is annotated as @Remote.
2. If the bean class has multiple interfaces, the interfaces must explicitly be annotated by @Local/@Remote
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!