Unable to configure the Datasource realm through embedded tomcat jar.(not an springboot app)
On tomcat 8.x ,We have been using JDBCRealm to set the connection parameter like jdbc url, user name ,password and with these details we initialize the context and start the server . After upgrading to tomcat 10 i am unable to set the datasource since conncetion url , user name ,password is not present in DatasourceRealm class. I am aware the we should use javx.sql.datasource and some how bind that to Datasource Realm . Programatically i am unable to get the exact code on how to bind. It would be great help if someone help , Thanks in advance.