Hello.
Within our command we nned to get a JCR session in order to update some data.
We use the Context provided to the execute() method.
The following returns a null object:
[code]Session configSession = ctx.getJCRSession("config");[/code]
By now we use deprectated HierarchyManager:
[code]Session configSession =
ctx.getHierarchyManager("config").getWorkspace().getSession();[/code]
Is there any other way to access JCR from a Command?
Regards.
Xavi
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=3b2df54b-3c23-4941-b6c6-2527df1cec6e
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------