well typically in prod you'll provide a tomee.xml with

<Resource type="DataSource" id="foo">
 JdbcDriver = ...
 UserName = ...
 ....
</Resource>

and in arquillian you'll provide in arquillian.xml:

<property name="properties">
   foo = new://Resource?type=DataSource
   foo.JdbcDriver = ...
   foo.JdbcUrl = jdbc:hsqldb:mem:foo
 ....
</property>



*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/16 Jesse Farinacci <[email protected]>

> Greetings,
>
> On Tue, Oct 16, 2012 at 3:59 PM, Romain Manni-Bucau
> <[email protected]> wrote:
> > resources.xml can work
> >
> > personally i use tomee.xml for prod and arquillian.xml (attribute
> > properties) to override it in tests
>
> I was actually hoping for a more complete example. Some of the links
> on the http://tomee.apache.org site are 404ing, including examples.
>
>
> http://validator.w3.org/checklink?uri=http%3A%2F%2Ftomee.apache.org%2Fexamples-trunk%2Findex.html&summary=on&hide_type=all&depth=&check=Check
>
> Also, there is no example using JNDI on that page anyway.
>
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>

Reply via email to