I get a DataSource-Instance using ServiceLocator Pattern. I use a J2EE-Server. When getting a Connection from DataSource I use a following constructor datasource.getConnection(user, password).:)
But on this place I always get an exception Application cannot override username/password specified in resource reference jdbc/dbname :(
Could somebody explain me how can I avoid this problem. I have to use different databases and it is required that passwords were handed over on request through the user.