CloseGet handles to Notes objects within your own bean class
package com.beans;
import javax.faces.context.FacesContext;
import lotus.domino.Session;
public class MyBeanClass {
public MyBeanClass() {
}
// retrieve handle to a Notes-Domino object in the bean class
public static Session getCurrentSession() {
FacesContext context = FacesContext.getCurrentInstance();
return (Session) context.getApplication().getVariableResolver()
.resolveVariable(context, "session");
}
}
Tagged with bean session class