This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Currently I have: 1. Security Constraint on a folder (WebApps -> Protected). 2. Realm under server.xml so I can authenticate users listed in MySQL database.
Everything stated above still works fine, however, now I have another MySQL database (To Avoid Confustion lets call it PersonalDB) for which I have to write an application. For obvious reasons, I have to protect the application, so I decided to use security constraint to authenticate users.
Here is the problem: 1. The username and password are listed in the PersonalDB 2. I am already using a Realm for my first application 3. I am not sure if it's possible to add another Realm
I don't know how I can properly authenticate the users for my second application. Any help or information will be greatly appreciated.
I do not think configuration of multiple releams is possible , but you can always have a custom releam that would check the second database for authentication information if it doesnot find the required information in the first one.