[jboss-user] [EJB 3.0] - Re: Unit test EJB3 Exception
Wolfgang Knauf
do-not-reply at jboss.com
Wed Mar 25 10:46:13 EDT 2009
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#4220939
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220939
More information about the jboss-user
mailing list