-->
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.  [ 2 posts ] 
Author Message
 Post subject: Gestion de plusieurs logins database
PostPosted: Wed Jan 25, 2006 6:19 am 
Newbie

Joined: Wed Jan 25, 2006 6:07 am
Posts: 2
Location: France (Paris & Aix)
Hello,
Est-ce que Hibernate peut gérer le cas suivant : pour chaque client je souhaite ouvrir une connexion bd avec le login de ce client. Donc ne pas gérer un pool de connexions anonyme mais savoir exactement qui est connecté à la bd.
Merci d'avance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 25, 2006 8:39 am 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
De mémoire je crois que tu peux fournir tes connexions à hibernate si tu le souhaite en faisant un openSession(conn)
Sinon tu peux aussi t'amuser à faire ta propre DataSource qui va chercher le login/password dans une variable threadlocal et qui ouvre une connexion pour ce client. Ca ne doit pas être trop compliqué à faire

_________________
Seb
(Please don't forget to give credits if you found this answer useful :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.