To access the database, you must specify the database data in the conf file.
If the database works, everything works fine.
If the database does not work, playback throws an exception that I cannot control.
I would like to conditionally connect to the database. Suppose I only want to connect to the database if a flag is set somewhere. Is there a more manual way to connect to the database in Play?
Update: I think I was not very clear.
I want the application not to be interrupted if the database is down and retrieving data from other alternative sources. How can I accomplish this in PLAY?
rahul source share