I am building a play application and want to configure Apache Jena TDB, however I am also swapping between this database and a relational database in postgresql. I have the postgresql database configured correctly. This is a two part question:
What is the best way to configure two databases that will be used interchangeably, not concurrently. It seems there are two general options in play 2, I could either configure the databases on separate servers (seems like the best option for running databases concurrently). Or the option I am leaning toward is configuring both databases under database configuration then setting a global object to the database I want to use and having if - else statements in the model to determine which dataset to use. Any advice on which design might work better for swapping between two databases?
What driver do I need to use for my TDB configuration? I tried:
db.tdb.driver=org.apache.jena.jena-jdbc-driver-tdb db.tdb.url="jdbc:jena:tdb:location=/localhost/application" db.tdb.user=tdb db.tdb.password=password
However, play does not recognize this driver. Does anyone know what driver works for play? I am using Jena 2.10.2. Any advice would help, thanks!
Brad