If you want a system session you should just use UnrestrictedSessionRunner and let it do what's needed. If you want to login as a specific user you should use the new loginAs method in future Nuxeo 5.4.1 or copy it in older versions. See https://jira.nuxeo.org/browse/NXP-6169 and the NuxeoAuthenticationFilter code changes.
You should NEVER have to call JBoss classes by hand. --- Mailing list: [email protected] Forum: http://forum.nuxeo.org/f/1/
