Maybe try reversing the order,
openejb.exclude-include.order=exclude-include
And to exclude even when no descriptors are found,
openejb.deployments.classpath.filter.descriptors=true
But try one at a time, so if it works you know which one.
Andy.
On 21/11/2014 06:20, Mansour Al Akeel wrote:
I need to start EJB container in embedded mode to load JPA Entities
and create tables. The problem I am facing is that it loads any EJBs
in the classpath. I am trying to prevent loading and deploying these
EJBs by the following:
properties.put("openejb.exclude-include.order", "include-exclude");
properties.put("openejb.deployments.classpath.include", "");
properties.put("openejb.deployments.classpath.exclude", ".*");
properties.put("openejb.deployments.classpath ", false);
Still no luck. Is there a way to prevent auto deployment ??
Thank you.
--
Andy Gumbrecht
https://twitter.com/AndyGeeDe
http://www.tomitribe.com