tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Gumbrecht <>
Subject Re: tomee testing
Date Fri, 22 Jun 2018 11:35:15 GMT
I use a resources.xml with property replacement syntax value:-default

The default values should be the local db, and these can be overridden by
env, -D and properties for prod.


On Fri, 22 Jun 2018, 09:03 Matthew Broadhead,
<> wrote:

> i am trying to use ApplicationComposer to create some tests.  CDI is
> scanning the classes correctly but i am a little uncertain about how to
> load a test database.
> i was going to start by just loading the database as normal as it is a
> copy of production database.  but how do i specify the username and
> password or any other properties that are needed to connect to the db?
> @ContainerProperties(@ContainerProperties.Property(name = "mydb", value
> = "jdbc:mysql://localhost:3306/mydb"))
> is there a way to specify the resource in an xml file?
> another it better to start with Arquillian or
> ApplicationComposer?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message