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]>
----------------------------------------------------------------