[appengine-java] Re: Very high latency lately.
I'm done with Google App Engine. This problem has been going on for the past few weeks, with no adequate response/solution. 2012-02-07 03:30:18.825 /url/M 200 2195ms 16kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:30:14.984 /url/B 200 3274ms 17kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:30:09.744 /url 200 2808ms 9kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:30:02.627 /url 200 9419ms 8kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:29:50.751 / 200 1042ms 3kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:29:41.464 /url 200 5087ms 8kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:29:17.693 / 200 2448ms 3kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:28:45.551 /url?searchText=crawford 200 2867ms 2kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:28:35.916 /url 200 8532ms 8kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:28:24.929 / 200 1195ms 3kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:28:08.998 /url 200 9398ms 8kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 2012-02-07 03:27:57.539 / 200 1709ms 3kb Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.46 Safari/535.11 Instances: QPS*: 0.083 Latency:3470.2 ms On Feb 1, 9:03 am, A1programmer wrote: > Latest: > > 200 18372ms 8kb > > On Feb 1, 6:18 am, A1programmer wrote: > > > > > > > > > Over the past 4 days, the application I'm working on started > > experiencing terrible latency issues. > > > Yesterday, the problem seemed to have resolved itself for a short > > period of time. Today, however, the issue is back. Page loads that > > used to take 200 ms are now taking 3 to 4 seconds. Looking over my > > request logs, I see some requests taking 11 seconds. > > > The bad part, these pages are using memcache. > > > I'm not sure if I'm getting on good/bad VMs/hosts or what, but this is > > not good. > > > The last 3 long requets (within the last 2 minutes - all on the same > > VM) took: > > > 7,635ms > > 20,685ms > > 11,761ms > > 2,929ms > > 2,728ms > > > The faster requests barely finished in under 1000 ms. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Very high latency lately.
Latest: 200 18372ms 8kb On Feb 1, 6:18 am, A1programmer wrote: > Over the past 4 days, the application I'm working on started > experiencing terrible latency issues. > > Yesterday, the problem seemed to have resolved itself for a short > period of time. Today, however, the issue is back. Page loads that > used to take 200 ms are now taking 3 to 4 seconds. Looking over my > request logs, I see some requests taking 11 seconds. > > The bad part, these pages are using memcache. > > I'm not sure if I'm getting on good/bad VMs/hosts or what, but this is > not good. > > The last 3 long requets (within the last 2 minutes - all on the same > VM) took: > > 7,635ms > 20,685ms > 11,761ms > 2,929ms > 2,728ms > > The faster requests barely finished in under 1000 ms. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Very high latency lately.
Over the past 4 days, the application I'm working on started experiencing terrible latency issues. Yesterday, the problem seemed to have resolved itself for a short period of time. Today, however, the issue is back. Page loads that used to take 200 ms are now taking 3 to 4 seconds. Looking over my request logs, I see some requests taking 11 seconds. The bad part, these pages are using memcache. I'm not sure if I'm getting on good/bad VMs/hosts or what, but this is not good. The last 3 long requets (within the last 2 minutes - all on the same VM) took: 7,635ms 20,685ms 11,761ms 2,929ms 2,728ms The faster requests barely finished in under 1000 ms. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Google Blocking URLFetches to Yahoo?
Is Google blocking URL Fetch calls to Yahoo? Timeout while fetching: http://mail.yahooapis.com/ws/mail/v1.1/soap?appid=..-&WSSID=... This works locally, but "instantly" fails with a "timeout" warning, which makes no sense. I had to resort to using the Yahoo mail API since I cannot send MMS email from App Engine, with zero help from Google (although I have made multiple attempts). -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Updating a simple boolean
It doesn't show up in the log. It is on DEBUG level. On Mar 7, 4:12 pm, datanucleus wrote: > Plenty shows up in the log when you set it to DEBUG level. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Updating a simple boolean
Actually, nothing for this shows up up in the log. I get "Mail sent to: address ...". Anyway, I am not a fan of JDO/JPA/etc, at any level. Also, you make it sound as if I am wasting your time. You could have chosen not to answer, although I appreciate the fact that you did. People come to this forum because they don't know everything. On Mar 7, 3:30 am, datanucleus wrote: > Observance of the JDO spec would tell you that calling makePersistent > on something that is already managed is a pointless call since JDO > knows you updated the field (the whole point of enhancing those > classes); but you don't seem to bother doing a pm.close(). Obviously > the log would reveal what exactly is happening -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Updating a simple boolean
I'm trying to update a simple boolean value on a collection of objects returned by a query. The objects are being returned, and I set the value on the bean, then persist, but it's not working. What am I missing? The Submission class has a "notifyAfter" as a Long (raw date), and an "isNotified" Boolean. public void notifySubmissions( ){ PersistenceManager pm = pmf.getPersistenceManager(); Long rawDate = new Date().getTime() ; Query query = pm.newQuery(Submission.class); query.setFilter("rawDate >= notifyAfter && isNotified == false"); query.declareParameters("Long rawDateParam"); try { List results = (List) query.execute( rawDate); if ( results.size() > 0 ) { log.info(" " + results.size() + " results found"); Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); for (Submission s : results) { log.info("Emailing: " + s.getEmail()); Boolean mailed = true; try { Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress("...", "...") ); msg.setText( ... ); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(s.getEmail())); msg.setSubject("... Notification"); Transport.send(msg); log.info("Mail sent to: " + s.getEmail()); } catch (AddressException ae) { log.warning( ae.getMessage() ); mailed = false; } catch (Exception e2) { mailed = false; log.warning( e2.getMessage() ); } if (mailed){ s.setIsNotified(true); pm.makePersistent( s ); } } } else { log.info("No results found"); } } finally { query.closeAll(); } } -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Flash arcade game GAE based
You can use memcache to help speed up access to the DB. All communication over GAE has to be done using HTTP... So, that makes it harder to things like pushing real time messages to the clients. You can use a technique called "Long Polling", but requests must return in 30 seconds, and currently, applications have a max of 30 simultaneous requests. Basically, the request starts a thread that sleeps most of the time, waiting to return data to the client when it's ready. One the client receives the update, it makes another long polling request. Hope this helps. - Derrick On Feb 28, 2:58 am, Ahmed Khalifa wrote: > hi all, > I am writing a multiplayer flash arcade game in actionscript .. i have > discovered GAE recently and thought that it might be a very good > choice for building and hosting my server .. > however, i realize that arcade games need an almost realtime > responsive capacity from the server .. besides the server has to be > looping on receiving position object of Client A, storing it in a DB, > Fetching Client B position object and sending it back .. this will > result in a huge number of DB requests either storing, fetching or > deleting which will quickly exhaust the CPU quota for the > application .. > > So, I was wondering if any one had an idea or a reference to come > around these two problems of real time response and CPU exhaustion by > DB calls > > best regards, > A. Khalifa -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] GAE Alternatives?
Are there any good alternatives to Google App Engine out there? I am finding that I cannot rely on GAE for a production quality environment. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: JavaMail doesn't work
JavaMail works fine once the app is deployed to App Engine. http://code.google.com/appengine/docs/java/mail/usingjavamail.html On Feb 18, 10:08 am, Raghu wrote: > Hi All, > > I struck at JavaMail application. I tested remotely and locally also. > It's not working. please help me. Please share a simple servlet if > possible > > thanks > > raghu -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Mobile phone picture message HowTo
I have performed more testing. I can send pic messages using the exact same email address (hosted by google) which is used to send pics out from my app engine application. However, I have not been able to get a configuration to work directly from app engine. It is critical that I get this working. Google, Could this be due to the mail server (that app engine uses) which verizon does not trust? On Feb 14, 4:23 pm, A1programmer wrote: > I'm having the same problem, specifically using verizon. > > I can send text messages to vtext.com, but cannot send images to > vzwpix.com. > > I set up a forward from a different email address, to my phone > (@vzwpix.com), and it worked without problems. > > On Feb 13, 3:40 pm, moca wrote: > > > > > I am able to send a text with an image attachment to a normal email > > account like hotmail and yahoo and receive both text and image on the > > other end, but i am having trouble sending a picture message to a > > mobile phone using the mobile phone subscriber's email suffix like > > <10digitnumber>@vzwpix.com or <10digitnumber>@vtext.com. Note it works > > fine for sending normal text messages. I would highly appreciate any > > help in accomplishing this in GAE. > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Mobile phone picture message HowTo
I'm having the same problem, specifically using verizon. I can send text messages to vtext.com, but cannot send images to vzwpix.com. I set up a forward from a different email address, to my phone (@vzwpix.com), and it worked without problems. On Feb 13, 3:40 pm, moca wrote: > I am able to send a text with an image attachment to a normal email > account like hotmail and yahoo and receive both text and image on the > other end, but i am having trouble sending a picture message to a > mobile phone using the mobile phone subscriber's email suffix like > <10digitnumber>@vzwpix.com or <10digitnumber>@vtext.com. Note it works > fine for sending normal text messages. I would highly appreciate any > help in accomplishing this in GAE. > > Thanks -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Post/Get to a servlet from another servlet
I would also suggest putting the code in another class, which bother servlets use, but it's easy enough to do it like this: RequestDispatcher dispatcher = getServletContext().getRequestDispatcher ("pathToOtherServlet"); dispatcher.forward(req, resp); On Jan 25, 11:07 pm, edarroyo wrote: > I'm sorry if this is a stupid question, but is it possible to do a > post request to another servlet from within a servlet? > > I am trying to do a post/get request to the same servlet because of > the 30 sec/request limit. I have to run an intensive job and would > like to know if doing another post/get would help. The next request > would basically pick-up from where the previous request left at. > > Also, on a totally different note: > Does GAE throw an exception when the request reaches the time limit? > If so, what is it and how can i catch it? > > Thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Communication between multiple applications
I'm very familiar with BlazeDS, but haven't looked into GraniteDS for a few years. I know that with BlazeDS, this is done using a streaming AMF channel, which is essentially an endless http request, or "streaming response". Since the connection is left open, I am a bit worried that it may not work on GAE. However, I did find this, http://graniteds.blogspot.com/2009/05/graniteds-20-now-supports-server-push.html which seems to work pretty well. It looks like it still reissues a new connection every 30 seconds, but if a message happens within the 30 seconds, it immediately gets the response, then rebuilds a new connection. I'll have to play around with it a bit more to see how well it works. Also, this sends identical messages out to multiple clients using a producer/consumer model. It'll be a little more tricky with a request/ response model, in which the messages are different for each client (should still be possible). Thanks! On Jan 19, 3:14 pm, Timothy Spear wrote: > I am using GraniteDS for communication from the GAE/J server to a Flex/ > Flash front end. GraniteDS is opensource and supports push based > messaging (I have not tested that aspect). > > Good luck. > > Tim > > Sent from my iPhone > > On Jan 19, 2010, at 2:48 PM, A1programmer > wrote: > > > > > Jason, > > > Sorry for taking so long to get back to you. That is good to hear. > > > B.t.w, I have noticed that only a few of the quota item prices are > > available, (i.e. not all are listed) such as the number of email > > attachments, etc. Does this mean that extra quota allotment for these > > items is not available to be purchased? If I do send email > > attachments, they are typically 30k on average. Is this another area > > where rules can be changed, on a case-by-case basis? > > > I'm actually creating a flash based interface which relies on XML > > updates from the server. So it technically runs on the users local > > machine. Currently, the only way that I have to get the updates to > > the clients is for the client to ask for them. Ideally, I would want > > to use a streaming response, or a Socket server, etc. Unfortunately, > > I need a framework that will allow me to pay more money as my > > application growth demands it. I can't really put a lot of cash up > > front for a dedicated, or virtual dedicated hosting environment. This > > is yet another thing I really like about GAE. > > > Thanks, > > Derrick > > > On Jan 13, 5:25 pm, "Jason (Google)" wrote: > >> That particular term is in place to prevent misuse of our hosting > >> environment, specifically developers that attempt to deploy the same > >> application to multiple IDs and use a "gateway" application to choose > >> between these applications randomly to distribute the load evenly. > >> Unfortunately, the term does exclude more legitimate reasons to use > >> multiple > >> application IDs like your use case, although we can grant > >> exceptions on a > >> case-by-case basis. > > >> Out of curiosity, how are you implementing the polling? If you use > >> a single > >> application and just set up a cron job to run every minute, that > >> shouldn't > >> affect the performance of the more interactive aspect of your > >> application. > > >> - Jason > > >> On Tue, Jan 12, 2010 at 9:16 AM, A1programmer > >> wrote: > > >>> I know that section 4.4 of the agreement says: > > >>> 4.4. You may not develop multiple Applications to simulate or act > >>> as a > >>> single Application or otherwise access the Service in a manner > >>> intended to avoid incurring fees. > > >>> What if you want multiple applications which act as different > >>> portions > >>> of a larger application for performance reasons? How is it > >>> determined > >>> by Google that your motive is to avoid incurring fees of quota use. > >>> Or, am I reading the terms of use wrong? > > >>> I would like to build a client application which relies on polling > >>> for > >>> a configuration via HTTP which does not effect the performance of > >>> the > >>> primary portion of the application, which lets user set > >>> configurations > >>> at any arbitrary time. One reason being, only one simultaneous HTTP > >>> request is allowed at a given time for your application. I don't > >>> care > >>> about t
[appengine-java] Re: Communication between multiple applications
Jason, Sorry for taking so long to get back to you. That is good to hear. B.t.w, I have noticed that only a few of the quota item prices are available, (i.e. not all are listed) such as the number of email attachments, etc. Does this mean that extra quota allotment for these items is not available to be purchased? If I do send email attachments, they are typically 30k on average. Is this another area where rules can be changed, on a case-by-case basis? I'm actually creating a flash based interface which relies on XML updates from the server. So it technically runs on the users local machine. Currently, the only way that I have to get the updates to the clients is for the client to ask for them. Ideally, I would want to use a streaming response, or a Socket server, etc. Unfortunately, I need a framework that will allow me to pay more money as my application growth demands it. I can't really put a lot of cash up front for a dedicated, or virtual dedicated hosting environment. This is yet another thing I really like about GAE. Thanks, Derrick On Jan 13, 5:25 pm, "Jason (Google)" wrote: > That particular term is in place to prevent misuse of our hosting > environment, specifically developers that attempt to deploy the same > application to multiple IDs and use a "gateway" application to choose > between these applications randomly to distribute the load evenly. > Unfortunately, the term does exclude more legitimate reasons to use multiple > application IDs like your use case, although we can grant exceptions on a > case-by-case basis. > > Out of curiosity, how are you implementing the polling? If you use a single > application and just set up a cron job to run every minute, that shouldn't > affect the performance of the more interactive aspect of your application. > > - Jason > > On Tue, Jan 12, 2010 at 9:16 AM, A1programmer > wrote: > > > > > I know that section 4.4 of the agreement says: > > > 4.4. You may not develop multiple Applications to simulate or act as a > > single Application or otherwise access the Service in a manner > > intended to avoid incurring fees. > > > What if you want multiple applications which act as different portions > > of a larger application for performance reasons? How is it determined > > by Google that your motive is to avoid incurring fees of quota use. > > Or, am I reading the terms of use wrong? > > > I would like to build a client application which relies on polling for > > a configuration via HTTP which does not effect the performance of the > > primary portion of the application, which lets user set configurations > > at any arbitrary time. One reason being, only one simultaneous HTTP > > request is allowed at a given time for your application. I don't care > > about the quota, because I won't go over it in a single application, > > even with the polling, and I would gladly purchase more HTTP requests > > allowances, I just want the end user experience to perform well. > > > Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Is it working in singleton model?
I'm not using spring, but I am not having trouble with singleton objects. On Jan 12, 11:54 pm, jay wrote: > Hello, I am using spring framework in my project, there are couples of > Singlton Beans. I save some information in the properties of these > beans and change them at runtime. I am not sure appengnine supports > singleton or not? > > I heard about that appengine has more than one servers serve to one > application. If I change the properties of beans, actually It just > changes on one VM...Is it? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: App instance recycling and response times - is there solution?
I don't have time to go into details, so this is a 10,000 ft view, but perhaps you could potentially extend the base spring context listener to work with the distributed cache (or some other mechanism between web apps) which keeps an instance of springs context so that it doesn't have to be repeatedly loaded. Also, you could write another Servlet which clears the context instance when you actually do need it to be reloaded. Hope this helps. - Derrick On Jan 12, 11:40 am, Konrad wrote: > Hi, > > I decided to do some long-run performance tests on my application. I > created some small client hitting app every 5-30 minutes and I run 3-5 > of threads with such client. > > I noticed huge differenced in response times and started to > investigate issue. I found reason very quick. > I am experiencing same issues as described in following topics: > > http://groups.google.com/group/google-appengine/browse_thread/thread/... > > http://groups.google.com/group/google-appengine/browse_thread/thread/... > > http://groups.google.com/group/google-appengine-java/browse_thread/th... > > I am using Springframework, it tkes around 18-20s to start app > instance, which is causing response times to take from 1s (when > requests hits running app - very rare) to 22s when fresh application > is created. > > Is there any solution for this? > I was thinking about creating most basic servlet performing critical > tasks (serving API call) and leave UI as is. > But then I would loose all benefits of Springframework. > > Is there any solution for this? > > After solving (hacking) numerous constrains of App Engine which I hit > while developing my app that is the one I think will make me move out > of App Engine... that's simply to much to all the time think how to > win with GAE problems than how to solve my application problems... > > Any help? > > Regards > Konrad -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Communication between multiple applications
I know that section 4.4 of the agreement says: 4.4. You may not develop multiple Applications to simulate or act as a single Application or otherwise access the Service in a manner intended to avoid incurring fees. What if you want multiple applications which act as different portions of a larger application for performance reasons? How is it determined by Google that your motive is to avoid incurring fees of quota use. Or, am I reading the terms of use wrong? I would like to build a client application which relies on polling for a configuration via HTTP which does not effect the performance of the primary portion of the application, which lets user set configurations at any arbitrary time. One reason being, only one simultaneous HTTP request is allowed at a given time for your application. I don't care about the quota, because I won't go over it in a single application, even with the polling, and I would gladly purchase more HTTP requests allowances, I just want the end user experience to perform well. Thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?
You probably want to architect the classes in such a way that they are not tightly coupled to the http servlet session. Anyway, when you were working with ThreadLocal earlier, did you first set the ServletRequest from the filter? class UserService { private UserDAO userDAO; public Collection getItemsForUser(User user){ return userDao.getItemsForUser(user); } } class UserDAO { public Collection getItemsForUser(User user) { Long userId = user.getId(); String userName = user.getUserName(); // query the database based on user information } } On Jan 9, 3:53 am, Prashant Gupta wrote: > I tried following code, getting null all the time. > > public static HttpSession getSession(){ > return new ThreadLocal().get().getSession(); > > } > > 2010/1/9 Elias Mårtenson > > > > > On 9 Jan, 01:27, Prashant Gupta wrote: > > > > I am trying to implement my own user management system, for that I need > > some > > > way to make session id available to all classes independent of whether it > > > extends HttpServlet or not. I know there is some way to do that but I am > > not > > > able to find it. Any kind of help would be appreciated. > > > One way to do it is to use a servlet filter to make the user > > information available through a ThreadLocal instance. That way you can > > have a single static method that returns the user wherever you are. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.