I think you can do sth like that :
LoginContext loginContext = null;
CoreSession session = null;
try {
loginContext = Framework.login();
RepositoryManager mgr =
Framework.getService(RepositoryManager.class);
Repository repository = mgr.getDefaultRepository();
if (repository != null) {
session = repository.open();
}
if (session == null) {
return;
}
...
--
Posted by "seb.chevallier" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread:
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3529#10799>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm