Marcin,
the strategy you suggest should also work and is especially good for
prototyping or smaller projects.
In our case where we have a huge application with (1.5 Mio LoC, 1000
EJBs, 100 database tables with complex relationships) we cannot drop
(or
empty) and create tables in junit
I already had the same issue discussed here:
http://www.nabble.com/Bind-Datasource-to-specific-jndi-name-td19391707.html
I haven't found a really sexy solution at this time, my workarounds are
using a ServiceLocator to do the lookups. I have to change all of my code,
replacing