Peter Shillan <[EMAIL PROTECTED]> wrote:

>I would appreciate a little explanation on how CMP is implemented. I assume
>that the ejbLoad() and ejbStore() etc methods are re-written in some way to
>include some SQL statements which will store and load the beans. Can someone
>explain the mechanism to me in more detail?

Any persistence manager in jboss has to implement the interface

  org.jboss.ejb.EntityPersistenceStore

The JAWS implementation is in

  org.jboss.ejb.plugins.jaws.JAWSPersistenceManager

I've just committed a refactored implementation of this to CVS. This
uses a Factory to create Command objects, one for each method in the
EntityPersistenceStore interface. 

It should be possible to swap the Factory and Commands to work with a
different persistence mechanism. 

The redesign proposal was in:

    http://www.kpi.com.au/jawsarchive/0005/0043.html

Things changed a bit as I worked through it. I gave brief details of the
implemented design in:

    http://www.kpi.com.au/jawsarchive/0008/0011.html

I shall be catching up on the javadoc comments over the next few days.

regards

   Justin
-- 
Justin Forder

Reply via email to