java - How to set system properties of embedded tomee? -
i have read link: embedded configuration , trying set "openejb.deployments.classpath=true"
this code:
public class run { private static ejbcontainer ejbcontainer; public static void main( string[] args ) throws namingexception, interruptedexception, ioexception { properties props = new properties(); props.setproperty(ejbcontainer.provider, "tomee-embedded"); props.setproperty("openejb.deployments.classpath", "true"); ejbcontainer = ejbcontainer.createejbcontainer(props); }
}
pom.xml:
<dependency> <groupid>org.apache.openejb</groupid> <artifactid>tomee-embedded</artifactid> <version>1.6.0.2</version> </dependency>
but still outputs like:
info - openejb configuration file 'c:\cygwin\tmp\apache-tomee1917201117325246334-home\conf\openejb.xml' info - configuring service(id=tomcat security service, type=securityservice, provider-id=tomcat security service) info - configuring service(id=default transaction manager, type=transactionmanager, provider-id=default transaction manager) info - using 'openejb.system.apps=false' info - using 'openejb.deployments.classpath=false' info - creating transactionmanager(id=default transaction manager)
did miss something?
tomee embedded sets property later (after tomee started , logged when tomee starts). property correctly set.
Comments
Post a Comment