-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Session serialization, I think.
PostPosted: Fri Jun 02, 2006 3:02 pm 
Newbie

Joined: Fri Jun 02, 2006 2:49 pm
Posts: 13
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.