I try two applications made in Java using Tomcat 6 and are in different contexts strong> but one interacts with the other because they are integrated, I need one to pass their session to the other context, or that contextA can set values in context B.
Ex:
ContextA. sessao.setAttribute("user", u);
ContextB. User u = (User)sessao.getAttribute("user");