Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static SqlSessionFactory getSqlSessionFactory() {
- HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
- ManagedNavUtils navyUtils = (ManagedNavUtils) session.getAttribute("navy");
- if (navyUtils != null && navyUtils.getLoggedInUser() != null)
- setLoggedInUser(navyUtils.getLoggedInUser());
- return factory;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement