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

Passing Reference

 
Ali Ragi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In spec,
A local home object reference cannot be passed as an argument or result of a method on an enterprise bean�s remote home or remote interface.

How about reversed: A remote home object reference can OR can not be passed as an argument or result of a method on an enterprise bean�s local home or remote interface?
 
Anthony Watson
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remote clients need remote homes and remote component interfaces. Local clients need local homes and local component interfaces. You should never mix and match. If a client is remote, it needs both interfaces to be remote and if its local, it needs both interfaces to be local.
 
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!