On Sunday 02 November 2003 03:35, Alexis Agahi wrote:
> This is maybe because I'm trying to consider the component as EJB/CMP.
> Anything that need to have persistent data.
> For me a compenent is an object like any other, except it features
> lifecycle interfaces. So I'm trying to imagine if a component could handle
> persistence lifecycle interface.

Hmmm...

Actually, I agree with Hammett that we have slightly different views of what a 
Component is and how it is interacting with its environment.

public void twistHead( int degrees )
{
        if( degrees > 30 || degrees < -30 )
                throw new MassivePainException( "it is Sunday." );
}


Nevertheless,

<quote>
Anything that need to have persisted data.
</quote>

Here you are argueing against yourself. If a Component needs to have persisted 
data, the Component itself is not persisted, but values of the Component is.
In this case we are back to Component Managed Persistence of its value 
objects.

<quote>
This is maybe because I'm trying to consider the component as EJB/CMP.
</quote>

Sorry to say, but if you want EJB/CMP, go to 
        http://java.sun.com/j2ee
or
        http://www.jboss.org
;o)

Sarcasm put aside, 
If you would make, for instance, Merlin EJB/CMP-like, you are facing a much 
larger challenge than having a Persistable interface.
You need to introduce runtime modifiable dependency links and likewise 
Configuration. You would need to define a transaction system and many other 
intricate mechanisms straight into Avalon Framework.
You basically need a JDO/Hibernate/OJB/whatever implementation right in the 
core. 
I don't think that is feasible, even by leveraging something like Hibernate, 
it requires massive changes, and for those who MUST HAVE it, I seriously 
think they should look at above links.

Compared to a PersistenceManager as a Component (whether coming via 
ServiceManager, Context or container extensions) is a lot easier to deal 
with. 

I hope my negativism doesn't hamper your creativity.

Niclas



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to