Thanks Gene,
> You can do it if you manually proxy your bean class to your dynamic proxy,
> but you cannot just supply an interface and simply tell the container to use
> the dynamic proxy as the bean class at runtime. This is a limitation of
> declarative typing of the EJB specs.
okay, so it cannot be done,... -- one of the wild guess I actually
have had was it might be possible to specify the name of the
Factory-class in place of the actual class name in place of
<ejb-class>...</ejb-class> tag. and somehow(?) tell the container
that it is for the name of the Factory-class... (<= maybe it was a
silly idea/imagination anyway :p)
one of the other way I was thinking is to replace (or sit in front of)
the original ClassLoader used for Beans class loading, and do the
proxy class generation within this custom classloader, if the
classname requested appears to be "MyBeanProxy" ... but then this was
rejected too early on, partly because it can possibly be container
specific...
> thought of this idea before and wished I could do the same thing... no
> more bean class writing! However, CMP 2.0 is slowly converging towards
> this: in 2.0, you provide an abstract class where all getters and setters
> are also abstract. This is ALMOST as bare-bone as an interface!
hmm., maybe close - but does not apply exactly to my case...
thank you very much :)
kenji
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".