• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Why JDBCRealm??

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am very much excited to know as to what are the advantages of JDBCRealm?? What is the difference between Container Manages Security(CMS) and Bean Managed Security(BMS?? Is CMS having any advantage over BMS??

Thank you
Vikas
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you talking about Tomcat? I'm not sure this is strictly a JDBC question.

I usually refer to it as programatic or declarative security i.e. security declared in code (maybe even beans) or in the container declaration or configuration. JDBCRealm is one way of implementing declarative security in Tomcat.

It is intially easier to manage security by writing the code into the page, but this quickly becomes nightmarish, particularly when you have some pages that are secure and some that aren't, and some that have a kind of hybrid mixture.

Personally my choice to always use the declarative kind. You then write minor code to manage code changes based on user roles, but you do that in the programming solution anyway.

Dave
 
author & internet detective
Posts: 41184
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vikas,
I agree with David. Moving to Tomcat.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic