It didnt work on my computer otherwise. The port changed because it is randomly set at the pre integration test phase.
- Romain Le 17 août 2011 14:18, "Jonathan Gallimore" <[email protected]> a écrit : > Noticed the memory change in here as well as the port change. Is this > related to the memory issues David reported a while back? Seems a shame to > have to bump the memory settings up - a small memory footprint was a good > selling point we used in the JAX London presentation. I'm happy to have a > poke around with a profiler once I've cleared the connector stuff I'm > working on. > > Jon > > On Wed, Aug 17, 2011 at 11:14 AM, <[email protected]> wrote: > >> Author: rmannibucau >> Date: Wed Aug 17 10:14:32 2011 >> New Revision: 1158610 >> >> URL: http://svn.apache.org/viewvc?rev=1158610&view=rev >> Log: >> fixing port for cdi-tomee >> >> Modified: >> openejb/trunk/openejb3/tck/cdi-tomee/pom.xml >> >> openejb/trunk/openejb3/tck/tck-common/src/main/java/org/apache/openejb/tck/impl/ContainersImplTomEE.java >> >> Modified: openejb/trunk/openejb3/tck/cdi-tomee/pom.xml >> URL: >> http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/cdi-tomee/pom.xml?rev=1158610&r1=1158609&r2=1158610&view=diff >> >> ============================================================================== >> --- openejb/trunk/openejb3/tck/cdi-tomee/pom.xml (original) >> +++ openejb/trunk/openejb3/tck/cdi-tomee/pom.xml Wed Aug 17 10:14:32 2011 >> @@ -203,8 +203,9 @@ >> <!--<openejb.server.debug>true</openejb.server.debug>--> >> <java.naming.provider.url>http://localhost: >> ${tomee.http.port}/openejb/ejb</java.naming.provider.url> >> <connect.tries>90</connect.tries> >> + <server.http.port>${tomee.http.port}</server.http.port> >> >> <server.shutdown.port>${tomee.shutdown.port}</server.shutdown.port> >> - <java.opts>-Xmx128m -XX:MaxPermSize=128m</java.opts> >> + <java.opts>-Xmx512m -Xms256m -XX:PermSize=64m >> -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m</java.opts> >> >> <openejb.home>${project.build.directory}${file.separator}apache-tomee-${project.version}</openejb.home> >> </systemPropertyVariables> >> </configuration> >> >> Modified: >> openejb/trunk/openejb3/tck/tck-common/src/main/java/org/apache/openejb/tck/impl/ContainersImplTomEE.java >> URL: >> http://svn.apache.org/viewvc/openejb/trunk/openejb3/tck/tck-common/src/main/java/org/apache/openejb/tck/impl/ContainersImplTomEE.java?rev=1158610&r1=1158609&r2=1158610&view=diff >> >> ============================================================================== >> --- >> openejb/trunk/openejb3/tck/tck-common/src/main/java/org/apache/openejb/tck/impl/ContainersImplTomEE.java >> (original) >> +++ >> openejb/trunk/openejb3/tck/tck-common/src/main/java/org/apache/openejb/tck/impl/ContainersImplTomEE.java >> Wed Aug 17 10:14:32 2011 >> @@ -55,7 +55,12 @@ public class ContainersImplTomEE impleme >> final Options options = new Options(System.getProperties()); >> Properties props = new Properties(); >> props.put(Context.INITIAL_CONTEXT_FACTORY, >> RemoteInitialContextFactory.class.getName()); >> - props.put(Context.PROVIDER_URL, options.get(Context.PROVIDER_URL," >> http://localhost:7180/openejb/ejb")); >> + String port = System.getProperty("server.http.port"); >> + if (port != null) { >> + props.put(Context.PROVIDER_URL, >> options.get(Context.PROVIDER_URL,"http://localhost:" + port + >> "/openejb/ejb")); >> + } else { >> + throw new RuntimeException("Please set the tomee port as a >> system property"); >> + } >> try { >> InitialContext context = new InitialContext(props); >> return (Deployer) >> context.lookup("openejb/DeployerBusinessRemote"); >> >> >>
