Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
how app can detect whether it is running on GAE or dev server ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Roberto Saccon  
View profile  
 More options Aug 3, 8:09 pm
From: Roberto Saccon <rsac...@gmail.com>
Date: Mon, 3 Aug 2009 17:09:22 -0700 (PDT)
Local: Mon, Aug 3 2009 8:09 pm
Subject: how app can detect whether it is running on GAE or dev server ?
Anybody knows ?

I knew it for the Python appengine version, but in Java things seem to
be different ...
--
Roberto


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roberto Saccon  
View profile  
 More options Aug 3, 8:23 pm
From: Roberto Saccon <rsac...@gmail.com>
Date: Mon, 3 Aug 2009 17:23:27 -0700 (PDT)
Local: Mon, Aug 3 2009 8:23 pm
Subject: Re: how app can detect whether it is running on GAE or dev server ?
I just found:

http://blog.stringbuffer.com/2009/04/determining-if-your-code-is-exec...

Unless anybody has a better approach I  guess that is the way to
go ...

--
Roberto

On Aug 3, 9:09 pm, Roberto Saccon <rsac...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
radomir  
View profile  
 More options Aug 4, 5:18 am
From: radomir <radomi...@gmail.com>
Date: Tue, 4 Aug 2009 02:18:11 -0700 (PDT)
Local: Tues, Aug 4 2009 5:18 am
Subject: Re: how app can detect whether it is running on GAE or dev server ?
Here's my post about how to detect it without servlet context:
http://radomirmladenovic.info/2009/06/15/detecting-code-execution-on-...

Radomir

On Aug 4, 2:23 am, Roberto Saccon <rsac...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roberto Saccon  
View profile  
 More options Aug 4, 9:39 am
From: Roberto Saccon <rsac...@gmail.com>
Date: Tue, 4 Aug 2009 06:39:59 -0700 (PDT)
Local: Tues, Aug 4 2009 9:39 am
Subject: Re: how app can detect whether it is running on GAE or dev server ?
Randimir, thanks a lot.

On Aug 4, 6:18 am, radomir <radomi...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don Schwarz  
View profile  
 More options Aug 4, 11:45 am
From: Don Schwarz <schwa...@google.com>
Date: Tue, 4 Aug 2009 10:45:07 -0500
Local: Tues, Aug 4 2009 11:45 am
Subject: Re: [appengine-java] Re: how app can detect whether it is running on GAE or dev server ?

The approach suggested at blob.stringbuffer.com is the approach that we
recommend.  We have committed to leaving the strings "Google App Engine" and
"Development" in ServletContext.getServerInfo() so it's safe to rely on
these.
The class names of our SecurityManager implementations, on the other hand,
could change at any time without warning, so I would discourage use of
Radomir's approach.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
radomir  
View profile  
 More options Aug 5, 5:18 am
From: radomir <radomi...@gmail.com>
Date: Wed, 5 Aug 2009 02:18:01 -0700 (PDT)
Local: Wed, Aug 5 2009 5:18 am
Subject: Re: how app can detect whether it is running on GAE or dev server ?
I agree with Don. If you have access to servlet context that's
definitely the way to go.
On the other side, I needed to detect environment in a part of library
code that has no access to servlet context so checking SecurityManager
class name worked for me. (At this time I think it's safe to assume
that App Engine will always have "google" in package names ;-)

On Aug 4, 5:45 pm, Don Schwarz <schwa...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google