Re: instance or class?
Greetings,
-- Thanks for the input. Yes, the flakiness is what I am concerned about. The whole project is a no-go until I can figure out the flakiness. First, the backend is running on Linux & GlassFish. The frontend is running on various browsers from various laptops. There is no iOS. I did discover the following however.
If I run it from a single browser (as I do during development) it runs fine. It becomes flaky when I try to use it from different browsers and/or different machines at the same time. I know about tomcat reusing the same backend instances so I am sensitive about that. (I don't know if GlassFish does that too.) The backend code for the flaky part has no instance variables so reuse should not be a problem.
Due to the responses on this mailing list and my tests, I now think the problem is on the backend. One instance runs fine. If I introduce a second instance, the second instance runs fine but then the first instance messes up randomly. I'll keep looking.
Your input is very helpful. Thank you.
Blake
On Fri, May 10, 2013 at 3:46 AM, Jens <jens.nehlmeier@gmail.com> wrote:
It shouldn't make a difference if you make everything static or not as long as your are sure that your app state is the one you want. You would need to reset your state instead of just throw away an old instance and create a new one.The flakiness you describe sound like iOS issues. Have you tested your app on iOS 6? If so, iOS 6 caches POST requests if they dont have a no-cache header and Safari on iOS 6 has some JIT compiler issues which can result in unexpected JavaScript failures.-- J.--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home