When my ear is deployed to jboss app server, it uses mysql database. When running SeamTest, I want to use HSql. Is it possible to do this?
Looking at seam booking example, it bind 2 datasources when runing embeded container but it only uses bookingDatasource:
Bound datasource to JNDI name 'java:/DefaultDS'
Bound datasource to JNDI name 'java:/bookingDatasource'
What I need is to use DefaultDS when running seamtest and use bookingDatasource for deployed environment. Is it possible?
Always use bookingDatasource. Just set up your production deployment environment so that it has a datasource with the same name that points to MySQL.