Just when you thought a simple cast would be enough...
The return value of the Context.lookup() method is type Object. So we’re thinking a simple cast should be enough to force the object referenced by o back to the AdviceHome implementation that we know it really is:
Get Head First EJB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.