I'm new to developing in Java.
I've been browsing the internet for some time now, but can't find what I'm looking for.
I need to create a Java Web application using JEE5 and Glassfish v3, which is capable of selecting the available databases configured within Glassfish.
So, first a login page is displayed with 3 fields : username, password and a selectlist of available databases.
I would also like to use JPA/JSP with this. I later want to do some basic CRUD. The databases that I've added in Glassfish are all copies of eachother ( same DDL, different content).

Could somebody give me some advise on this ?
Thanks a lot,