You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Felipe Jaekel <fk...@gmail.com> on 2020/11/04 20:56:12 UTC

TomEE embedded

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