Accessing the Notes Session Object in the Java Backend

Accessing the Notes Session Object in the Java Backend

You can access the (Notes-) Session Java Object with the following function:
     /*
     * Returns the current Notes session instance of the Javascript engine
     *
     * @return Session
     */
    public static Session getCurrentSession() {
        FacesContext context = FacesContext.getCurrentInstance();
        return (Session) context.getApplication().getVariableResolver()
                .resolveVariable(context, "session");
    }  

Leave a Reply

comment-avatar

*