-->
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.  [ 9 posts ] 

Do you combine user supplied connections and long sessions in your application?
Poll ended at Thu Dec 29, 2005 3:37 am
I don't supply my own connections 68%  68%  [ 17 ]
I do supply my own connections, but do not combine this with long running sessions 16%  16%  [ 4 ]
I do combine user supplied connections and long running sessions 16%  16%  [ 4 ]
Total votes : 25
Author Message
 Post subject: limiting scope of user supplied connections?
PostPosted: Thu Dec 08, 2005 3:37 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
This is really only of interest to those of you using Hibernate via the "user supplied connection" approach; i.e. you call SessionFactory.openSession(Connection). And more specifically, those of you that use this approach in conjunction with "long running sessions".

The proposed change is to only accept these user supplied connections in openSession() and to no longer allow disconnect()/reconnect(Connection) sematics. This would align the usage pattern more with recent changes to the non user supplied connection approach.

Anyway, we are thinking of deprecating (and eventually removing) the corrolary methods on Session which allow "long sessions" to be used with this approach: Session.disconnect(), Session.reconnect(Connection), and Session.isConnected() methods. Disconnect/reconnect semantics are now implicit when not using user supplied connections, hence the desire to eventually remove these methods.


Last edited by steve on Thu Jan 25, 2007 11:02 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 8:17 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It should be noted that an alternative way to supply your own connections is a custom ConnectionProvider, in both cases of short or extended Sessions.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 10:40 am 
Newbie

Joined: Wed Dec 14, 2005 6:50 am
Posts: 17
Hi, how can i vote?

We do use "user supplied connection".

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 5:31 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
I put a time limit on the voting...

That's fine if you really want to use supplied connections. That's not what is being discussed here. What we are discussing is user-supplied connections in conjunction with the so-called "long running sessions" (i.e., using disconnect() and reconnect() between requests).

AFAICT this is already a decided issue; I have seen zero cases thus far where this is required considering the same functionality can be achieved by plugging in a custom ConnectionProvider in every case that I've seen.


Top
 Profile  
 
 Post subject: User supplied Connections?
PostPosted: Mon Jun 05, 2006 5:53 am 
Beginner
Beginner

Joined: Wed May 17, 2006 3:38 am
Posts: 45
I believe and it can be seen from the voting, that "User supplied Connections" is not a common approach and majority case suffices using the default....may I know what special circumstances warrant such apprroach as "User supplied Connections"?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 10:36 pm 
Newbie

Joined: Sun May 28, 2006 11:24 am
Posts: 13
What are some best practices / decision criteria for using User supplied connections vs Hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 3:24 am 
Beginner
Beginner

Joined: Thu Jun 15, 2006 5:31 am
Posts: 21
Can I have a credit? - the forum isnt sending emails out and I have a question as to why the goddam net.sf.ehcache.hibernate.EhCacheProvider library is not found with the jboss distribution.

Of course I would download it but the EhCacheProvider on sourceforge only as a .tgz extension which appears corrupted as I can only get 10-12 files out of it. Freaking unfriendly.

Speaking of unfriendly, did I mention how ANNOYING this credit system is.

Oh yes, I get it, please shut up unless you are helping. Well, I am not sure whose bright idea that was but it really goes against the grain of open source. Not to mention making the link the user forum greyed and unuser friendly to find. Is this Red Hat becoming a Microsoft issue or what?

Vent, vent, damn second level caching provider class not found, grrrrrrr.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 3:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
double posting doesn't help...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 8:24 am 
Beginner
Beginner

Joined: Thu Jun 15, 2006 5:31 am
Posts: 21
max wrote:
double posting doesn't help...


bah delete it


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

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.