1 Reply Latest reply on Mar 30, 2006 8:23 AM by kcounsell

    how to use a different persistence-unit for testing?

    liudan2005

      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?