-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate and tomcat realms
PostPosted: Wed Nov 16, 2005 7:32 am 
Newbie

Joined: Wed Nov 16, 2005 7:19 am
Posts: 2
Hello,
I am using Hibernate from few days then I have a lot of black holes.
I am writing a Web Application on Tomcat 5.5 and i have a problem:
- Tomcat jdcrealm not use hibernate but standard jdbc database access.
I want write a custom tomcat realm that use hibernate to access user and role tables of my database.
Is anyone has resolved this kind of problem ? Do you have an example of custom tomcat Realm which use hibernate managed objects ?

Thank you very much for your help,
Excuses my poor english.

Roby


Top
 Profile  
 
 Post subject: overhead
PostPosted: Wed Nov 16, 2005 11:14 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
IMO using H to create custom realm for Tomcat would be severe overhead. If you want you of course can easily do that, it would be just regular H application wrapped into class that implements Realm interface, consult source code of any standard realm
http://tomcat.apache.org/tomcat-5.5-doc ... howto.html

I still think you may much better of with standard JDBC realm going against desired database.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 18, 2005 4:14 am 
Newbie

Joined: Wed Nov 16, 2005 7:19 am
Posts: 2
Thanks Konstantin,
excuse me, but my english is poor and I dont understand your answer.
Writing a custom tomcat realm that uses hibernate to access users database is a good or a bad idea ?

roby


Top
 Profile  
 
 Post subject: imo
PostPosted: Fri Nov 18, 2005 11:56 am 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
In my opinion it is bad idea.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 18, 2005 12:25 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Create view to adapt standard implementation, it makes sence to implement custom realm if you need to integrate some exotic authorization, but it doe's not makes sence for RDBMS.


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