I want to make a log in function to my site. But the data of the users and roles must come from an DataBase. In JBoss 2 I used to call a realm with all its objects. The code placed in jetty.xml. The point is that I have one class for connecting to the Database (in that realm) and I don't want to duplicate the connection data in to a xml file for login. Is this possible in JBoss 3?