I am trying to create a chat application in GAE in JAVA. I have a need to keep a record of all online users and their networks (in some chats), and this information should be constantly updated. I (erroneously?) Assumed that I could just use the Java SerlvetContext and Set / Get Attribute methods to update online users \ offline users and share this information with all servlets. Since I found out (with wonderful errors), since GAE is distributed \ cloud service, it does not efficiently implement ServletContext.setAttribute - this means that my application probably runs on several JVMs, and information about ServletContext is available only for sharing between servlets, belonging to the same JVM.
This is a huge problem for me, of course. A few questions - 1) Will ServletContext really not work properly in GAE? 2) Is GAE a bad choice for novice web developers like me? It seems to me that I always find new problems and things that do not comply with the rules of Servlet \ JSP. Since itβs quite difficult for beginners to learn servlets, is GAE probably not the right choice? 3) How then can I exchange information between servlets?
java-ee google-app-engine servlets
Joel_Blum
source share