Porting from GAE to TomCat or another servlet server

Posted by bach on Stack Overflow See other posts from Stack Overflow or by bach
Published on 2010-04-01T07:43:00Z Indexed on 2010/04/01 9:23 UTC
Read the original article Hit count: 424

Hi guys,

I'm unhappy from GAE because - One can't have a global variable and the 'synchronize' keyword. Instead one have to catch a basically DB transcational exception and retry in a while loop - which will eat all my free CPU time and will start costing me money as I reach the google's qouata.

  1. Is it safe to use synchronize inside a doPost() in tomcat? (i guess that it's ok as long as all the servlets are running on on 1 VM?). If not in all tomcat configurations, how do I configure tomcat to make it safe?

How can I convert a GAE app to my own tomcat server? - How to install DataNucleus Access Platform on tomcat?

Best regards

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about tomcat