[jboss-user] [EJB 3.0] - Re: Local and Remote interfaces required in EJB3

ALRubinger do-not-reply at jboss.com
Mon Oct 16 16:36:42 EDT 2006


Sure...but wouldn't the generated interfaces have to be created at pre-compile time? And annotations provide metadata that's part of the compiled code...

anonymous wrote : Of course FooBean does not implement an interface now anymore, but invocations could be handled by some sort of dynamic proxy, right? 

OK, but when you do your lookup to the proxy that doesn't implement an interface, how would you cast it or call methods on it?

InitialContext ctx = new InitialContext(props);
  | Object obj = ctx.lookup("jndiAddress");
  | ((FooLocal)obj).foo(); // < You wouldn't be able to cast or invoke if the proxy doesn't implement an interface

Sounds like you'd just like an XDoclet-esque step for generating Java source before compilation?

S,
ALR

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978634#3978634

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978634



More information about the jboss-user mailing list