Jeff wrote:
<Snip>
Perhaps I have misunderstood, but it should be possible to have both factory
create methods return the bean's Business interface. Since both the ejb and
non-ejb versions implement this interface, this should be possible, should
it not?
For instance, both MyClassNormal and MyClassEJB implement the interface
MyClassBusiness. Hence both MyClassNormalFactory.create() and
MyClassEJBFactory.create() should return a MyClassBusiness. Since
MyClassBusiness does not inherit from EJBObject, all is well from the client
point of view. Should you need access to finder methods, you could export
those from your class factories as well, by returning collections or
enumerations of MyClassBusiness interfaces. Actually, come to think of it,
a clean way doing it would be to create a ClassFactoryFactory to generate
either EJB or Normal ClassFactories on demand...
</Snip>
The problem is that the MyClassEJBFactory creates an instance of the remote
interface using MyClassHome. When I try to fave the MyClassEJBFactory return
the remote interface, I get a compile time error saying that the factory
method
needs to return MyClassBusiness.
Any opinions expressed in this email are those of the individual and not necessarily
Knowledge Management Software plc. This email and any files transmitted with it are
confidential and solely for the use of the intended recipient.
If you are not the intended recipient or the person responsible for delivering to the
intended recipient, be advised that you have received this email in error and that any
use is strictly prohibited. If you have received this email in error please notify
the Systems Manager by telephone on 44 (0) 161 227 9009
===========================================================================
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".