If you are using Hibernate you can configure the following properties:
hibernate.connection.driver_class
hibernate.connection.url
hibernate.connection.username
hibernate.connection.password
hibernate.connection.pool_size
And simply bind them as follows:
bind(Properties.class).toInstance(...<an obj with the above props>...);
warp-persist will detect the bound props and configure JPA to use the datasource specified there. You are free to store those props anywhere you like (e.g. in a resource bundle).
Dhanji.