TomEE embedded

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TomEE embedded

Felipe Jaekel
Hi,

I'm trying to use TomEE embedded as described here:

https://tomee.apache.org/advanced/tomee-embedded/index.html

My code looks like this:

Configuration configuration = new Configuration();
configuration.setConf("src/main/tomee/conf");

try (final Container container = new
Container(configuration).deployClasspathAsWebApp())
{
System.out.println("Started on http://localhost:" +
container.getConfiguration().getHttpPort());

container.await();
}

I'd like to load a tomee.xml with my datasources, but it's not working. I
based on my arquillian.xml config and copied src/test/tomee/conf to
src/main/tomee/conf. Any ideias?

Thanks