Greetings Devs,
I tried using openejb on my embedded application, while it does seems
to work when I ran on eclipse when I packaged it to a
jar-with-dependencies with maven, On Console when I tried run the
jar-with-dependencies the openejb container tries to scan unwanted
dependencies since it consists not just app content but every other
dependency and fail miserably. So I am guessing we could filter via
package name ? but couldn't get it to work.
Would appreciate if you could suggest any alternatives , as I have
tried the below settings
String appContent =
MyClass.class.getProtectionDomain().getCodeSource().getLocation().toURI().toString()
prop.setProperty(DeploymentFilterable.SEARCH_CLASSPATH_FOR_DEPLOYMENTS_PROPERTY,
"true");
prop.setProperty(DeploymentFilterable.CLASSPATH_FILTER_DESCRIPTORS,
"true");
prop.setProperty(DeploymentFilterable.CLASSPATH_FILTER_SYSTEMAPPS,
"false");
prop.setProperty(DeploymentFilterable.CLASSPATH_INCLUDE,
protectedDomain);
prop.setProperty(DeploymentFilterable.PACKAGE_INCLUDE,
".*/com/mypackage/ejb.*");
prop.setProperty(DeploymentFilterable.CLASSPATH_EXCLUDE, ".*");
prop.setProperty(DeploymentFilterable.PACKAGE_EXCLUDE, ".*");
Please advice as I couldn't find a material to resolve. Thanks.
Application discovery via the classpath
[http://tomee.apache.org/application-discovery-via-the-classpath.html]
Thanks
Charms