• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

narrow() on EJBObject.getEJBHome()

 
Micheal Jacob
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

EJBObject.getEJBHome() returns EJBHome,
Do we need to use narrow() here ... ??

BTW, I understand we have to use narrow when we get getEJBHome in HomeHandle class.

Thanks.

Micheal.
 
Anand Wadhwani
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my opinion, anything used in a client code that does not returns exact business component/home interface classes (e.g. Advice / AdviceHome) that would need cast & narrow. Any wrapped object type (Object, EJBObect, EJBHome) came from server are not IIOP-compliant and need cast & narrow.

Therefore it would be needed in your example as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic