Re: [appengine-java] Billed CPU time by far too high

2010-05-10 Thread Ikai L (Google)
If you are actually being billed, you'd fill out this form right here:

http://code.google.com/appengine/kb/billing.html

http://code.google.com/appengine/kb/billing.html1.3 CPU hours is still
significantly under the free quota, so this probably wouldn't be an option
for you. I'd advise running AppStats to profile where all the additional CPU
usage is coming from. This information would be extremely helpful both to
you as well as to other developers who may experience the same issues.
Without knowing additional information, it's also possible that you were
being *underbilled* previously and that we've corrected billing information.

On Sun, May 9, 2010 at 10:08 AM, Henning henning2...@hotmail.de wrote:

 Hello,

 I posted about this topic already 2 weeks ago. The days after that my
 website got back to its normal levels of CPU time. But then things got
 even worse. What can I do now? How can I let the responsible
 developers at Google let know to fix it.

 The situation is as follows:

 I have a cron job that is triggered every minute. It has an average
 CPU usage of 56(17) according to the dash board.
 On the black list I cannot see any requests other than my cron job. It
 is nearly the only thing that needs CPU time.

 Normally what I got billed everyday was about 0.2 CPU hrs a day. In
 the meantime it is about 1.3 CPU hrs a day! That is more than 1/5 of
 the free quota just for this lightweight cron job!

 Henning

 --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/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: Datastore Statistics not updated for 3 days

2010-05-10 Thread Toby
now it is: 4 days, 12:34:38 ago
I checked my other appengine applications and they are all about the
same.

On May 9, 2:25 pm, Toby toby.ro...@gmail.com wrote:
 Hello,

 I have some trouble with the Administration Console. Everything is
 very slow. Sometimes I get error page. The Datastore Statistics say:

 Last updated
 3 days, 17:59:52 ago

 on the right it says that there is at least one update per day. So I
 am puzzled. Maybe my application got corrupted?

 What can I do?

 Toby

 --
 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 
 athttp://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] Benchmarking Loading Requests

2010-05-10 Thread Sean Gilligan
(I originally posted this email to the Gaelyk list, but it actually 
makes sense to ask all GAE/Java developers)


I'm wondering what others have done in measuring and optimizing GAE/Java 
loading request performance.


1) What measurements have people on this list done?
2) Does anyone have any good links to the work of others?
3) What would be some best practices?
4) Is using the CPU usage info from loading requests in the log the best 
method?

5) What are the best tools for collecting/analyzing this info?

I should also mention that I like how Damon Oehlman has used average 
response time + 2 standard deviations to compare performance:
http://distractable.net/coding/google-appengine-language-performance-comparison-followup/ 



Regards,

Sean

--
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: when session expires in the data store

2010-05-10 Thread Peter Ondruska
public class SessionCleanup extends StandardServlet {

private static final long serialVersionUID =
7896915936685966869L;
private static final Logger logger =
Logger.getLogger(SessionCleanup.class.getName());
private Cache cache = null;
private static final String EXPIRES = _expires;

@Override
public void init() throws ServletException {
try {
final CacheFactory cacheFactory =
CacheManager.getInstance().getCacheFactory();
cache =
cacheFactory.createCache(Collections.emptyMap());
} catch (final CacheException e) {
logger.log(Level.SEVERE, failed to configure
cache, e);
}
}

@Override
protected void processRequest(final HttpServletRequest
request, final HttpServletResponse response) throws ServletException,
IOException {

final long now = new Date().getTime();
final DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
final Query query = new Query(_ah_SESSION);

// TODO make this a task
for (final Entity session :
datastore.prepare(query).asIterable(FetchOptions.Builder.withLimit(100)))
{
Long expires = (Long)
session.getProperty(EXPIRES);
if (expires  now) {
final Key key = session.getKey();
datastore.delete(key);
final StringBuilder sb = new
StringBuilder(Removed session with expiration ).append((new
Date(expires)).toString());
if (cache != null)
if
(cache.containsKey(key.getName())) {
 
cache.remove(key.getName());
sb.append(, also from
memcache);
}
logger.log(Level.INFO, sb.toString());
}
}

}

}


On May 8, 8:20 pm, Joe Fawzy joewic...@gmail.com wrote:
 Hi Peter
 thanks for your reply and for the link to the other thread

 it will be great if u posted the code

 thanks a lot

 Joe

 On May 8, 7:50 pm, Peter Ondruska peter.ondru...@gmail.com wrote:





  expires field is long and can be used as Date.getTime(). 
  Seehttp://groups.google.com/group/google-appengine-java/browse_thread/th...
  and if you need hint on code for cleaning up expired sessions let me
  know. I can post the source.

  On May 8, 3:54 pm, Joe Fawzy joewic...@gmail.com wrote:

   Hi dear

   actually the session data cannot be analyzed that easy as it is just a
   blob of the session with all the web framework things
   and the expires field is an int so i do not know how this translate to
   date to delete non expired ones

   any help
   thanks
   Joe

   On May 8, 3:30 pm, Piotr Tarsa piotr.ta...@gmail.com wrote:

I think you should do some cron job.

I think keeping expired sessions can be an useful feature. You can dump
session to your local disk and analyze them. For example you can log 
some
user actions to sessions and then analyze them offline.

2010/5/8 Joe Fawzy joewic...@gmail.com

 Hi
 i have thausands of entries in my ah_SESSION data store table, it
 dates several days back
 it does not expire or delete, i think it is non sense to keep all the
 sessions even that expired in the web container in the data store
 if it expires , when it expires? and how to trigger that
 if it does not expires or auto delete? is it a feature?
 How can i delete them? do i have to do it myself? or appengine have a
 setting for it?
 i know i can do it in code .. but
 What is your experience with it?

 Joe

 --
 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.comgoogle-appengine-java%2B
  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 
athttp://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 
   

[appengine-java] Re: I'm new: how should I structure 3 linked tables?

2010-05-10 Thread Ian Marshall
Hello Cliff,

For me, key things to think about in your persistence design are:

  1.  The maximum rates at which you want to write data to the
datastore.
  2.  Transactions: are you going to use them not at all, a lot, or
always?
  3.  The entity group structure of your persistent entity classes.

The first two points will have an influence on the third.

There is a maximum write rate to the data in each entity group.
Transactions, where used, may encompass one entity group only.

You can associate instances of different persistent entity classes in
two ways: using a field holding (a pointer to = a reference to) the
instance of the other class, or a field holding a key of the instance
of the other class. The difference is that the first choice
establishes an entity group relationship if this is done in the
correct way (at creation-time for the child entity).

Also, why not examine Max Ross's blog (http://gae-java-
persistence.blogspot.com)? It's got working examples of persistence
code, and I have found this helpful.

There are persistence frameworks that act as a front-end for GAE/J
persistence (search this forum for details). I am sure that they are
good, but I personally do not use them because I want to reduce the
number of independent software components in my code (Java, Apache
Wicket, NetBeans, GAE/J and DataNucleus JDO are enough for me!) and
keep it portable outside of GAE/J.

Finally, really study the GAE/J Storing Data documentation. There is
a lot in it, but for us used to SQL-compliant RDMS databases, this is
a must.

Finally, enjoy!

-- 
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.



Re: [appengine-java] Re: The website has a programming error.

2010-05-10 Thread Davide Cerbo
are you using some taglibs?

2010/5/10 yjun hu itswa...@gmail.com

 read you log from admin console page

 2010/5/9 Jaroslav Záruba jaroslav.zar...@gmail.com

 I would try to minimize the JSP-code to the point where it can be
 shown to other people to inspect it. :) And is this a message that is
 shown in your browser or is it what is in your Logs?

 On May 8, 3:25 pm, Jitu Surve jitusu...@gmail.com wrote:
  I have written simple web application using GAE that contains .jsp
  file.  In my local developement environment .jsp fine works fine, but
  when I deploy it on cloud, and try to access it I get the error:
 
  The website cannot display the page
 Most likely causes:
  •The website is under maintenance.
  •The website has a programming error. 
 
  Any suggestions?
 
  Thanks,
  Jitu
 
  --
  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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 dream or truth

  --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
-- 
Davide Cerbo
---
http://davide.cerbo.born-to-co.de
http://jesty.it
---
http://www.exmachina.ch
+ 39 329 70 81 927
---

-- 
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] LDAP on SDC

2010-05-10 Thread 富士夫 伊能
I look for a method to access an LDAP server via SecureDataConnector.
It is shown in the figure of Overview.
However, the sample source code is not found.
Where 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] Freemarker + Sitemesh - jsp decorators will not work

2010-05-10 Thread Sudhir Ramanandi
Found one more problem with Freemarker + GAE + sitemesh..

I use sitemesh to decorate pages, the decorator is a jsp file..the pages
which are being decorated are freemarker templates..
it's fine because sitemash just care about the HTML.

The setup runs fine on local environment.. where as when deployed to GAE it
gives me this error..

javax.servlet.ServletContext log: Unhandled exception occurred whilst
decorating page
java.lang.UnsupportedOperationException
at 
freemarker.ext.jsp.FreeMarkerJspFactory.releasePageContext(FreeMarkerJspFactory.java:41)
at 
org.apache.jsp.WEB_002dINF.decorators.default_002ddecorator_jsp._jspService(default_002ddecorator_jsp.java:99)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
at 
com.opensymphony.sitemesh.compatability.OldDecorator2NewDecorator.render(OldDecorator2NewDecorator.java:46)
at 
com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:33)
at 
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:84)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)



 Seems that app engine is doing some thing strange with FreeMarkerJspFactory
or reusing it in someway which isn't expected.
Any ideas ?

-- 
Sudhir Ramanandi
http://www.ramanandi.org

-- 
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] Objectify is there NontransactionalWrite/Read setting?

2010-05-10 Thread Toby
Hello,

I finally rewrote my entire app to swich from JDO to Objectify. As I
used DAO it was actually rather quick. I am quite astonished how easy
objectify works. Also it gives you from the very beginning on the
right hints to write optimal code. In JDO it took me much longer. I
believe a framework like that should be a standard option.

Anyhow, I got a quick question. In JDO there was the recomendation to
set NontransactionalWrite and NontransactionalRead to true and
datanucleus.appengine.datastoreReadConsistency to EVENTUAL in order to
speed up your applicatin (if it does not need these features).

Is there a similar thing for objectify? Or does the jdoconfig.xml
apply for objectify as well?

Thanks,
Toby

-- 
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: Cache pages in Memcache

2010-05-10 Thread Nacho Coloma
They behave differently:

* Cache-control (or Expires): if the resource has not expired, the
browser will not ask for it again (unless the user hits F5 or shift
+F5)
* ETag (or Last-Modified): the browser will ask for the resource every
time, but the server can return a 304 (not modified).

You can use both at the same time, and most people do.

On May 6, 10:10 pm, Sarath sarath...@yahoo.com wrote:
 I would suggest a controllable/Configurable ETag than Cache-Control,
 would you not Ikai?

 -Sarathhttp://blog.sarathonline.com

 On May 5, 5:21 pm, Ikai L (Google) ika...@google.com wrote:



  Sounds like a great idea. I agree with you. The problem with setting a cache
  header is that you have very little control over expiration. The nice thing
  about a cache that you handle at the filter level and in Memcache is that if
  you can regenerate the keys, you can flush the thing (or you can flush
  everything if need be).

  On Tue, May 4, 2010 at 4:45 PM, Sergio Lopes slo...@gmail.com wrote:
   Thanks for your answers!

   The Cache-control idea is a good one, I think I'll try something here.
   But maybe it's a good idea to have some kind of server cache too.

   Ehcache Web Module has a nice Java Filter that threats many corner
   cases (headers, gzip, ...). The only problem is that it's too coupled
   to Ehcache. I think I'll try to fork that project to use their Filter
   with AppEngine's memcache :)

   On May 4, 6:22 am, Nacho Coloma icol...@gmail.com wrote:
Hi Sergio,

 I'm thinking in a Filter that put page results in memcache when first
 accessed, and then getting that result in former accesses.

That should work. All page cache implementations do more or less the
same.

 The idea is simple but the implementation is not. (how to get the
 first request response? how to implement proper header management in
 that filter? how to not disable gzip using this?)

* If there is content in memcache, you can deliver it and exit.
Otherwise, let the request proceed, and store in the cache.
* Be sure to set the cache timeout and calculate the cache key
correctly (e.g. include the user ID or the user locale if the cached
contents depend on that).
* For HTTP headers, this presentation may help:
  http://www.slideshare.net/icoloma/caching-web-contents-in-the-browser...

It's  more or less the same with JSP page fragments (except the
headers, of course). No rocket science.

Cheers,

Nacho.

--
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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
   .
For more options, visit this group athttp://
   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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

  --
  Ikai Lan
  Developer Relations, Google App Engine
  Twitter:http://twitter.com/ikai
  Delicious:http://delicious.com/ikailan

  
  Google App Engine links:
  Blog:http://googleappengine.blogspot.com
  Twitter:http://twitter.com/app_engine
  Reddit:http://www.reddit.com/r/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 
  athttp://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 
 athttp://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] Correction in Will it play..

2010-05-10 Thread Sarath
The Document 
http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine
needs a minor correction.

%...@tag isElIgnored=false%
must be
%...@tag isELIgnored=false%
(Case senstive EL)

May be it will save one else that time I lost struggling with 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] url fetch bringa up cached version of pdf file.

2010-05-10 Thread kldaniels
I am trying to open a pdf file.  I am using pdfBox to do so.  When I
open the document it is using a cached version of the document rather
than the current version.  Is there a way to get the most current
version.

URL urlObj = new URL(urlString);
HttpURLConnection connection = (HttpURLConnection)
urlObj.openConnection();
connection.setUseCaches(false);
int httpRespCode = connection.getResponseCode();
if (httpRespCode == 200) {
RandomAccessBuffer tempMemBuffer = new 
RandomAccessBuffer();
PDDocument doc = 
PDDocument.load(connection.getInputStream(),
tempMemBuffer);


Interestingly, I am also using the google docs pdf viewer to view the
same document elsewhere in the app, and it too is opening the cached
version of the document.

-- 
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.



Re: [appengine-java] Objectify is there NontransactionalWrite/Read setting?

2010-05-10 Thread Jeff Schnitzer
Objectify does not use the jdoconfig.xml, nor does
NontransactionalWrite or NontransactionalRead make any sense in the
context of Objectify because the transaction API is much simpler.

You can create an Objectify instance with various transaction or
consistency characteristics by calling
ObjectifyFactory.begin(ObjectifyOpts).  The javadocs for ObjectifyOpts
are here:

http://objectify-appengine.googlecode.com/svn/trunk/javadoc/com/googlecode/objectify/ObjectifyOpts.html

(note that begin() and beginTransaction() are just convenient
shorthands for the method that takes the options)

Jeff

On Mon, May 10, 2010 at 4:38 AM, Toby toby.ro...@gmail.com wrote:
 Hello,

 I finally rewrote my entire app to swich from JDO to Objectify. As I
 used DAO it was actually rather quick. I am quite astonished how easy
 objectify works. Also it gives you from the very beginning on the
 right hints to write optimal code. In JDO it took me much longer. I
 believe a framework like that should be a standard option.

 Anyhow, I got a quick question. In JDO there was the recomendation to
 set NontransactionalWrite and NontransactionalRead to true and
 datanucleus.appengine.datastoreReadConsistency to EVENTUAL in order to
 speed up your applicatin (if it does not need these features).

 Is there a similar thing for objectify? Or does the jdoconfig.xml
 apply for objectify as well?

 Thanks,
 Toby

 --
 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.



-- 
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] Struts 2.1.8 503 error.

2010-05-10 Thread Muhammad Syafiq Zainuddin
HTTP ERROR: 503
Problem accessing /. Reason:
SERVICE_UNAVAILABLE
Powered by Jetty://



above is the error triggered in the browser. i just want to make a
simple struts apps to test the config. but that error happen.

my web.xml is like below;

?xml version=1.0 encoding=UTF-8?
web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
filter
filter-namestruts2/filter-name
filter-classorg.apache.struts2.dispatcher.FilterDispatcher/
filter-class
/filter

filter-mapping
filter-namestruts2/filter-name
url-pattern/*/url-pattern
/filter-mapping

welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
/web-app

 end of web.xml 

my struts.xml is like below;

?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;

!-- Author: tmukmkd --

struts
!-- Add your configuration elements here --
constant name=struts.enable.DynamicMethodInvocation
value=false /
constant name=struts.devMode value=true/

package name=default namespace=/ extends=struts-default
action name=test
resultindex.jsp/result
!-- try to make sure the config ok --
/action
/package
/struts

 end of struts.xml 

my index.jsp is like below;

%...@page contentType=text/html pageEncoding=UTF-8%
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
   http://www.w3.org/TR/html4/loose.dtd;

html
head
meta http-equiv=Content-Type content=text/html;
charset=UTF-8
titleJSP Page/title
/head
body
h1Hello World!/h1
s:a action=testtest/s:a
a href=test.actiontest/a
/body
/html

 end of index.jsp 

i've try the solution from whyjava blog but not success :(
im using netbeans 6.8, using gae server.
can this problem happen because of the ide? or the main page of mine
using jsp instead html just like in whyjava?
or this? package name=default namespace=/ extends=struts-
default ?

tqia for the respond :)

note: whyjava url - 
http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/

-- 
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] HardDeadlineExceededError

2010-05-10 Thread laurent
I've a HardDeadlineExceededError.I've not all the time this exception.

Uncaught exception from servlet
com.google.apphosting.runtime.HardDeadlineExceededError: This request
(a19d027cb3d5ff54) started at 2010/05/10 09:26:12.460 UTC and was
still executing at 2010/05/10 09:26:41.349 UTC.
at com.google.appengine.runtime.Request.process-
a19d027cb3d5ff54(Request.java)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:443)
at java.util.concurrent.TimeUnit.timedWait(Unknown Source)
at
com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98)
at
com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:
58)
at
com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java:
297)
at
com.googlecode.objectify.ObjectifyFactory.beginTransaction(ObjectifyFactory.java:
104)
at
com.googlecode.objectify.ObjectifyService.beginTransaction(ObjectifyService.java:
33)
at
miro.server.GreetingServiceImpl.putData(GreetingServiceImpl.java:
148)
at
miro.server.GreetingServiceImpl.updateAssignments(GreetingServiceImpl.java:
123)

my code where it bug:
void putData(ListAssignment assignmentList) {
ObjectifyService.register(Assignment.class);

for (Assignment assignment : assignmentList) {

try {
Objectify ofy =
ObjectifyService.beginTransaction();
ofy.put(assignment);
ofy.getTxn().commit();
} catch (Exception e) {
}
}
}
Thanks for your request

-- 
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] serious problem Error 203

2010-05-10 Thread Dicker24
Hi,

i have got the following error :

A serious problem was encountered with the process that handled this
request, causing it to exit. This is likely to cause a new process to
be used for the next request to your application. If you see this
message frequently, you should contact the App Engine team. (Error
code 203)

This error is only thrown in the production environment, while it
works fine in the eclipse enviroment.

Would you please tell me, what this error message mean? What can I do
in order to avoid this error?

Thank you very much in advance.

Best Regards
dicker

-- 
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] Deploying Google App Engine application with my own domain

2010-05-10 Thread Srikanth Gade
Hi,

I have only bought a domain name.
I want to deploy App Engine application with that domain.
Do i need to buy with Google Apps account to deploy applications to my
domain?

Thanks  Regards,
Srikanth

-- 
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] Error: Transaction failed to commit

2010-05-10 Thread tanu
Hi Team,

I am getting an error while doing an select operation using JPA in an
App Engine application. From the logs I could see the following
exception mentioned below. While testing on local server application
is working fine. I am not able to trace out the real issue, it will be
of great help if someone can suggest any work around.

Thanks in Advance!

Exception:

javax.persistence.RollbackException: Transaction failed to commit
at
org.datanucleus.jpa.EntityTransactionImpl.commit(EntityTransactionImpl.java:
118)
at
org.datanucleus.store.appengine.jpa.DatastoreEntityTransactionImpl.commit(DatastoreEntityTransactionImpl.java:
50)

Caused By: Uncaught exception from servlet
javax.persistence.RollbackException: Transaction failed to commit
at
org.datanucleus.jpa.EntityTransactionImpl.commit(EntityTransactionImpl.java:
118)
at
org.datanucleus.store.appengine.jpa.DatastoreEntityTransactionImpl.commit(DatastoreEntityTransactionImpl.java:
50)


-- 
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.



Re: [appengine-java] Would Blob properties slow down my queries?

2010-05-10 Thread Ikai L (Google)
Entities are fetched whole, so if you have a large Blob property and you are
fetching it all the time, it would take longer than fetching an entity
without a Blob property. Unless you're frequently (every request) retrieving
a large Blob, this shouldn't be *that* expensive. Small blobs shouldn't take
that much longer. Your mileage may vary, so you'll have to do some
benchmarking to see.

What are you thinking of doing?

On Sun, May 9, 2010 at 1:22 PM, Jaroslav Záruba
jaroslav.zar...@gmail.comwrote:

 Will a query be any faster/slower depending on whether the entities
 being queried/returned have any Blob properties?
 (Or is there no difference until I actually call a getter for such
 property?)

 Regards
  J. Záruba

 --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/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.



Re: [appengine-java] Re: Datastore Statistics not updated for 3 days

2010-05-10 Thread Ikai L (Google)
Seems like you aren't the only one reporting this. Let me see if I can chase
down what's going on.

On Mon, May 10, 2010 at 8:56 AM, Toby toby.ro...@gmail.com wrote:

 now it is: 4 days, 12:34:38 ago
 I checked my other appengine applications and they are all about the
 same.

 On May 9, 2:25 pm, Toby toby.ro...@gmail.com wrote:
  Hello,
 
  I have some trouble with the Administration Console. Everything is
  very slow. Sometimes I get error page. The Datastore Statistics say:
 
  Last updated
  3 days, 17:59:52 ago
 
  on the right it says that there is at least one update per day. So I
  am puzzled. Maybe my application got corrupted?
 
  What can I do?
 
  Toby
 
  --
  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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/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.



Re: [appengine-java] Re: Cache pages in Memcache

2010-05-10 Thread Ikai L (Google)
In general web development, etags are discouraged because they don't work in
multiserver clusters well. They work in our deployment well for static
assets. We return the same etag for all assets for a given deployment. If
you update your deployment, even if the file has not changed, we will update
the etag.

Honestly, I would probably just stick to cache-control or the expires
header. Makes it easier to debug.

On Mon, May 10, 2010 at 2:00 PM, Nacho Coloma icol...@gmail.com wrote:

 They behave differently:

 * Cache-control (or Expires): if the resource has not expired, the
 browser will not ask for it again (unless the user hits F5 or shift
 +F5)
 * ETag (or Last-Modified): the browser will ask for the resource every
 time, but the server can return a 304 (not modified).

 You can use both at the same time, and most people do.

 On May 6, 10:10 pm, Sarath sarath...@yahoo.com wrote:
  I would suggest a controllable/Configurable ETag than Cache-Control,
  would you not Ikai?
 
  -Sarathhttp://blog.sarathonline.com
 
  On May 5, 5:21 pm, Ikai L (Google) ika...@google.com wrote:
 
 
 
   Sounds like a great idea. I agree with you. The problem with setting a
 cache
   header is that you have very little control over expiration. The nice
 thing
   about a cache that you handle at the filter level and in Memcache is
 that if
   you can regenerate the keys, you can flush the thing (or you can flush
   everything if need be).
 
   On Tue, May 4, 2010 at 4:45 PM, Sergio Lopes slo...@gmail.com wrote:
Thanks for your answers!
 
The Cache-control idea is a good one, I think I'll try something
 here.
But maybe it's a good idea to have some kind of server cache too.
 
Ehcache Web Module has a nice Java Filter that threats many corner
cases (headers, gzip, ...). The only problem is that it's too coupled
to Ehcache. I think I'll try to fork that project to use their Filter
with AppEngine's memcache :)
 
On May 4, 6:22 am, Nacho Coloma icol...@gmail.com wrote:
 Hi Sergio,
 
  I'm thinking in a Filter that put page results in memcache when
 first
  accessed, and then getting that result in former accesses.
 
 That should work. All page cache implementations do more or less
 the
 same.
 
  The idea is simple but the implementation is not. (how to get the
  first request response? how to implement proper header management
 in
  that filter? how to not disable gzip using this?)
 
 * If there is content in memcache, you can deliver it and exit.
 Otherwise, let the request proceed, and store in the cache.
 * Be sure to set the cache timeout and calculate the cache key
 correctly (e.g. include the user ID or the user locale if the
 cached
 contents depend on that).
 * For HTTP headers, this presentation may help:
   
 http://www.slideshare.net/icoloma/caching-web-contents-in-the-browser...
 
 It's  more or less the same with JSP page fragments (except the
 headers, of course). No rocket science.
 
 Cheers,
 
 Nacho.
 
 --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
.
 For more options, visit this group athttp://
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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
.
For more options, visit this group at
   http://groups.google.com/group/google-appengine-java?hl=en.
 
   --
   Ikai Lan
   Developer Relations, Google App Engine
   Twitter:http://twitter.com/ikai
   Delicious:http://delicious.com/ikailan
 
   
   Google App Engine links:
   Blog:http://googleappengine.blogspot.com
   Twitter:http://twitter.com/app_engine
   Reddit:http://www.reddit.com/r/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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
   For more options, visit this group athttp://
 

Re: [appengine-java] Deploying Google App Engine application with my own domain

2010-05-10 Thread Nick Johnson (Google)
Hi Srikanth,

You need an Apps account in order to use a domain with your App Engine app.
The Standard edtiion of Google apps is available for free, however:
http://www.google.com/apps/intl/en/group/index.html

-Nick Johnson

On Mon, May 10, 2010 at 11:29 AM, Srikanth Gade srikanth.g...@gmail.comwrote:

 Hi,

 I have only bought a domain name.
 I want to deploy App Engine application with that domain.
 Do i need to buy with Google Apps account to deploy applications to my
 domain?

 Thanks  Regards,
 Srikanth

 --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

-- 
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: one project access classes in another project in same account

2010-05-10 Thread bhomass
I also noticed that in persistence.xml, the connectionUrl is always
set to appengine. I believe this implies the java code can only access
the datastore in the same app too? Is there any loop hole to access
one of the app's datastore using some jndi url like in tomcat?

Bruce

On May 7, 4:31 pm, bhomass bhom...@gmail.com wrote:
 Ok, I had to rethink this whole thing. I don't absolutely need to do
 this with URLClassLoader. But at least, it would be great if all the
 projects in one account can share common libs. Is that possible? how
 would you do that?

 Bruce

 On May 4, 11:15 am, Don Schwarz schwa...@google.com wrote:



  Bruce, an application is the fundamental unit of isolation in App Engine.
   There are no guarantees that two applications will be available in the same
  data center, let alone loaded onto the same servers.  Each application can
  have more than one administrator, so it's unclear how any automated grouping
  of applications based on their administrator list would work.

  Is there a reason you can't just deploy all of the code you need as a single
  application?

  On Tue, May 4, 2010 at 1:08 PM,bhomassbhom...@gmail.com wrote:
   Patrick

   I don't know if you are personally involved with the restriction
   policy, but I am wondering why is this not allowed? these are apps
   belonging to the same account. there should be no security concerns.
   why this extra restriction?

   Bruce

   On May 4, 12:55 am, Patrick Cornelißen corne...@pcornelissen.de
   wrote:
Hi!

2010/5/4bhomassbhom...@gmail.com:

 using tomcat, I have been able to have one central web app access
 classes from surrounding web apps by simply using URLClassLoader based
 on the file path of the class folder.

 is there a way to do the same once I deploy to GAE?

I don't think that this is allowed, as different GAE apps are not
allowed to act as one app and this is really going into that
direction.

So I think it's technically possible, but not allowed.

--
Mit freundlichen Grüßen,  // Bye,
  Patrick Cornelißen
 http://www.openprojectguide.org
 http://www.pcornelissen.dehttp://code.google.com/p/gloudy/

--
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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
   .
For more options, visit this group athttp://
   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.comgoogle-appengine-java%2bunsubscr...@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 
  athttp://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 
 athttp://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.



Re: [appengine-java] Deploying Google App Engine application with my own domain

2010-05-10 Thread yjun hu
a brief introduction about set another domain for you GAE application here:
http://www.hapeblog.com/blog/12002

On Tue, May 11, 2010 at 8:07 AM, Nick Johnson (Google) 
nick.john...@google.com wrote:

 Hi Srikanth,

 You need an Apps account in order to use a domain with your App Engine app.
 The Standard edtiion of Google apps is available for free, however:
 http://www.google.com/apps/intl/en/group/index.html

 -Nick Johnson


 On Mon, May 10, 2010 at 11:29 AM, Srikanth Gade 
 srikanth.g...@gmail.comwrote:

 Hi,

 I have only bought a domain name.
 I want to deploy App Engine application with that domain.
 Do i need to buy with Google Apps account to deploy applications to my
 domain?

 Thanks  Regards,
 Srikanth

 --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd.
 :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

  --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
hapeblog (Blog on GAE)
http://www.hapeblog.com

-- 
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 and Google App Engine

2010-05-10 Thread Jeevan
I want to retrieve the google profile list of a users who are in the
particular domain and deploy this app in the google app engine and
then display the contents.Is this possible to do.Connecting Google App
Engine and Google Apps?

Please help us

-- 
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: Deploying Google App Engine application with my own domain

2010-05-10 Thread Didier Durand
Hi Srikanth,

The official GAEJ docs explain how to do what you want:

http://code.google.com/appengine/docs/domain.html

didier

On May 10, 12:29 pm, Srikanth Gade srikanth.g...@gmail.com wrote:
 Hi,

 I have only bought a domain name.
 I want to deploy App Engine application with that domain.
 Do i need to buy with Google Apps account to deploy applications to my
 domain?

 Thanks  Regards,
 Srikanth

 --
 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 
 athttp://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.



Re: [appengine-java] url fetch bringa up cached version of pdf file.

2010-05-10 Thread Pieter Coucke
You need to set no-cache headers because it seems the urlfetchservice caches
the responses.  I use the HttpRequest method for downloading fresh content
like this:

HTTPRequest request = new HTTPRequest(uri.toURL());
//Without these headers, AppEngine caches the url fetch
request.setHeader(new HTTPHeader(Cache-Control, no-cache,max-age=0));
request.setHeader(new HTTPHeader(Pragma, no-cache));
FutureHTTPResponse future = this.urlFetchService.fetchAsync(request);

-- 
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.