Scott T. Weaver
Fri, 01 Oct 2004 12:14:16 -0700
David Le Strat wrote:
All,
I have a simple question, it seems that we have 2 ways of using the current persistence plugin:
Transaction tx = registry.getPersistenceStore().getTransaction(); tx.begin(); registry.getPersistenceStore().lockForWrite(pa); pa.addUserAttribute(userAttrName, userAttrDesc); tx.commit();
or
persistenceStore.lockForWrite(internalUser); persistenceStore.getTransaction().checkpoint();
I would like to clarify the difference between the two approaches. My understanding was that they were equivalent. Is this correct?
Regards,
David.
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "Great minds discuss ideas. Average minds discuss events. Small minds discuss people." - Admiral Hyman Rickover
******************************************* * Scott T. Weaver * * <[EMAIL PROTECTED]> * * <http://www.einnovation.com> * * -------------------------------------- * * Apache Jetspeed Enterprise Portal * * Apache Pluto Portlet Container * * * * OpenEditPro, Website Content Management * * <http://www.openeditpro.com> * *******************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]