Jahia Dev Forum > Live & Default workspaces...

0 (0 Good)
0 (0 Bad)

Live & Default workspaces (Jahia 6.5)

by  robertito »  2011/06/30 12:27


I'm using Jahia 6.5 Community DEMOPACK and trying to get some "content out of context" from the default (when in edit mode) and from the live (when in live mode) workspaces programmatically.

Are the workspaces mirrored? When I try to get from default with path /sites/MY_SITE/content, it works fine, but on live, I got a PathNotFound exception.

I am using something like:


Credentials credentials = JahiaLoginModule.getCredentials(" system ");
JCRSessionWrapper session = new JCRSessionWrapper(null, credentials, true, "live", null, JCRTemplate.getInstance().getSessionFactory(), null);
JCRNodeWrapper node = session.getNode("/" + nodePath);
and running this code as user system with the JCRTemplate.getInstance().doExecuteWithSystemSession(...) method.

Thank you very much in advance.
Kind Regards,


Number of messages  13
Registration date

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page