I don't know how it works in AS 4.x. But the later spec compliant versions (like AS 5.x and AS 6.x) won't even allow you to cast the JNDI proxy to BarService, since that's not exposed as a business interface.
Reply to this message by going to Community
Start a new discussion in EJB3 at Community