[appengine-java] Move single file to WEB-INF directory after deploy Google App Engien!

2011-10-23 Thread Rajaganapthi
I uploaded my project in Google App Engine.  I want to change a single
file in WEB-INF directory deploy in Google App Engine.  I don't want
redeploy application again.  Please help me.

Thank your,
V. Rajaganapthi

-- 
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: calling backend servlet from a corn job servlet

2011-10-23 Thread Peter Dev
?xml version=1.0 encoding=UTF-8?
cronentries
  cron
url/long-task/url
description/description
scheduleevery 30 minutes/schedule
targetname-of-the-backend/target
  /cron
/cronentries






On Oct 20, 4:16 am, fachhoch fachh...@gmail.com wrote:
 I have a heavy duty servlet whihc takes long time to run , so I added
 a   backed.xml and want to call this servlet through  a corn job
 servlet  , please tell me how to call the backend from a corn job?

-- 
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: calling backend servlet from a corn job servlet

2011-10-23 Thread Peter Dev
http://www.pdjamez.com/2011/05/google-app-engine-backends-part-deux/





On Oct 23, 5:42 pm, Peter Dev dev133...@gmail.com wrote:
 ?xml version=1.0 encoding=UTF-8?
 cronentries
   cron
     url/long-task/url
     description/description
     scheduleevery 30 minutes/schedule
     targetname-of-the-backend/target
   /cron
 /cronentries

 On Oct 20, 4:16 am, fachhoch fachh...@gmail.com wrote:







  I have a heavy duty servlet whihc takes long time to run , so I added
  a   backed.xml and want to call this servlet through  a corn job
  servlet  , please tell me how to call the backend from a corn job?

-- 
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: createEntityManager() taking too long

2011-10-23 Thread Casey
I too am seeing times of 6 seconds or more when createEntityManager()
is called. Were you able to find a work around? This is causing a lot
of extra instances to be spun up. At least 5 for a single user.

On Sep 28, 4:47 pm, Sekhar allur...@gmail.com wrote:
 I'm using JPA and see that calls to createEntityManager() are taking several
 seconds (e.g., 6 seconds). This is with HRD and reserved instances. And it's
 not the first time either, subsequent calls are also slow. Is anyone else
 seeing this, and is there a way to speed these up?

-- 
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: Serious Performance Issues Due To Constant Startup of New Instances

2011-10-23 Thread Casey
So I've rewired the application using Guice and I've completely
ditched Spring. The application is a little faster but new instances
are constantly being spooled up. Right now, it appears as if the
command EntityManager entityManager =
EMF.get().createEntityManager(); is taking at least 6 seconds and
that delay is causing new instances to be spun up. Of course that
command is called every time I query datastore.

On Oct 20, 10:57 am, Casey j.casey.one...@gmail.com wrote:
 I've been developing an application for quite some time and I always
 noticed the following things while testing:

 - The first hit to the quiet server took a long time due to
 application startup. Anywhere from 10-30 seconds. Sometimes I see 60
 seconds.
 - Performance would be ok but it seems like a lot of extra instances
 would be spun up with just a single user. That's even with safe
 threading enabled.
 - Of course after a few minutes of idle time the instance would spin
 down and then the next request would take a long time to process while
 a new instance was spooled up

 I should also mention that I'm using GWT with RPC and I'm using Spring
 to manage all of my services. I do think that the use of Spring is why
 my application takes so long to start up. Since the datastore EMF
 handles my transactions I really only use the spring framework to
 provide dependency access to singleton beans across servlets and RPC
 services. But the primary reason I use Spring is for the session
 scoped bean so that I can store objects in the session. I actually
 don't store much in the session, just the current user id so
 performance should be OK.

 During QA I was kind of OK with with the bad performance because I
 attributed the delays with the spooling up of instance #1. Yesterday I
 enabled the persistent instances where I pay $9 a month to have three
 instances constantly powered on and waiting. That seemed to work at
 first. My first hit to server where I access a JSP is pretty fast.
 Login then takes awhile and then my first RPC call took forever. When
 I looked at the instances it made sense. Even though there were three
 instances waiting for traffic, for some reason, a single user
 accessing the server caused another three instances to be spooled up
 for a total of six. Again, this is just for a single user accessing
 the system.

 I've since accessed appstats and inserted a bunch of logging
 statements. As far as I can tell, all of my datastore requests are
 100ms. Since some RPC calls make multiple calls to the DB I see some
 request times around 0.5s or 1s. I wouldn't think that such a time
 would cause additional instances to be spun up. So my only guess as to
 why additional instances keep getting spun up is that Spring is taking
 forever to load the small configuration files. It also looks like
 Spring isn't initialized until login is called. Post access to the
 JSP.

 So what do I do? I've tried to optimize Spring startup as much
 possible but that clearly doesn't seem to be working. Does anyone have
 any suggestions or do I have to figure out how to completely ditch
 Spring and use Guice for my dependency injection. If that's true, what
 do I do about the session scoped bean? I found a bunch a GAE session
 projects for python but so far I haven't found one for managing
 session objects in java. Does anyone have any ideas?

-- 
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: Serious Performance Issues Due To Constant Startup of New Instances

2011-10-23 Thread Miroslav Genov
We had a similar issue with JDO, so we switched to twig-persist which starts 
faster then JDO and has a really nice API. 

About spinning, you can specify how long GAE can wait for new request to 
complete, until start a new instance of the application to handle it. You 
can check this options in the Application Settings page in the admin panel 
of your application under label Performance. 

-- 
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/-/mkBjmnYoTtoJ.
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: Serious Performance Issues Due To Constant Startup of New Instances

2011-10-23 Thread Thomas Wiradikusuma
I was using Spring, Spring Security, Sitemesh, JSP and Objectify.
Sometimes I experienced deadline exception (remember last time request
timeout was set to 30sec).

Now that I use JSP, Servlet, Objectify and custom Sitemesh, it takes
less than 5secs to warmup.


On Oct 24, 3:16 am, Miroslav Genov mge...@gmail.com wrote:
 We had a similar issue with JDO, so we switched to twig-persist which starts
 faster then JDO and has a really nice API.

 About spinning, you can specify how long GAE can wait for new request to
 complete, until start a new instance of the application to handle it. You
 can check this options in the Application Settings page in the admin panel
 of your application under label Performance.

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



[google-appengine] Re: I should not Pay Tax in Google app Engine

2011-10-23 Thread Philip
If you have a european VAT ID GAE is tax free under some
circumstances. However, you can't edit the VAT ID, so even if you get
one you won't have any benefits.

On Oct 22, 11:38 pm, Stéphane Cohen s...@econsulting.fr wrote:
 Hi,

 every week GAE is sending be an invoice for the price of resources
 consumed + US tax for the app ID : share-gmail-contacts

 However, as I am not a US resident I am not suposed to pay this tax.

 Can you revise my account in order to bill me my resource consumtion
 WITHOUT tax?

 Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] HRD uses more datastore writes?

2011-10-23 Thread Stephen
On Tue, Oct 18, 2011 at 8:46 PM, Jason Collins
jason.a.coll...@gmail.com wrote:
 I had a M-S app that was very regularly, daily, using around .73M
 datastore writes for a daily cost of around $0.68.

 I used the automatic migration tool to migrate this app to HRD.

 Now, it uses around 1.44M datastore writes for a daily cost of around
 $1.39 (or roughly double).

 Is this correct? Does the HRD really consume double the number of
 writes?

Stray indexes?

If you haven't deleted the old app yet you could compare the old and
new using something like this: https://gist.github.com/715284

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Filter Key

2011-10-23 Thread Max
Do someone know how to sort it out?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/RTdz9gXXFlYJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] The Dining Philosophers

2011-10-23 Thread Emlyn
Here's a new AppEngine article from me, The Dining Philosophers. It
includes a full working implementation of Semaphores using the
Datastore, and implementation of flawed and successful solutions to
the classic Dining Philosophers problem using Semaphores.

http://appenginedevelopment.blogspot.com/2011/10/dining-philosophers.html

Fun for hard core comp sci types ;-)

-- 
Emlyn

http://my.syyn.cc - Synchonise Google+, Facebook, WordPress and Google
Buzz posts,
comments and all.
http://point7.wordpress.com - My blog
Find me on Facebook and Buzz

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Mail API stops sending email from one admin address, still sends from others

2011-10-23 Thread Nevin Freeman
Hmm, anyone else? This will become a *serious* issue if it happens
again with another address. I'm guessing there must be a logical
explanation.

Nevin

On Oct 21, 8:25 am, Leandro Rezende leandro.reze...@gmail.com wrote:
 I have the same problem,  but in the same google account in different
 applications. i dont know what to do.

 when the problem begin to happend, i have to create a new google
 application, copy all the data from the old datastore to it, and deploy the
 application again. So at the new application, it works. Them i delete the
 bugged application.

 at least u are sending 10k email, i cant send more than 30 and it bugs.

 2011/10/21 Nevin Freeman nevin.free...@gmail.com







  My app sends an email to about 10k people every morning (we are a news
  website, and send out an alert that tells people what the new stories
  are). Until today it's worked really well (for over a year). It sends
  from an address that is registered as an admin (since that's required)
  which is not used by anyone other than the app for this purpose.

  Starting today, calls to the Mail API cause an email to be sent
  *unless* the sender is that address. I noticed this when the daily
  emails weren't actually sent out, and did some testing with the remote
  shell:

  riabizdev test_two = mail.EmailMessage(sender='ne...@riabiz.com',
  to='nevin.free...@gmail.com', subject='TEST', body='TEST')
  riabizdev test_two.send()  # Actually works, the email hits my inbox

  riabizdev test_two = mail.EmailMessage(sender='f...@riabiz.com',
  to='nevin.free...@gmail.com', subject='TEST', body='TEST')
  riabizdev test_two.send()  # Doesn't throw an error, but no email
  ever makes it

  The first obvious mishap would be that the emails are getting filtered
  into people's spam folder. I use an invisible image to track email
  opens though, and zero were opened today, as compared to many
  thousands on an average day, so I'm very confident that this isn't the
  problem. I at least know for sure that my test emails never made it to
  my own spam folder.

  I tried sending out the batch of 10k a few times during the day and
  got nothing. At the end of this testing, I swapped out another admin
  email and it worked fine. Any ideas?

  Thanks!
  Nevin

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Filter Key

2011-10-23 Thread Amy Unruh
Max,

It looks like you need to be working with a string-encoded key when you
generate the client-side pages, which you can then convert back to a Key
server-side as needed.  You can obtain the string-encoded version by passing
the Key object to str(). See
http://code.google.com/appengine/docs/python/datastore/keyclass.html for
details.

 -Amy

On Sun, Oct 23, 2011 at 10:25 PM, Max massimiliano.pietr...@gmail.comwrote:

 Do someone know how to sort it out?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/RTdz9gXXFlYJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Mail API stops sending email from one admin address, still sends from others

2011-10-23 Thread Leandro Rezende
did u try to create another app and deploy your code? did it work?

2011/10/23 Nevin Freeman nevin.free...@gmail.com

 Hmm, anyone else? This will become a *serious* issue if it happens
 again with another address. I'm guessing there must be a logical
 explanation.

 Nevin

 On Oct 21, 8:25 am, Leandro Rezende leandro.reze...@gmail.com wrote:
  I have the same problem,  but in the same google account in different
  applications. i dont know what to do.
 
  when the problem begin to happend, i have to create a new google
  application, copy all the data from the old datastore to it, and deploy
 the
  application again. So at the new application, it works. Them i delete
 the
  bugged application.
 
  at least u are sending 10k email, i cant send more than 30 and it bugs.
 
  2011/10/21 Nevin Freeman nevin.free...@gmail.com
 
 
 
 
 
 
 
   My app sends an email to about 10k people every morning (we are a news
   website, and send out an alert that tells people what the new stories
   are). Until today it's worked really well (for over a year). It sends
   from an address that is registered as an admin (since that's required)
   which is not used by anyone other than the app for this purpose.
 
   Starting today, calls to the Mail API cause an email to be sent
   *unless* the sender is that address. I noticed this when the daily
   emails weren't actually sent out, and did some testing with the remote
   shell:
 
   riabizdev test_two = mail.EmailMessage(sender='ne...@riabiz.com',
   to='nevin.free...@gmail.com', subject='TEST', body='TEST')
   riabizdev test_two.send()  # Actually works, the email hits my inbox
 
   riabizdev test_two = mail.EmailMessage(sender='f...@riabiz.com',
   to='nevin.free...@gmail.com', subject='TEST', body='TEST')
   riabizdev test_two.send()  # Doesn't throw an error, but no email
   ever makes it
 
   The first obvious mishap would be that the emails are getting filtered
   into people's spam folder. I use an invisible image to track email
   opens though, and zero were opened today, as compared to many
   thousands on an average day, so I'm very confident that this isn't the
   problem. I at least know for sure that my test emails never made it to
   my own spam folder.
 
   I tried sending out the batch of 10k a few times during the day and
   got nothing. At the end of this testing, I swapped out another admin
   email and it worked fine. Any ideas?
 
   Thanks!
   Nevin
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to google-appengine@googlegroups.com
 .
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.