Hi. I have Tomcat 4.0.1 windows edition (OS Win2k) with xml-Axis. I configured and this team working fine. I have problem with user authentication. I am wroting test application with user authenticatation. I have Oracle database. During starting Tomcat server I am using Tomcat of RealmJDBC mechanism and my servlet to connect to database (It is working). In my Web application I want to use RealmJDBC of Tomcat mechanism. Do anyone to know how can do this? I dont know haw can I get justr created (during startup application server) JDBC object from Tomcat. I don't how can/ should to realize authentication to Web Service- what solution is the best.
PS. RealmJDBC is described in Tomcat documentation like a smart authentication mechanism. Develeper must define two tables: one with users and passwords and second with roles associated with users. In web application developer should onlu invoke method authenticate(params) to verify user. Realm mechanism should check tables and return logging result. In web application is not necessery to implement additional connection to database. Thanks for anyone advice. Regards Peter