two previous mentionned hacks are true under windows too the main differences are the following ones: 1) need of javaagent for not enhanced JPA entity with OpenJPA (not recommanded BTW) 2) endorsed dir should be empty for java 7 (done automatically in startup scripts switching of folder but doing it manually is fine too if you want to keep "endorsed" dir)
*Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/9/11 Alex The Rocker <[email protected]> > Hello, > > Your (kind) answers seem to focus on UNIX starter, but again what' the risk > of starting TomEE+ on Windows using tomcat7.exe / tomcat7w.exe for service > registration ? > > To clarify my need: I try to make people believe in TomEE+ can be an easy > replacement for Tomcat (and after, lobby for EE feature to be used). > For this, I'm trying to replace Tomcat by TomEE in an app without even > modifying this installer's app (but I can create a media for this app with > TomEE expanded in same dir as Tomcat used to be). > Devil is in details, I don't know if TomEE's registration as a Windows > service can work strictly like Tomcat's, any clue appreciated ! > > > > On Tue, Sep 11, 2012 at 10:04 PM, Romain Manni-Bucau > <[email protected]>wrote: > > > not really we hack for endorsed dir for java 7 too (in catalina.sh) > > > > *Romain Manni-Bucau* > > *Twitter: @rmannibucau* > > *Blog: http://rmannibucau.wordpress.com* > > > > > > > > > > 2012/9/11 David Blevins <[email protected]> > > > > > > > > On Sep 9, 2012, at 1:07 PM, Alex The Rocker wrote: > > > > > > > Hello, > > > > > > > > I am testing the drop-in replacement of Tomcat by TomEE+ for a server > > > > application running on 64-bit Windows > > > > For the moment, I want minimal changes in this application's > installer. > > > > > > > > This application's installer registers the application server as a > > > service. > > > > > > > > I noticed that tomcat7.exe is missing from Windows (ZIP) distribution > > of > > > > TomEE+ 1.0.1, there's TomEE.amd64.exe and a service.bat stuff. > > > > > > > > I am wondering if I would run into a wall by just copying Tomcat > > 7.0.27's > > > > tomcat7.exe into bin/ directory and let the application installer > > > register > > > > the service as if TomEE+ were Tomcat. > > > > > > > > Any opinion? > > > > > > > > What's different between TomEE.amd64.exe & tomcat7.exe, appart form > the > > > > exe's name? > > > > > > > > > > Andy Gumbrecht (Cc'ed) made it IIRC. I know in terms of the > > > ./catalina.sh, the only change we make is adding the -javaagent flag > > which > > > is only required if using OpenJPA as your JPA provider and you want > > runtime > > > JPA enhancement (as opposed to doing it at build time). > > > > > > I suspect that's the main difference, but probably Andy can say for > > > certain. > > > > > > > > > -David > > > > > > > > >
