> I see a potential ordering issue here: the datasource
> has to be created
> before persistence unit that uses it is loaded. Does
> it work in
> non-embedded case?
Huh; I don't know. Have to say I was just following simple instructions :-) that said I could put a @DataSourceDefinition on an EJB class. It seemed like a really quick and dirty and easy way to set up H2 for an embedded unit test.
I think the spec doesn't prohibit this (EE 5.17).
Best,
Laird
[Message sent by forum member 'ljnelson']
http://forums.java.net/jive/thread.jspa?messageID=396095