Good afternoon,
I am having this strange problem, I think it has to do with session serialization.
With jboss I have created a session bean which retrives the session factory from the jndi tree. This bean has a method called createSession() which returns a hibernate session object. If I call this method from a servlet the session object is closed. I have verifiyed the session object
is open with in the function.
method ex.
createSession()
{
return this.factory.openSession();
}
I also have another method in the bean called getObject(Session, stuff).
If I retrive the SessionFactory inside the servlet and create the session from the session factory I can pass it to the getObject function with out any problems.
EJB - >servlet session object is returned closed
servlet - > ejb works like normal.
Other ejbs can use the createSession() method with no problems
Really I have no idea what the problem is. My first assumption is session serialzation except it works the other way, and if my understanding is correct t the EJB->servlet communication is call-by-referance.
|