Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Narrowing vs Casting  RSS feed

 
vijay kumar
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the differece between narrow an Object and Typecasting.

Some app server supports TypeCasting to Home Interface.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it really is sort of the same. The narrowing part is to make it compliant with CORBA.

With EJB 3.0 this is changed. You just do a regular lookup and then just cast to your type.

Mark
 
vijay kumar
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

THANKS MARKER
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!