• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this correct?-HFEJB ch-3

 
Amit Batra
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given a remote client R that has a refernces to session beans A and B. If A is a local client to B, then A cannot pass his reference for B, to R as you cannot give your remote client a local reference.

Yet if A was a remote client to B, then A could pass on that refernce to R by sending its (B's) serialized stub? is this correct?
 
Arun Natarajan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes that is correct, A could pass its reference if it is a remote client to B.
 
steve warmer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason for this is probably because, Remote Clients insist on business methods having their arguments and return type, RMI IIOP complaint(should be serializable) but local client does not insist on this. so there is no guarantee for the remote about the client return type and arguments to be RMI IIOP complaint.
I am not very sure about the answer, please correct me if I am wrong.
[ September 27, 2006: Message edited by: steve warmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic