-->
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: Multiple Database users, JDBC (Datasource), MBean Question
PostPosted: Thu Jul 29, 2004 2:58 pm 
Beginner
Beginner

Joined: Mon Jun 21, 2004 2:41 pm
Posts: 40
I've got a requirement for our new product in that every transaction with the database (ie connection) should be opened to the database as that user.

Right now I have a datasource defined in mssql-ds.xml that specifies a specific user. How can I make this dynamic?

Has anyone else had to do this?

I am using the MBean for Hibernate as this article says, http://www.hibernate.org/66.html

Thank you,
David


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 29, 2004 3:00 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Hm, you will have to write your own HibernateService MBean to wire it up. This is called "proxy authentication", by the way. No, I don't know how to do it. I'd use a custom ConnectionProvider if Hibernate wouldn't run as an MBean.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.