If they are in same folder, you might have to wait until previous
activation finishes before starting the next one. What you are
effectively running into is
http://jira.magnolia-cms.com/browse/MAGNOLIA-2489

We will probably modify activation to deal with this condition
automatically and to wait and retry a bit later when it encounters
locked node, but I'm not sure if this can be done before 4.0/3.6.4
release.

Cheers,
Jan

On Wed, 2009-03-04 at 12:59 +0100, Matteo Pelucco wrote:
> Hi all,
> I need to activate a lot of objects in the same "pack", as explained in 
> my previous mails.
> 
> The major issue is the "Lock" problem.
> 
> My situation is:
> 
> /folder
> /folder/content-to-activate-1
> /folder/content-to-activate-2
> /folder/content-to-activate-3
> /folder/content-to-activate-4
> ...
> /folder/content-to-activate-100 (and more)
> 
> I collect nodes into a Collection and one by one I activate them.
> But I receive, sometimes,
> 
> "Can not activate /folder/content-to-activate-XX (where XX changes every 
> time...), /folder is locked on <subscriber>"
> 
> 
> I do activation using syndicator (default one):
> ***********************************************
> Syndicator syndicator = (Syndicator) 
> FactoryUtil.newInstance(Syndicator.class);
>               
> String workspace = ContentRepository.getDefaultWorkspace(repository);
>       
> syndicator.init(user, repository, workspace, rule);
> syndicator.activate(parent.getHandle(), content);
> ***********************************************
> 
> where rule is:
> 
> ***********************************************
> String[] types = {
>       ItemType.CONTENTNODE.getSystemName(),
>       ItemType.NT_METADATA,
>       ItemType.NT_RESOURCE
> };
> Rule rule = new Rule(types);
> ***********************************************
> 
> It is something related to http requests (not synchronous)?
> I saw TransactionalActivation, can it solve this trouble?
> 
> Thanks for any coming help...
> Matteo
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
-- 
Best regards,

Jan Haderka
Magnolia International Ltd.

----------------------------------------------------------------------
[email protected]                http://www.magnolia-cms.com
Magnolia®  - Simple Open Source Content Management
----------------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to