Oops, my bad... Local interfaces can be cast directly:
MyLocal local = (MyLocal) ctx.lookup("MyBean/local");
Probably a "narrow" would even result in error.
By the way, with EJB3, the "narrow" is even for remote interfaces no longer
required, direct casting is possible.
And one more thing: a Unit test probably means that you are using a remote application
client? Then, shouldn't you use the remote interface?
Best regards
Wolfgang
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220939#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...