Hi all,
As some of you might know from my previous postings, we have a middleware
that takes EJB and complements it with some of the services that are missing
for building large scale apps. We have two modes one is "Lite" where we
don't integrate a 3rd party app server and provide only our services, and
one is "Enterprise", that integrates a 3rd party app server. We use TOPLink
for O-R and target currently WebLogic for app server, although we can use
also GemStone for which TOPLink provide a container as well.
We have prototyped in the past WebLogic integration, and used BMP since
there was no container for TOPLink. Now that there is, we're considering
using CMP. We do need to complement the app server with our own
infrastructure. One of the infrastructure pieces is a base class that all of
our developers need to extend to implement the behavior. It provides each
bean with capabilities such as multi/get and set, and other capabilities and
assure backward compatibility with our current middleware.
One of the things our base class does is some generic conversions in ejbLoad
and ejbSave (to handle persistnece of CORBA object references and alike) and
we may need to provide some generic behavior in the other EntityBean
methods. Typically I don't think the developers using our platform will need
to implement the EntityBean methods themselves, but if they do, we will
require them to invoke first the base class' version of the methods. So for
example an implementation of ejbLoad will look like this:
super.ejbLoad();
<additional behavior>
In the future we can code generate the initial implementation of a bean that
will include extending our base class and a skeleton for this
implementation, to avoid errors in forgetting to make the call to the base
class.
I'd like to get feedback for this approach, and whether you see any issues
with using CMP this way.
Thanks,
Doron
===========================================================================
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".