[appengine-java] Re: ThreadLocal seems not to be working sometimes

2011-09-30 Thread stole
Indeed Simon, this is probably the solution. I'll fix it and see if it 
works. Thanks for the help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/NvRjQQKq-OoJ.
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] ThreadLocal seems not to be working sometimes

2011-09-30 Thread stole


I have the following UserData class
public class UserData implements Serializable {
private String name;
private long timestamp;
...
}
Then in another class (which implements 
com.google.gwt.user.server.rpc.RemoteServiceServlet) I have a localUser member 
variable declared like so:
private transient ThreadLocal localUser;
Finally, in the same class I have the following method:
private void setUser(final UserData userData) {
if(userData == null)
throw new NullPointerException("userData is null");

if (localUser == null) {
localUser = new ThreadLocal();
}
localUser.set(userData);

// The following is for test/debug purposes only.
if(!userData.equals(localUser.get())){
if(localUser.get() == null){
l.severe("Mean bug: localUser.get() == null");
} else {
l.severe("Mean bug: localUser and userData are not equal");
}
}
}
Sometimes the code logs the 
  l.severe("Mean bug: localUser.get() == null");
message as I believe that a localUser.get() should always return a valid 
reference to userData since it has been set to it in the previous statement.

Has anyone had the same problem? I use the 1.5.4 appengine SDK. I reported the 
issue here:http://code.google.com/p/googleappengine/issues/detail?id=6010

Thanks for Your time.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/g3DDTArWUZsJ.
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.



Re: [appengine-java] Re: Feelings about new pricing model

2011-05-24 Thread stole
On Tuesday, May 24, 2011 11:21:00 AM UTC+2, Jeff Schnitzer wrote:
>
> The Google blog
> says that appengine served over 2,000 hits per second for the Royal
> Wedding - I'd like to know what the bill would look like before and
> after the pricing change.
>
 Indeed, that would be an interesting thing to know.

-- 
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: Channel API still not live...

2010-10-27 Thread stole
Thanks for the tip. It hadn't cross my mind to use XMPP. I'll
investigate that. However it would be nice to use one kind of push
service for all my clients and not to have to learn another API.

Thanks again.

On Oct 27, 8:40 pm, "Ikai Lan (Google)" 
wrote:
> I'm not sure about that. It's my understanding that the Channel API depends
> on generated Javascript, so if you can interpret that, why not? I haven't
> looked much into how comet is being implemented in the Channel API - I know
> there's a long-polling implementation as a fallback. Using a non-browser
> client would be an undocumented use case, but I don't see why it couldn't be
> done.
>
> When you have a mobile client or a Java client, can't you use XMPP?
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
>
>
>
>
>
>
> On Wed, Oct 27, 2010 at 3:02 AM, stole  wrote:
> > Thanks for the answer Ikai. I have another question which perhaps is a
> > bit off topic but I hope You will answer nevertheless. Will it be
> > possible to use the Channel API on Java clients (like Android) and not
> > only from within browsers? It would be awesome.
>
> > Thanks again.
>
> > On Oct 26, 7:26 pm, "Ikai Lan (Google)" 
> > 
>
> > wrote:
> > > Very slim. We want to ship it as soon as possible.
>
> > > In the meantime, there are plenty of services that offer this type of
> > > functionality:
>
> > >http://beaconpush.comhttp://pubnub.com
>
> > > ... and so forth
>
> > > Don't let this feature block you if your application needs it. Build it
> > > using another tool and port it over when we are ready to release the
> > Channel
> > > API for everyone.
>
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
> > > Blogger:http://googleappengine.blogspot.com
> > > Reddit:http://www.reddit.com/r/appengine
> > > Twitter:http://twitter.com/app_engine
>
> > > On Tue, Oct 26, 2010 at 12:41 AM, stole  wrote:
> > > > Thanks everybody for the info. I just needed to see what are the
> > > > chances for getting the API activated soon (this week). From Your
> > > > answers I'd say very slim.
>
> > > > On Oct 26, 8:16 am, Heiko Roth  wrote:
> > > > > No activation yet.
> > > > > I'm waiting, too.
>
> > > > > Right now, we pull status every 5 minutes, but that's not the best
> > > > > way.
> > > > > Other APIs like Pushlet don't work on appengine.
>
> > > > --
> > > > 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> > 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 > 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: Channel API still not live...

2010-10-27 Thread stole
Thanks for the answer Ikai. I have another question which perhaps is a
bit off topic but I hope You will answer nevertheless. Will it be
possible to use the Channel API on Java clients (like Android) and not
only from within browsers? It would be awesome.

Thanks again.

On Oct 26, 7:26 pm, "Ikai Lan (Google)" 
wrote:
> Very slim. We want to ship it as soon as possible.
>
> In the meantime, there are plenty of services that offer this type of
> functionality:
>
> http://beaconpush.comhttp://pubnub.com
>
> ... and so forth
>
> Don't let this feature block you if your application needs it. Build it
> using another tool and port it over when we are ready to release the Channel
> API for everyone.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
>
>
>
>
>
>
> On Tue, Oct 26, 2010 at 12:41 AM, stole  wrote:
> > Thanks everybody for the info. I just needed to see what are the
> > chances for getting the API activated soon (this week). From Your
> > answers I'd say very slim.
>
> > On Oct 26, 8:16 am, Heiko Roth  wrote:
> > > No activation yet.
> > > I'm waiting, too.
>
> > > Right now, we pull status every 5 minutes, but that's not the best
> > > way.
> > > Other APIs like Pushlet don't work on appengine.
>
> > --
> > 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: Channel API still not live...

2010-10-26 Thread stole
Thanks everybody for the info. I just needed to see what are the
chances for getting the API activated soon (this week). From Your
answers I'd say very slim.

On Oct 26, 8:16 am, Heiko Roth  wrote:
> No activation yet.
> I'm waiting, too.
>
> Right now, we pull status every 5 minutes, but that's not the best
> way.
> Other APIs like Pushlet don't work on appengine.

-- 
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: Channel API still not live...

2010-10-25 Thread stole
Hello everybody.

Following Ikai's instructions I signed up for Channel API trusted
tester last Friday (2010/10/22). The API has not yet been enabled for
my application. I was wondering if anybody has gotten the API
activated and how long it took for it to get activated. Ikai? Daniel?
Heiko?

Thanks for your time.

On Sep 20, 4:47 pm, "Ikai Lan (Google)" 
wrote:
> Channel API is not available yet. You can sign up for trusted tester here:
>
> https://spreadsheets.google.com/a/google.com/viewform?formkey=dGFxQ1A...
>
>
>
>
>
>
>
> On Mon, Sep 20, 2010 at 2:38 AM, Heiko Roth  wrote:
> > Hello there,
>
> > We need channel api, too.
> > Can we use it?
>
> > Greetings,
> > Heiko.
>
> > --
> > 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.