[appengine-java] Re: Maven

2009-08-24 Thread Marcel Overdijk

Thanks Alexei,

I just don't understand why Google has not pushed it to
http://code.google.com/p/google-maven-repository
Should be part of there release plan!

On Aug 24, 5:56 am, Alexei Vidmich ale...@vidmich.com wrote:
 I managed to setup maven descriptor so that I can build and enhance
 classes.
 I execute mvn clean package when I want to build it and it works
 just fine.

 I add the following pieces to my pom.xml file at the appropriate
 locations:
     properties
         appengine.version1.2.2/appengine.version
         appengine.sdk.dir[path-to-appengine-SDK]/appengine.sdk.dir
     /properties

             plugin
                 groupIdorg.apache.maven.plugins/groupId
                 artifactIdmaven-antrun-plugin/artifactId
                 version1.3/version
                 executions
                     execution
                         phaseprocess-classes/phase
                         goals
                             goalrun/goal
                         /goals
                         configuration
                             tasks
                                 property file=maven-
 build.properties/
                                 property
 name=appengine.tools.classpath
                                           location=$
 {appengine.sdk.dir}/lib/appengine-tools-api.jar/

                                 path id=build.classpath
                                     fileset dir=$
 {maven.repo.local}
                                       include name=junit/junit/4.5/
 junit-4.5.jar/
                                       include name=javax/servlet/
 servlet-api/2.5/servlet-api-2.5.jar/
                                       include name=org/
 springframework/org.springframework.core/3.0.0.M3/
 org.springframework.core-3.0.0.M3.jar/
                                       include name=org/apache/
 commons/com.springsource.org.apache.commons.logging/1.1.1/
 com.springsource.org.apache.commons.logging-1.1.1.jar/
                                       include name=org/
 springframework/org.springframework.beans/3.0.0.M3/
 org.springframework.beans-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.context/3.0.0.M3/
 org.springframework.context-3.0.0.M3.jar/
                                       include name=org/aopalliance/
 com.springsource.org.aopalliance/1.0.0/
 com.springsource.org.aopalliance-1.0.0.jar/
                                       include name=org/
 springframework/org.springframework.asm/3.0.0.M3/
 org.springframework.asm-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.aop/3.0.0.M3/
 org.springframework.aop-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.expression/3.0.0.M3/
 org.springframework.expression-3.0.0.M3.jar/
                                       include name=org/antlr/
 com.springsource.org.antlr/3.0.1/com.springsource.org.antlr-3.0.1.jar/

                                       include name=org/
 springframework/org.springframework.transaction/3.0.0.M3/
 org.springframework.transaction-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.web.servlet/3.0.0.M3/
 org.springframework.web.servlet-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.web/3.0.0.M3/
 org.springframework.web-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.oxm/3.0.0.M3/
 org.springframework.oxm-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.test/3.0.0.M3/
 org.springframework.test-3.0.0.M3.jar/
                                       include name=com/google/
 appengine/appengine-api-1.0-sdk/1.2.2/appengine-api-1.0-sdk-1.2.2.jar/

                                       include name=com/google/
 appengine/appengine-api-1.0-stubs/1.2.2/appengine-api-1.0-
 stubs-1.2.2.jar/
                                       include name=com/google/
 appengine/appengine-api-1.0-runtime/1.2.2/appengine-api-1.0-
 runtime-1.2.2.jar/
                                       include name=com/google/
 appengine/appengine-tools-sdk/1.2.2/appengine-tools-sdk-1.2.2.jar/
                                       include name=com/google/
 appengine/orm/datanucleus-appengine/1.0.2/datanucleus-
 appengine-1.0.2.jar/
                                       include name=org/datanucleus/
 datanucleus-core/1.1.4/datanucleus-core-1.1.4.jar/
                                       include name=javax/transaction/
 transaction-api/1.1/transaction-api-1.1.jar/
                                       include name=org/apache/
 geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-
 jta_1.1_spec-1.1.1.jar/
                                       include name=javax/jdo/jdo2-
 api/2.3-ea/jdo2-api-2.3-ea.jar/
                           

[appengine-java] Re: Request to update jars in http://google-maven-repository.googlecode.com

2009-08-25 Thread Marcel Overdijk

+1

On Aug 25, 8:00 pm, Philippe Marschall philippe.marsch...@gmail.com
wrote:
 On Aug 25, 6:37 pm, David david.yu@gmail.com wrote:

  Hi,

  1.2.2 had been released more than a month ago but was not uploaded on
  the repository.
  The latest in there is 1.2.1

 +1
--~--~-~--~~~---~--~~
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: selective deployment to GAE

2009-09-10 Thread Marcel Overdijk

I'm really wondering what you use case is...

Sounds like you want some branching, so indeed use a version control
system like Toby mentioned.

On Sep 10, 8:14 pm, Vik vik@gmail.com wrote:
 hie..
 the concern is:

 In my app say i change 2 files and click on deploy then as u said it will
 update both the files. But how to do if i just want to update one of these
 two files only rather both?

 Thankx and Regards

 Vik
 Founderwww.sakshum.comwww.sakshum.blogspot.com



 On Thu, Sep 10, 2009 at 11:15 PM, Toby Reyelts to...@google.com wrote:
  Can you elaborate on what you want? If you're concerned about speed to
  upload, appcfg only uploads files which have changed since your last upload.
  If you're concerned about source code management, you really should be using
  a version control system for that task.

  On Thu, Sep 10, 2009 at 1:34 PM, Vik vik@gmail.com wrote:

  any updates please..
  Thankx and Regards

  Vik
  Founder
 www.sakshum.com
 www.sakshum.blogspot.com

  On Wed, Sep 9, 2009 at 6:05 PM, Vik vik@gmail.com wrote:

  Hie
  Most of the time I have some modified files in my app which I dont want
  to push to GAE while deployment. Is there any way to select the files
  I want to push?

  This is like a svn feature where i can see check modified files and can
  just commit some of the files as a part of my bug fix.

  This is very much needed  to me and many people like me.

  Thankx and Regards

  Vik
  Founder
 www.sakshum.com
 www.sakshum.blogspot.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-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: Expression Language does not get evaluated in JSP

2009-09-10 Thread Marcel Overdijk

This is a known issue. See
http://code.google.com/p/googleappengine/issues/detail?id=1478q=isELIgnoredcolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component

Cheers,
Marcel

On Sep 10, 8:25 pm, Java_GAE next.is@gmail.com wrote:
 Hi,

 When I use EL in JSP, I am getting unprocessed EL in the output. But
 when I add page directive %@ page isELIgnored=false % to the JSP
 pages, everything works fine. I observed that I need to add this
 directive only in App Engine projects while other projects work fine
 even without this directive. Please guide.

 Thanks in advance.

 I use Eclipse Ganemede on Windows Vista.

 Regards
--~--~-~--~~~---~--~~
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] Cascade delete

2009-09-21 Thread Marcel Overdijk

I have a Drinks entity which just contains a key which holds a String
to indicate the drink. Like Coca Cola, Pepsi, etc.
In my User entity I like to connect one or more favourite drinks of
the user.

I'm wondering if I delete a Drink if it will be removed from the users
automatically?

Theoretically this could be millions of users. So if need to it
manually I need to check all users and remove it. I guess this could
take more then the so important 30 secs.






--~--~-~--~~~---~--~~
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: subquries example

2009-09-22 Thread Marcel Overdijk

Aggregate functions are not supported. You should compute aggregate
values during write time.

(don't shoot the messenger ;-)

On Sep 22, 11:38 am, rams hookr...@gmail.com wrote:
 hi

 i want to know that

 does java app engine has a support for subqueries in jdo ?
 does java app engine has a support for  aggregate functions of jdo?

 if it supports  please send me one example on subqueries in jdo.

 if it doesn't has support for aggregate function then how to manage
 queries that contains aggregate functions?
--~--~-~--~~~---~--~~
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: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-23 Thread Marcel Overdijk

I think the docs about low level api is rather limited. Some examples
would be nice.

On Sep 23, 4:33 pm, Clay Lenhart c...@lenharts.net wrote:
 +1

 We're having a similar discussion here:

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

 Andy,
 My view is that there is no productivity difference between the two.

 It might be good to show us what is difficult to do in the datastore
 but easy in JDO.

 Cheers,
 Clay

 On Sep 23, 11:02 am, datanucleus andy_jeffer...@yahoo.com wrote:



   BigTable simply is not a relational db, so it is highly misleading to
   fake a relational wrapper and to me it caused lots of pain.

  Apart from the fact that JDO is not a relational wrapper. The API
  and metadata are object-based; only a subset of metadata is specific
  to mapped datastores and this is marked clearly in the (DataNucleus)
  docs.

  As ever, if you have some specific issue to raise why not define it -
  e.g something that can be done in the low level API that can't be done
  via a generic API.
--~--~-~--~~~---~--~~
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: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread Marcel Overdijk

@Diana

Currently there is only real docs for JDO.
I think same documentation should be available for JPA and low-level
API.
Concentrating on practical exmaples.

On Sep 24, 7:09 am, Diana Cruise diana.l.cru...@gmail.com wrote:
 Could you supply some briefs on your findings?  This is exactly the
 type of feedback we need in this forum to help us who are starting new
 projects to best decide on what APIs and designs to use.

 For example, if you could summarize your handling of this simple
 relation that is in ALL apps:  Entity A and B are related to each
 other via C.  So, A is 1-many with C and B is 1-many with C...so C is
 a many-to-many.  Surely, you have this in your app.  How do you
 compare your JDO implementation of these 3 Entities with your low-
 level API implementation?  Perhaps you could include some simple code
 to illustrate your points.

 Seems I've only seen very basic examples like Hello World.  Really,
 nothing beyond 1 relation...which is very limited and thus, ALL THE
 PERSISTENCE CONFUSION around here...

 Thanks.

 On Sep 23, 4:40 am, dflorey daniel.flo...@gmail.com wrote:



  I've just refactored my app to use Low-Level API instead of JDO and
  it's much cleaner, works more reliable etc.
  If you are not really forced to use JDO/JPA I'd strongly recommend to
  use the very simple, elegant and clean Low-Level API.
  BigTable simply is not a relational db, so it is highly misleading to
  fake a relational wrapper and to me it caused lots of pain.
--~--~-~--~~~---~--~~
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: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread Marcel Overdijk

The best example I could find was:

 // Get a handle on the datastore itself
 DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();

 // Lookup data by known key name
 Entity userEntity = datastore.get(KeyFactory.createKey(UserInfo,
email));

 // Or perform a query
 Query query = new Query(Task, userEntity);
 query.addFilter(dueDate, Query.FilterOperator.LESS_THAN, today);
 for (Entity taskEntity : datastore.prepare(query).asIterable()) {
   if (done.equals(taskEntity.getProperty(status))) {
 datastore.delete(taskEntity);
   } else {
 taskEntity.setProperty(status, overdue);
 datastore.put(taskEntity);
   }

But is 1 datastore factory ok or should I create different ones?


On Sep 24, 11:21 am, iker98 ike...@gmail.com wrote:
 +1, I agree with this approach.

 I like the great flexibility and control that the low-level API gives
 me.

 I would like documentation about low-level API programming.The API is
 very simple but I have some doubts.
 For example,  It is not necessary to close the DatastoreService after
 using? It's very confortable but it seems odd.

 Thanks

 On Sep 23, 11:40 am, dflorey daniel.flo...@gmail.com wrote:



  I've just refactored my app to use Low-Level API instead of JDO and
  it's much cleaner, works more reliable etc.
  If you are not really forced to use JDO/JPA I'd strongly recommend to
  use the very simple, elegant and clean Low-Level API.
  BigTable simply is not a relational db, so it is highly misleading to
  fake a relational wrapper and to me it caused lots of pain.
--~--~-~--~~~---~--~~
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: Java vs. Python X-AppEngine-Estimated-CPM-US-Dollars

2009-10-20 Thread Marcel Overdijk

Is there any other way to keep an instance warm?

Startup of instance just takes to much time to have an effective GAE/J
application...

On 19 okt, 22:58, Jason (Google) apija...@google.com wrote:
 To answer your question, no, having a cron job run every minute to keep an
 instance warm will not work. If all application instances have spun down,
 then a fresh HTTP request will require a new instance to be created, which
 will incur the startup costs.

 - Jason



 On Fri, Oct 16, 2009 at 6:45 AM, Toby tobias.ro...@sunnymail.mobi wrote:

  That is an interesting thread.  I was asking myself the same question.
  My problem is, that I have some expensive initialization that is done
  when the webapp is initialized.  I recognized that the very first
  request (after a longer time of idle) takes a lot of time. And as you
  say is expensive.
  I wonder if it would make sense to have a cron job that runs every
  minute to prevent this?

  On Oct 15, 10:52 pm, Timwillhack timwillh...@gmail.com wrote:
   I should probably point out that when I say 'Timed out' I really mean,
   clean start after waiting say 10 minutes to refresh a page, its not a
   30 second endless while loop or anything, its actually just outputting
   one character from a string array.

   On Oct 15, 2:46 pm, Timwillhack timwillh...@gmail.com wrote:

I was just curious if the initialization of the Java VM is actually
charged a client?  Here are some sample headers from Java vs. Python
after letting the server timeout:

VERY EXPENSIVE JAVA (timed out - guessing restarting VM):
X-AppEngine-Estimated-CPM-US-Dollars: $0.149171
X-AppEngine-Resource-Usage: ms=4152 cpu_ms=6440 api_cpu_ms=0

X-AppEngine-Estimated-CPM-US-Dollars: $0.145377
X-AppEngine-Resource-Usage: ms=3890 cpu_ms=6276 api_cpu_ms=0

Cheap JAVA (quick refresh):
X-AppEngine-Estimated-CPM-US-Dollars: $0.000168
X-AppEngine-Resource-Usage: ms=41 cpu_ms=3 api_cpu_ms=0

X-AppEngine-Estimated-CPM-US-Dollars: $0.000189
X-AppEngine-Resource-Usage: ms=19 cpu_ms=4 api_cpu_ms=0

CHEAP PYTHON FRESH START (waited about 10 mins before connecting):
X-AppEngine-Estimated-CPM-US-Dollars: $0.002778
X-AppEngine-Resource-Usage: ms=103 cpu_ms=116 api_cpu_ms=0

X-AppEngine-Estimated-CPM-US-Dollars: $0.002778
X-AppEngine-Resource-Usage: ms=106 cpu_ms=116 api_cpu_ms=0

PYTHON RECONNECT QUICKLY:
X-AppEngine-Estimated-CPM-US-Dollars: $0.000231
X-AppEngine-Resource-Usage: ms=7 cpu_ms=6 api_cpu_ms=0

Python is reporting very very very cheaper pricing per 1000.  Is this
the case or does google not really charge for the initialization for
java?  I sat here refreshing a page with a friend doing the same, out
of the 40 or so requests about 4 were skyrocketed in price.  This
makes me very wary about making something that is hit excessively,
since it seems like each instance is only taking 10 requests each per
minute or whatver

Yuck, are my numbers flawed or something?  Or is Python just so much
more efficient to use on app engine?
--~--~-~--~~~---~--~~
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: How to view log file locally?

2009-10-20 Thread Marcel Overdijk

It's not the question if it's worth learning Maven.
It's the question how to read log files locally.

Would it be possible to run the Google admin console locally and read
the log files?

On 15 okt, 20:48, Rusty Wright rwright.li...@gmail.com wrote:
 Think long term; maven is a mountain worth climbing.



 Esteban Masoero wrote:
  Allright, that could work.
  However, as my current project is indeed a small project, I don't feel
  like adding maven to it, because it would involve learning maven and
  configuring it only to solve that problem. So althought I'll have that
  in mind, I'd rather see whether there's another easier way to solve this.

  Any other ideas?

  Esteban

  Rusty Wright escribió:
  This is one of those places where maven can really help.  With maven I 
  think what I would do is create 2 log configuration files for log4j 
  (although I prefer logback and slf4j, but that's a separate topic), one 
  with local logging to a file and the console, and one with logging only to 
  the console.  Then set up maven profiles, call them dev and prod, and when 
  you build, maven's filtering capabilities rewrite whatever config file 
  you're using that specifies the log config file.  (It doesn't rewrite it 
  in place, but before it puts it in the war file.)  If you don't have a 
  config file that specifies the log config file I'm pretty sure you can 
  have maven use the appropriate log config file via the profile you select 
  when you build.

  In this GAE development environment you may not even need all of that.  
  With maven you have 2 trees, main, where the production code and resources 
  live, and test, where your unit and integration test code lives, and their 
  resources.  Notice how each has their own resources directory; that's 
  where I put my log4j config files, one for main, and one for test.  When I 
  do a build maven only includes the stuff from the tree named main; the 
  tree test never sees the light of day, as it were.

   http://www.sonatype.com/documentation/books
   http://www.maestrodev.com/better-build-maven

  Marcel Overdijk wrote:

  Esteban, that's indeed THE question !

  Did you tried to deploy a app with a file appender? What happened?

  On 14 okt, 18:01, Esteban Masoero emaso...@getsense.com.ar wrote:

  I tried configuring a file appender with log4j and it worked only in
  development environment, because as we know, no file writing is allowed
  in production environment.

  Maybe the question should be: is there an easy way to define a file
  appender so I can use only locally, but without having to change that
  .properties when deploying on production environment?

  If anyone has the answer, I'll appreciate it.

  Thanks,

  Esteban

  आलोक (Alok) escribió:

  hm, I'm not sure if
  appcfg.py request_logs myapp/ mylogs.txt
  would work for the java app as well. Has anyone used this for their
  java app?
  On 14 अक्तू, 12:50, leszek leszek.ptokar...@gmail.com wrote:

  For me default ConsoleAppender is enough, I see log messages on
  console while running in Eclipse and can view log messages via admin
  console in production environment. But I did not try to define any
  other appenders, so can guess only what would happen.
--~--~-~--~~~---~--~~
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: Spring MVC + Sitemesh problem

2009-10-24 Thread Marcel Overdijk

I'm successfully using Spring 3.0.0 RC1 with Sitemesh 2.4.2.
I'm currently developing the app, but after I red this post I tried on
GAE infra with simple decorator. Works well for m.

On 23 okt, 19:00, Jason (Google) apija...@google.com wrote:
 Yes, please try changing the log levels to .INFO or .FINEST -- it's possible
 that the log output that the frameworks are generating is just not getting
 surfaced because of the default logging level.

 After you deploy, you say that all you see is an empty site. Have you tried
 refreshing several times to see if your application eventually appears? This
 could point to a failed initialization and HardDeadlineExceeded error.
 Please post your application ID so we can determine this for certain.

 - Jason

 On Wed, Oct 21, 2009 at 11:20 AM, Abhinav Lele abhinav.l...@gmail.comwrote:





  Have you tried increasing the log levels ?
   --
  Abhinav

  -Original Message-
  From: appenginetester jsand...@zerofeelistings.com
  Sent: 21 October 2009 23:46
  To: Google App Engine for Java google-appengine-java@googlegroups.com
  Subject: [appengine-java] Re: Spring MVC + Sitemesh problem

  Thanks for this post, i thought i was going insane. I have deployed
  and redeployed dozens of times and see the same isssue -- empty site,
  no logs. Everything works fine in local eclipse environment. The
  deplyment to the app engine works with no errors. But when I access
  the application, there is an empty site and no logs on the server.

  On Oct 20, 5:35 am, Shponter shpon...@gmail.com wrote:
   Hi everybody!

   I'm using Spring MVC (3.0.0.RC1) with Sitemesh (2.4.2).
   Locally it works fine - generated jsp is decorated by sitemesh.
   When I deploy application on AppEngine I get empty site.
   There is also no exceptions or log messages...
   I don't have any ideas how to solve this...

   Cheers
--~--~-~--~~~---~--~~
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: Is there a recommended way to differentiate between production and dev GAE environments?

2009-11-24 Thread Marcel Overdijk
Or use a Listener as described here
http://marceloverdijk.blogspot.com/2009/10/determining-runtime-environment-on.html

On 23 nov, 15:58, Nacho Coloma icol...@gmail.com wrote:
 To answer my own question, this has been my best shot this far:

 SecurityManager sm = System.getSecurityManager();
 localDevelopmentEnvironment = sm == null ||
 com.google.appengine.tools.development.DevAppServerFactory
 $CustomSecurityManager.equals(sm.getClass().getName());

 If anyone has a better way, I will be glad to hear.

 On Nov 23, 1:17 pm, Nacho Coloma icol...@gmail.com wrote:



  Hi all,

  I was considering options, but I first wanted to ask: is there a
  recommended way to differentiate between my local development
  environment and the real GAE server? This far, the only options I can
  think of are:

  * adding a -Dtest=true to my eclipse launcher

  * looking up for any test environment classes (Class.forName) but it's
  not reliable as they could get included by mistake in any WAR release.

  * I have been searching for instanceof alternatives i.e.:
  DatastoreServiceFactory.getService() instanceof LocalDatastoreService
  but I could not find any such expression that could possibly work.

  Ideas? What are people using out there?

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




[appengine-java] Import/export for Java

2009-11-25 Thread Marcel Overdijk
I'm wondering how the Java utility for exporting/importing data is
making progress.

It's already available for Python but not for Java SDK.

--

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: Import/export for Java

2009-11-25 Thread Marcel Overdijk
Thanks for info Ikai.

But I'm wondering if there is any information available about the Java
exporter/importer.

On 25 nov, 19:44, Ikai L (Google) ika...@google.com wrote:
 In the meantime, there are a few articles about how to do this using the
 Python loader for your Java app:

 http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loadi...

 http://appengine-cookbook.appspot.com/recipe/using-the-python-bulk-ex...

 On Wed, Nov 25, 2009 at 6:50 AM, Marcel Overdijk
 marceloverd...@gmail.comwrote:





  I'm wondering how the Java utility for exporting/importing data is
  making progress.

  It's already available for Python but not for Java SDK.

  --

  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.

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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] Serving images from datastore or jar?

2009-12-17 Thread Marcel Overdijk
My application contains approx 5000 images related to teams (each team
has it's own logo).

I was thinking about serving them from a jar file.
I'm wondering if it would be better to serve them from the datastore
and possible store/retrieve most used logos in memcache.

What would a better solution in terms of performance and billing?

--

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] Meassuring Loading Request

2009-12-18 Thread Marcel Overdijk
On http://code.google.com/intl/nl/appengine/kb/java.html#performance
there is info how to write a listener to log loading requests.
Would it also be possible to log how much time a loading request
caused?

--

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: Web.xml 2.5 Includes

2009-12-22 Thread Marcel Overdijk
Im wondering the same. Did you solve this problem?

On 11 dec, 02:35, laserjim laser...@gmail.com wrote:
 Hello,

 I'm trying to include some tag library descriptors at the top of all
 my jsps.

         jsp-config
                 jsp-property-group
                         url-pattern*.jsp/url-pattern
                         include-prelude/META-INF/tlds.jspf/include-prelude
                 /jsp-property-group
         /jsp-config

 But GAE just ignores the web 2.5 directive.

 Are there any work-arounds?  Anyone found a nice method of doing
 global includes?

 Thanks!

--

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: web.xml version=2.5 is not supported

2009-12-22 Thread Marcel Overdijk
Does the proposed solution works? Do el-ignored and include-prelude
work then?

I'm feeling a little bit uneased about doing this. I'm afraid I will
be running in different unexpected errors.

I'm also wondering what Google's statement on this would be?


Cheers,
Marcel

--

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: web.xml version=2.5 is not supported

2009-12-22 Thread Marcel Overdijk
OK thanks,

To be honest - looking at other thread - I think Google is not always
that fast in responding.
But maybe this time we get a response.

I must admit that I'm a little bit spoiled by Grails user list in
which we get almost instant answers ;-)


On Dec 22, 2:01 pm, Nacho Coloma icol...@gmail.com wrote:
 Hi Marcel,

 The proposed solution will only substitute the EL engine, which would
 allow you to use a broader set of ${...} expressions. AFAIK, it would
 not affect to the interpretation of web.xml.

 I am also waiting for some attention from Google  about this bug.

 On Dec 22, 12:31 pm, Marcel Overdijk marceloverd...@gmail.com wrote:



  Does the proposed solution works? Do el-ignored and include-prelude
  work then?

  I'm feeling a little bit uneased about doing this. I'm afraid I will
  be running in different unexpected errors.

  I'm also wondering what Google's statement on this would be?

  Cheers,
  Marcel

--

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

2009-12-22 Thread Marcel Overdijk
I have a jar file which is to big so I got this message while
uploading my app:

Unable to update app: Found a jar file too large to upload: D:\Users
\MOVERD~1\AppData\Local\Temp\appcfg5433596470093952667.tmp\WEB-INF\lib
\footdex-resources.jar.  Consider using --enable_jar_splitting.

See the deployment console for more details
Unable to update app: Found a jar file too large to upload: D:\Users
\MOVERD~1\AppData\Local\Temp\appcfg5433596470093952667.tmp\WEB-INF\lib
\footdex-resources.jar.  Consider using --enable_jar_splitting.

GAE hint to use something like --enable_jar_splitting (command line
argument?), but I can nowhere find any documentation about this.

Can I also use this from Eclipse plugin?

--

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: --enable_jar_splitting

2009-12-22 Thread Marcel Overdijk
Hi Don,

The jar contains a lot of images so it doesn't matter that files need
to be in the same - splitted - jar.
In fact the --enable_jar_splitting sounds perfect for me as I don't
have to do the work myself: just maintain one single jar with the
images, and let gae deployment split them up if necessarily.

How can I enable --enable_jar_splitting for my app? I'm deploying my
app using the eclipse plugin.


On Dec 22, 6:17 pm, Don Schwarz schwa...@google.com wrote:
 I would recommend that you simply split it into arbitrary pieces yourself.
  --enable_jar_splitting is a workaround to have the deployment tool do this
 itself, but this can cause problems with some libraries (e.g. if it expects
 to find a resource file and a class file in the exact same jar) so I would
 recommend trying it manually yourself.

 On Tue, Dec 22, 2009 at 10:01 AM, Marcel Overdijk
 marceloverd...@gmail.comwrote:



  I have a jar file which is to big so I got this message while
  uploading my app:

  Unable to update app: Found a jar file too large to upload: D:\Users
  \MOVERD~1\AppData\Local\Temp\appcfg5433596470093952667.tmp\WEB-INF\lib
  \footdex-resources.jar.  Consider using --enable_jar_splitting.

  See the deployment console for more details
  Unable to update app: Found a jar file too large to upload: D:\Users
  \MOVERD~1\AppData\Local\Temp\appcfg5433596470093952667.tmp\WEB-INF\lib
  \footdex-resources.jar.  Consider using --enable_jar_splitting.

  GAE hint to use something like --enable_jar_splitting (command line
  argument?), but I can nowhere find any documentation about this.

  Can I also use this from Eclipse plugin?

  --

  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 at 
http://groups.google.com/group/google-appengine-java?hl=en.




[appengine-java] 500 Server Error with Spring 3.0 application

2009-12-22 Thread Marcel Overdijk
Just deployed a very simple Spring 3.0 application successfully. At
least the deployment process was successfull, but when I navigate to
it (http://footdex-www.appspot.com/) I get a 500 Server Error.

The log files don't show anything useful, so I'm wondering what the
next step would be to pinpoint the problem.
Locally the apps works without a problem.


Cheers,
Marcel

--

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] Domain setup using Google Apps

2009-12-22 Thread Marcel Overdijk
I own the footdex.com Google Apps domain. I've bought this some time
ago to host a GAE application on it.
I now finally added the domain using in GAE admin console, but all I
can do is attach it to a subdomain of footdex.com. I just want
footdex.com to be the GAE app not a subdomain.
Is this possible?


Cheers,
Marcel

--

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: 500 Server Error with Spring 3.0 application

2009-12-22 Thread Marcel Overdijk
Never my for now. I was looking at the admin logs instead of the
normal logs. I see now exceptions now and will have a look at them.

On 22 dec, 22:00, Marcel Overdijk marceloverd...@gmail.com wrote:
 Just deployed a very simple Spring 3.0 application successfully. At
 least the deployment process was successfull, but when I navigate to
 it (http://footdex-www.appspot.com/) I get a 500 Server Error.

 The log files don't show anything useful, so I'm wondering what the
 next step would be to pinpoint the problem.
 Locally the apps works without a problem.

 Cheers,
 Marcel

--

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: 500 Server Error with Spring 3.0 application

2009-12-22 Thread Marcel Overdijk
Just want to say it was a stupid mistake in my app.
My very basic Spring 3.0 app now runs on GAE together with SiteMesh
and UrlRewrite. Great!

On 22 dec, 22:11, Marcel Overdijk marceloverd...@gmail.com wrote:
 Never my for now. I was looking at the admin logs instead of the
 normal logs. I see now exceptions now and will have a look at them.

 On 22 dec, 22:00, Marcel Overdijk marceloverd...@gmail.com wrote:



  Just deployed a very simple Spring 3.0 application successfully. At
  least the deployment process was successfull, but when I navigate to
  it (http://footdex-www.appspot.com/) I get a 500 Server Error.

  The log files don't show anything useful, so I'm wondering what the
  next step would be to pinpoint the problem.
  Locally the apps works without a problem.

  Cheers,
  Marcel

--

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: 500 Server Error with Spring 3.0 application

2009-12-22 Thread Marcel Overdijk
Now works, perhaps some synch going on as I had to remove Google sites
from my Apps domain.
Thanks anyway.

On 22 dec, 22:31, Marcel Overdijk marceloverd...@gmail.com wrote:
 Just want to say it was a stupid mistake in my app.
 My very basic Spring 3.0 app now runs on GAE together with SiteMesh
 and UrlRewrite. Great!

 On 22 dec, 22:11, Marcel Overdijk marceloverd...@gmail.com wrote:



  Never my for now. I was looking at the admin logs instead of the
  normal logs. I see now exceptions now and will have a look at them.

  On 22 dec, 22:00, Marcel Overdijk marceloverd...@gmail.com wrote:

   Just deployed a very simple Spring 3.0 application successfully. At
   least the deployment process was successfull, but when I navigate to
   it (http://footdex-www.appspot.com/) I get a 500 Server Error.

   The log files don't show anything useful, so I'm wondering what the
   next step would be to pinpoint the problem.
   Locally the apps works without a problem.

   Cheers,
   Marcel

--

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: GAE roadmap for 2010

2009-12-27 Thread Marcel Overdijk
I agree a new 2010 roadmap would be really needed.

Current roadmap page only contains:
1. Support for mapping operations across datasets
2. Cursors for continuing results of Datastore queries past the 1000
entity limit
3. Alerting system for exceptions in your application
4. Datastore dump and restore facility

In which I think 2. and 4. are really great!
But I don't think that will be all which will be released in 2010...
(or at least I hope not).

A clear vision where Google is going with the app engine platform is
really needed specially to sell it to businesses.
Think about SLA's, keeping instances warm, etc.

Further more I/m wondering if Google is planning to support more
languages in 2010.


Cheers,
Marcel

On 25 dec, 13:55, Toby tobias.ro...@sunnymail.mobi wrote:
 Hello,

 Some visibility on the roadmap would be great. I think in the last
 month GAE has already improved a lot. There are quite some open issues
 that are often listed against the use of GAE. I believe if we knew
 that they will be addressed at some point in time it might help.
 Personally I see two major things for my applications:
 - improve spin up or keep alive option
 - full fledged search
 I guess a good MVC framework and better Spring integration would be
 great as well.

 Cheers,

 Tobias

 On Dec 25, 5:09 am, Antoine Sabot-durand anto...@sabot-durand.net
 wrote:



  As i s'aider in m'y post this doc is not a roadmap : it stops in
  december 2009. Nothing in 2010. Is Thérèse an update on thé way ?

  On 22 déc, 23:23, Ikai L (Google) ika...@google.com wrote:

   The roadmap that is up right now represents our six month 
   goals:http://code.google.com/appengine/docs/roadmap.html

   Beyond that, we do not even have much visibility ourselves into what we 
   are
   going to work on, but as soon as we have set high level objectives, we'll
   communicate them with our developers. This is one of the reasons we ask
   everybody to create and star 
   issues:http://code.google.com/p/googleappengine/issues/list

   On Tue, Dec 22, 2009 at 8:32 AM, Muz murray.bo...@gmail.com wrote:
I second this request for 2010 roadmap visibility.

I'm especially curious if there will be any definite plan to support
multi-tenancy on GAE (beyond the current odd workaround/exception
mechanisms). We have requirements for several of these to get started
in Q2. Google seems to be the only cloud player to not have a long-
term model for this yet.

M

On 20 Dec, 02:54, Antoine Sabot-durand anto...@sabot-durand.net
wrote:
 Hi,

 I found the roadmap for 2009 but is there one for 2010 ? I'd like to
 propose my company to start developement on GAE but the lack of
 visibility on the platform is an issue. Will you support some of the
 JEE6 new standard (JSF 2, CDI, JPA 2, EJB 3.1 ?). Is the imageio issue
 with the JSF richfaces library will be corrected ?
 I saw a lot of question in the forum but few answer (or wasn't able to
 find them).
 Thanks for your answers.

 Antoine

--

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.

   --
   Ikai Lan
   Developer Programs Engineer, Google App Engine

--

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] Testing mail service in development mode

2009-12-28 Thread Marcel Overdijk
As GAE does not send out mails in development server, I'm wondering
how others are testing this. Just go live and hope it works?

--

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: Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??

2009-12-30 Thread Marcel Overdijk
Are those Spring classes creating threads? This is not allowed on GAE.

On 30 dec, 22:17, Juri juri.strumpfloh...@gmail.com wrote:
 Hi,

 I configured a TimerFactoryBean through my Spring configuration file
 which launched a ScheduledTimerTask in given time intervals for
 performing some work. Locally when developing within the hosted mode
 browser in Eclipse it works just fine, but when I deploy it to
 AppEngine I get the following error in the logs:

 Here's the stacktrace:

 org.springframework.web.context.ContextLoader
 initWebApplicationContext: Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name
 'org.springframework.scheduling.timer.TimerFactoryBean#0' defined in
 ServletContext resource [/WEB-INF/spring-service.xml]: Invocation of
 init method failed; nested exception is
 java.security.AccessControlException: access denied
 (java.lang.RuntimePermission modifyThreadGroup)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.initializeBean
 (AbstractAutowireCapableBeanFactory.java:1338)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.doCreateBean
 (AbstractAutowireCapableBeanFactory.java:473)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y
 $1.run(AbstractAutowireCapableBeanFactory.java:409)
         at java.security.AccessController.doPrivileged(Native Method)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.createBean
 (AbstractAutowireCapableBeanFactory.java:380)
         at org.springframework.beans.factory.support.AbstractBeanFactory
 $1.getObject(AbstractBeanFactory.java:264)
         at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS 
 ingleton
 (DefaultSingletonBeanRegistry.java:222)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
 (AbstractBeanFactory.java:261)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean
 (AbstractBeanFactory.java:185)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean
 (AbstractBeanFactory.java:164)
         at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns 
 tantiateSingletons
 (DefaultListableBeanFactory.java:423)
         at
 org.springframework.context.support.AbstractApplicationContext.finishBeanFa 
 ctoryInitialization
 (AbstractApplicationContext.java:728)
         at
 org.springframework.context.support.AbstractApplicationContext.refresh
 (AbstractApplicationContext.java:380)
         at
 org.springframework.web.context.ContextLoader.createWebApplicationContext
 (ContextLoader.java:255)
         at
 org.springframework.web.context.ContextLoader.initWebApplicationContext
 (ContextLoader.java:199)
         at
 org.springframework.web.context.ContextLoaderListener.contextInitialized
 (ContextLoaderListener.java:45)
         at org.mortbay.jetty.handler.ContextHandler.startContext
 (ContextHandler.java:530)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
         at org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1218)
         at org.mortbay.jetty.handler.ContextHandler.doStart
 (ContextHandler.java:500)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
         at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
         at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
 (AppVersionHandlerMap.java:191)
         at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
 (AppVersionHandlerMap.java:168)
         at

 Does anyone have a suggestion what could cause this problem to occur??

 thx a lot!

--

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: Testing mail service in development mode

2009-12-30 Thread Marcel Overdijk
I'm using log4j as follows:

log4j.rootLogger=INFO, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d %-5p %c - %m%n

log4j.category.DataNucleus.JDO=WARN
log4j.category.DataNucleus.Persistence=WARN
log4j.category.DataNucleus.Cache=WARN
log4j.category.DataNucleus.MetaData=WARN
log4j.category.DataNucleus.General=WARN
log4j.category.DataNucleus.Utility=WARN
log4j.category.DataNucleus.Transaction=WARN
log4j.category.DataNucleus.Datastore=WARN
log4j.category.DataNucleus.ClassLoading=WARN
log4j.category.DataNucleus.Plugin=WARN
log4j.category.DataNucleus.ValueGeneration=WARN
log4j.category.DataNucleus.Enhancer=WARN
log4j.category.DataNucleus.SchemaTool=WARN

but didn't see anything related to the mail in the logs.

On 30 dec, 20:46, Ikai L (Google) ika...@google.com wrote:
 Outbound emails are logged to the logger:

 http://code.google.com/appengine/docs/java/mail/overview.html#Develop...

 http://code.google.com/appengine/docs/java/mail/overview.html#Develop...Is
 your logger configured? There's a sample verbose logging.properties that
 ships with the SDK you can use in your project.

 On Mon, Dec 28, 2009 at 12:55 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:





  As GAE does not send out mails in development server, I'm wondering
  how others are testing this. Just go live and hope it works?

  --

  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.

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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: Domain setup using Google Apps

2009-12-30 Thread Marcel Overdijk
It's was related to Google Sites within Google Apps. I had www
configured there some time ago. After deleting it everything works
fine.

On 30 dec, 10:30, Daniel Louis jair...@gmail.com wrote:
 Yeah, it is possible...

 2009/12/23 Marcel Overdijk marceloverd...@gmail.com





  I own the footdex.com Google Apps domain. I've bought this some time
  ago to host a GAE application on it.
  I now finally added the domain using in GAE admin console, but all I
  can do is attach it to a subdomain of footdex.com. I just want
  footdex.com to be the GAE app not a subdomain.
  Is this possible?

  Cheers,
  Marcel

  --

  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.

 --
 DCBI(AirFly23)

--

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

2010-01-06 Thread Marcel Overdijk
Is GAE 1.3.0 available in central maven repo?

Would be nice if Google GAE team could create a subpage on the GAE
docs homepage with information for maven.

Many users would appreciate this.

Thanks,
Marcel
-- 
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: javax.annotation.Resource Spring 3.0.0.Release declarative DI on Google App Engine

2010-01-12 Thread Marcel Overdijk
Just read your post carefully now and notices that some parts of
JSR-250 are supported.

I'm wondering now the same why @Resource is not supported. Maybe GAE
team can shed some light on this.


Cheers,
Marcel

On 2 jan, 12:27, Ralf Sigmund ralf.sigm...@gmail.com wrote:
 Hi,
 i am a newbie to App Engine. So I tried to do some of my Spring
 3.0.0.RELEASE demo stuff.

 When using my favourite JAX-RS Implementation (Apache CXF 2.3.0-
 SNAPSHOT) I ran into the following Problem:

 CXF uses @Resource Annotations for Declarative Dependency Injection.

 But javax.annotation.Resource is not on the Whitelist.
 Only

 javax.annotation.Generated
 javax.annotation.PostConstruct
 javax.annotation.PreDestroy

 can be found 
 onhttp://code.google.com/intl/de-DE/appengine/docs/java/jrewhitelist.html
 .

 Consequentely I get the StackTrace: java.lang.NoClassDefFoundError:
 javax.annotation.Resource is a restricted class. Please see the
 Google  App Engine developer's guide for more details.

 Well - I did not find a clear explanation what is wrong with @Resource
 and why it is excluded from the Whitelist.

 There is also an 
 issuehttp://code.google.com/p/googleappengine/issues/detail?id=2564
 on this topic. But without any comment.

 Maybe there is a simple explanation / workaround to this situation and
 some kind soul could respond?

 Best Regards
 Ralf
-- 
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 with DataNuclues and JPA EntityManager in Eclipse

2010-01-12 Thread Marcel Overdijk
I'have a serioud problem to het DataNuclues and JPA EntityManager to
work in combination with Spring 3.
I have this exception: Error creating bean with name
'entityManagerFactory' defined in ServletContext resource [/WEB-INF/
spring.xml]: Invocation of init method failed; nested exception is
javax.persistence.PersistenceException: Provider error. Provider:
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider:

When digging deeper I also noticed this one:
org.datanucleus.exceptions.ClassNotResolvedException: Class
com.footdex.test.appengine.api.urlfetch.HTTPRequestMatcher was not
found in the CLASSPATH. Please check your specification and your
CLASSPATH.

And this is true as I'm compiling test classes to another target
directory and not in WEB-INF/classes.
When I remove the test classes from the Eclipse build path everything
works fine.

If I don't use the EMF but the low-level datastore API it doesn't
matter that test classes are not in WEB-INF/classes, so it seems
DataNuclues or the GAE javax.persistence.Persistence implementation is
doing something special here...

I checked my project setting and I'm only enhancing ORM classes in src/
main (here are my app sources). Sources in src/test (here are my test
sources) are not configured to be enhances.

I'm wondering what is wrong, and more importantly how I can fix this.

Cheers,
Marcel
-- 
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: Serious problem with DataNuclues and JPA EntityManager in Eclipse

2010-01-12 Thread Marcel Overdijk
H,
My bad I configured the wrong output folder for test classes in
Eclipse. They were written to /WEB-INF/classes.
After writing them to a custom /target/test-classes folder I could
start the app successfully.

So it seems to work. In my test code I can see entitymanager was not
injected yet, but I think that's another mis configuration on my side.



On 12 jan, 16:45, Marcel Overdijk marceloverd...@gmail.com wrote:
 I'have a serioud problem to het DataNuclues and JPA EntityManager to
 work in combination with Spring 3.
 I have this exception: Error creating bean with name
 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/
 spring.xml]: Invocation of init method failed; nested exception is
 javax.persistence.PersistenceException: Provider error. Provider:
 org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider:

 When digging deeper I also noticed this one:
 org.datanucleus.exceptions.ClassNotResolvedException: Class
 com.footdex.test.appengine.api.urlfetch.HTTPRequestMatcher was not
 found in the CLASSPATH. Please check your specification and your
 CLASSPATH.

 And this is true as I'm compiling test classes to another target
 directory and not in WEB-INF/classes.
 When I remove the test classes from the Eclipse build path everything
 works fine.

 If I don't use the EMF but the low-level datastore API it doesn't
 matter that test classes are not in WEB-INF/classes, so it seems
 DataNuclues or the GAE javax.persistence.Persistence implementation is
 doing something special here...

 I checked my project setting and I'm only enhancing ORM classes in src/
 main (here are my app sources). Sources in src/test (here are my test
 sources) are not configured to be enhances.

 I'm wondering what is wrong, and more importantly how I can fix this.

 Cheers,
 Marcel
-- 
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] Ant and --enable_jar_splitting

2010-01-14 Thread Marcel Overdijk
target name=update description=Uploads the application to App
Engine.
appcfg action=update war=war
options
arg value=--enable_jar_splitting /
/options
/appcfg
/target

I'm using the target as above but I get message:
Found a jar file too large to upload. Consider using --
enable_jar_splitting.

Did I specified something wrong in the above target to enable jar
splitting?
-- 
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] Ant and providing email / password

2010-01-14 Thread Marcel Overdijk
target name=update description=Uploads the application to App
Engine.
appcfg action=update war=war
options
arg value=--enable_jar_splitting /
/options
/appcfg
/target

I have above ant target to update the app.

But when run I get this message:

[java] Your authentication credentials can't be found and may have
expired.
[java] Please run appcfg directly from the command line to re-
establish your credentials.

How can I supply the email and password when running the ant target. I
don't want to store then in build.xml (at least not the password).
-- 
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: Objectify-Appengine, a typesafe data persistence tier for App Engine

2010-01-20 Thread Marcel Overdijk
This really looks great!

On 13 jan, 18:28, Jeff Schnitzer j...@infohazard.org wrote:
 http://code.google.com/p/objectify-appengine/

 I probably should have called this project Goldilocks, because it's
 a little bit how I feel.  Despite being a longtime Hibernate user
 (since the 1.0 days), the JDO/JPA abstraction just doesn't make me
 happy on appengine - it's too big, too complicated, and too far
 removed from the nature of the beast.  The low-level API has an
 elegant simplicity, but it lacks type safety.  I tried the
 alternatives - Siena, Twig, SimpleDS, and Slim3.  There are good
 things I can say about these projects but none were just right for
 me.

 So, in time-honored tradition, I wrote my own and now I'm offering it
 to the world.  Here is what just right means to me.  Maybe it's just
 right for you too:

  * An interface that reflects the four fundamental datastore
 operations - get, put, delete, query - including their batch variants.

  * Persisting real typed POJO classes - no detaching, no lifecycle,
 serialize at will.

  * Keys inObjectifyare generified and typed.  Instead of Key you use
 OKeyMyEntity.  This generic typing extends to OQueryMyEntity and
 OPreparedQueryMyEntity.

  * Because Kind ~= POJO Class, Key should not be used for an object's
 id.  The object's id and its (optional) parent plus the class is
 complete; an entity that has a Key identifier contains a redundant
 (and potentially inaccurate) kind.  Nevertheless, a Key is necessary
 for loading entities or referencing entities, and forms a fundamental
 part of the API.  This dichotomy is something I don't feel had been
 done right yet.

  * Queries are modeled after the human-friendly GAE/Python Query
 class:  query.filter(field , 123).sort(-field).  You can filter
 and sort on id fields almost as if they are normal properties.

  * Transactional behavior is contained within theObjectifyinterface
 (analogous to DatastoreService) instance rather than a thread local.
 You can easily have several transactions (or nontransactional
 sessions) running concurrently.

  * You can use your entities in GWT-RPC without modification - even
 with OKey fields.  They're just POJOs and they serialize fine.

  * Builtin facilities to help with renaming fields and transforming
 data during schema migration.

  * Configurable automatic retries for DatastoreTimeoutExceptions
 (finally get rid of the 0.1% trickle of failures!).

  * Zero external dependencies - no Spring, no Guice, not even a logger
 (it just wasn't necessary). Just one lonely 36K jar.

  *Objectifywill work nicely with your DI framework.  Static
 singletons are not required.

  * Negligible impact on cold start time.

  * Thorough unit test suite.

  * Simple, easy-to-read, well-documented code.  Not counting the
 tests, there's actually only ten source files plus three annotations.
 About 2,000 lines including whitespace and javadocs.

 There is ample documentation athttp://code.google.com/p/objectify-appengine/, 
 but some code examples
 should make this clear:

 Basic operations:

 @Entity
 class Car {
   �...@id String vin; // Can be Long, long, or String
    String color;
    Date registered;

 }

 Objectifyofy = ObjectifyService.begin();
 ofy.put(new Car(123123, red));
 Car c = ofy.get(Car.class, 123123);
 ofy.delete(c);

 OQueryCar query = ObjectifyService.newQuery(Car.class);
 query.filter(registered , lastYear).sort(color);
 ListCar cars = ofy.prepare(query).asList();

 Some more sophsticated examples:

 @Entity
 class Employee {
   �...@id long id; // primitive long is never autogenerated
   �...@parent OKeyCompany employer;

    // field getting renamed
   �...@oldname(boss) OKeyEmployee manager;

    String firstName;
    String lastName;

    // we used to store fullName, now we store first and last separately
   �...@oldname(fullName) public void oldWay(String fullName)
    {
        String[] split = fullName.split( );
        firstName = split[0];
        lastName = split[1];
    }

 }

 Here's an example of interleaving a transactional session with a
 nontransactional session:

 ObjectifyofyNoTxn = ObjectifyService.begin();ObjectifyofyTxn = 
 ObjectifyService.beginTransaction();
 try
 {
        Foo f = ofyTxn.get(Foo.class, k123);
        Bar b = ofyNoTxn.get(f.barKey);

        if (b.wantsUp())
                f.increment();
        else
                f.decrement();

        ofyTxn.put(f);

        ofyTxn.getTxn().commit();}

 finally
 {
        if (ofy.getTxn().isActive())
                ofy.getTxn().rollback();

 }

 The full docs are here:

 http://code.google.com/p/objectify-appengine/

 What doesn't it do?

  * It doesn't work with any datastore other than GAE.

  * It doesn't manage relationships for you - if you want cascading
 deletes, collection proxies, and all the advantages and disadvantages
 of that - you want JDO/JPA.  I find managing this myself pretty easy,
 and well worth the transparency.

  * No support yet for polymorphism.  It won't 

[appengine-java] Re: Ant and --enable_jar_splitting

2010-01-22 Thread Marcel Overdijk
bump; anyone?

On 14 jan, 21:23, Marcel Overdijk marceloverd...@gmail.com wrote:
     target name=update description=Uploads the application to App
 Engine.
         appcfg action=update war=war
             options
                 arg value=--enable_jar_splitting /
             /options
         /appcfg
     /target

 I'm using the target as above but I get message:
 Found a jar file too large to upload. Consider using --enable_jar_splitting.

 Did I specified something wrong in the above target to enable jar
 splitting?

-- 
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: javax.annotation.Resource Spring 3.0.0.Release declarative DI on Google App Engine

2010-02-10 Thread Marcel Overdijk
Larry,

Check out https://jira.springsource.org/browse/SPR-6679 and please
vote.



On Feb 10, 7:11 pm, Larry Cable larry.ca...@gmail.com wrote:
 Not sure if this  helps or not but you cannot use the Spring

 context:annotation-config /

 markup in your GAE Spring applications ...

 This will of course work locally but because the
 CommonAnnotationBeanPostProcessor attempts to 
 loadjavax.annotation.Resource(and fails) then no annotation processing
 will occur ...

 there are 2 workarounds to this:

 1) use the init-method=... attribute of the bean ... / element

 or ...

 2) directly load the appropriate annotation processing beans like so:

         bean
 class=org.springframework.beans.factory.annotation.AutowiredAnnotationBean 
 PostProcessor /



         bean
 class=org.springframework.context.annotation.ConfigurationClassPostProcess 
 or /



         bean
 class=org.springframework.beans.factory.annotation.InitDestroyAnnotationBe 
 anPostProcessor
                 property name=initAnnotationType
 value=javax.annotation.PostConstruct /
                 property name=destroyAnnotationType
 value=javax.annotation.PreDestroy /
         /bean

 This avoids the attempt to load the @Resource class ...

 On Jan 22, 2:21 am, Vijay Bansal vijaybansal3...@gmail.com wrote:



  This is of some help to those who are trying for CXF-RS apps on 
  GAEhttp://sinister2010.wordpress.com/2010/01/22/cxf-rs-on-google-app-eng...

  On Jan 14, 12:43 am, Jason (Google) apija...@google.com wrote:

   Hi Ralf. We may be able to add support for this annotation in a 
   forthcoming
   release. Please star the issue in your post if you want to be notified of
   any status changes.

   - Jason

   On Sat, Jan 2, 2010 at 3:27 AM, Ralf Sigmund ralf.sigm...@gmail.com 
   wrote:
Hi,
i am a newbie to App Engine. So I tried to do some of my Spring
3.0.0.RELEASE demo stuff.

When using my favourite JAX-RS Implementation (Apache CXF 2.3.0-
SNAPSHOT) I ran into the following Problem:

CXF uses @Resource Annotations for Declarative Dependency Injection.

Butjavax.annotation.Resourceis not on the Whitelist.
Only

javax.annotation.Generated
javax.annotation.PostConstruct
javax.annotation.PreDestroy

can be found on
   http://code.google.com/intl/de-DE/appengine/docs/java/jrewhitelist.html
.

Consequentely I get the StackTrace: java.lang.NoClassDefFoundError:
   javax.annotation.Resourceis a restricted class. Please see the
Google  App Engine developer's guide for more details.

Well - I did not find a clear explanation what is wrong with @Resource
and why it is excluded from the Whitelist.

There is also an issue
   http://code.google.com/p/googleappengine/issues/detail?id=2564
on this topic. But without any comment.

Maybe there is a simple explanation / workaround to this situation and
some kind soul could respond?

Best Regards
Ralf

--

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.-Hide quoted 
   text -

  - Show quoted text -

-- 
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: Google Plugin for Eclipse 1.3 plans

2010-02-11 Thread Marcel Overdijk
SDK 1.3.1 was released today, so I was wondering if the 1.3 plugin is
also released, and more importantly if it contains better support for
maven as described in Keith's post.

On Feb 9, 10:11 pm, Hannu Leinonen hlein...@gmail.com wrote:
 Allright,

 As I've stated before on the list, Maven + GAE Eclipse plugin
 integration is already possible! Exact instructions can be found in my
 blog post 
 athttp://hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/I
 also have made an archetype for such a project. I'm currently using
 pretty much the same configuration in one of my projects and it works
 quite well (only downside being that you're required to clean the
 project on every Eclipse startup).

 Just type:
 mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \
   -DarchetypeGroupId=org.beardedgeeks \
   -DarchetypeArtifactId=gae-eclipse-maven-archetype \
   -DarchetypeVersion=1.1.1 \

 -DarchetypeRepository=http://beardedgeeks.googlecode.com/svn/repository/releases

 -Hannu

 On 8.2.2010 20:35, Jake wrote:



  I'm hoping for a good way to resolve workspace dependencies in
  Eclipse.  The m2eclipse plugin does this well, but that doesn't play
  nicely with the maven-war-plugin, so it doesn't work for GAE.  Running
  a Maven Install on each workspace dependency before deploying,
  however, is still nicer than having to manually generate/copy jar
  files.  I'm pretty new to Eclipse/Maven/GAE, so I don't know if it's
  possible, but I'm hopeful! :)

  Jake

  On Feb 6, 12:40 pm, 杨浩 skzr@gmail.com wrote:
  Where's the lastest plugin update sites for GAE Plugin?
  I will to test it!

  2010/2/6 Philippe Marschall philippe.marsch...@gmail.com

  Sounds like a good start. Ideally the maven eclipse plugin [1] could
  be configured to automatically generate the configuration for the
  Google Plugin and M2Eclipse [2] picking that up as well. Also an
  archetype would help quick starting. I assume you're aware that you
  get the most benefit out of that only when there are up to date Maven
  artifacts wit good metadata in a publicly available repo, preferably
  Maven central.

   [1]http://maven.apache.org/eclipse-plugin.html
   [2]http://m2eclipse.sonatype.org/

  Cheers
  Philippe

-- 
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: Will a solution to the Java load latency come in Q2?

2010-02-23 Thread Marcel Overdijk
What means 'keeping at least one instance hot'?

In USA, Europe, ...?
There can be no guarantee a new user will use the 1 hot instance.

On Feb 23, 4:30 pm, Locke locke2...@gmail.com wrote:
 I plan on going live with my app in Q2, however, I can't subject my
 users to App Engine's Java loading delays.

 I recall that there has been talk of giving paying users the ability
 to keep at least one instance of their Java apps hot at all times.
 What are the chances of such a solution becoming available by the end
 of Q2? If this solution or some other solution to this problem is
 unlikely to be available in the next few months, I will reluctantly
 have to begin porting my app to another platform.

 Anyone know the status of this issue? Any info on the topic is
 appreciated. Thanks.

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

2010-05-27 Thread Marcel Overdijk
Yesterday I had the bad luck my internet connection was not working.

While starting up App Engine dev server ik took more than 1 minut to
startup and it gave me the following exception:

May 26, 2010 8:26:01 PM
com.google.appengine.tools.info.RemoteVersionFactory getVersion
INFO: Unable to access
https://appengine.google.com/api/updatecheck?runtime=javarelease=1.3.4timestamp=1273872371api_versions=['1.0']
java.net.UnknownHostException: appengine.google.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:
550)
at
com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:
141)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.protocol.https.HttpsClient.init(HttpsClient.java:
272)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:
172)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:
801)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:
158)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
1049)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:
234)
at java.net.URL.openStream(URL.java:1010)
at
com.google.appengine.tools.info.RemoteVersionFactory.getVersion(RemoteVersionFactory.java:
76)
at
com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java:
98)
at
com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:
168)
at
com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:
136)
at com.google.appengine.tools.development.DevAppServerMain
$StartAction.apply(DevAppServerMain.java:158)
at com.google.appengine.tools.util.Parser
$ParseResult.applyArgs(Parser.java:48)
at
com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java:
120)
at
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:
96)

App was running after that like normal.

-- 
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] system properties

2010-05-27 Thread Marcel Overdijk
Is it possible to define system properties in the admin console?

I'm creating a small application of which the source code will be
available in public github.

I'm using  twitter username + password to send tweets to twitter.
As the sources are in public github repo I like to define this
username/password not in source code.

Is this possible?

-- 
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: system properties

2010-05-28 Thread Marcel Overdijk
I was thinking of that.

To bad I can't create a new entity in app engine console.
I guess I have to use some bootstrap code to check if the records is
there, and if not create it.

On May 27, 11:35 am, John Patterson jdpatter...@gmail.com wrote:
 You can use the datastore to put and get config values and use the  
 admin console to change them live.

 On 27 May 2010, at 15:49, Marcel Overdijk wrote:



  Is it possible to define system properties in the admin console?

  I'm creating a small application of which the source code will be
  available in public github.

  I'm using  twitter username + password to send tweets to twitter.
  As the sources are in public github repo I like to define this
  username/password not in source code.

  Is this possible?

  --
  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 
  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] Re: Spring Roo + GWT Demo

2010-05-30 Thread Marcel Overdijk
Yes would be cool if they finally share the code.
It was a big announcement and people want to try it out, but it lacks
information now...

On May 28, 8:44 pm, caritos ecari...@gmail.com wrote:
 Looking for documentation to deploy Spring Roo + GWT + STS on GAE.

 On May 28, 11:03 am, geoaxis geoa...@gmail.com wrote:



  Hello,
  I believe that portions of the code for GWT is already in the GWT
  release.

  You can try out theROOspecific stuff with STS (screen cast 
  herehttp://www.thescreencast.com/2010/05/how-to-gwt-roo.html)

  --
  Shahzada Hatim
  @geoaxis on twitter, irc.freenode.net/#spring

  On May 23, 5:44 pm, yonny yon...@googlemail.com wrote:

   Hi all,
      Has the code for theroo+gwt demo at Google IO by Ben Alex and
   Bruce Johnson been provided for download.. I'd like to have a look at
   how they implemented the relationships.Any help would be gratly
   appreciated.Thanks

   --
   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] Re: Google App Engine for Business

2010-05-31 Thread Marcel Overdijk
It would be more interesting to talk about the actual limitations of
the provided Google sql db

On May 24, 9:57 pm, Ikai L (Google) ika...@google.com wrote:
 Yep. Distributed datastores wouldn't exist if we had figured out a way to do
 scalable, cheap and fast horizontally scalable SQL that could preserve ACID
 transactions, foreign key constraints and table scans.





 On Mon, May 24, 2010 at 1:43 AM, asianCoolz second.co...@gmail.com wrote:
  i saw the roadmap for the possibility to use sql directly on GAE. in
  that case, i curious to know what is the scability of using sql? there
  will be limitation compared to using gae bigtable right?

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

 --
 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 at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Datastore design

2010-06-07 Thread Marcel Overdijk
I've the following scenario.

a) Registered users can post recipes (we anticipate on 5000 different
recipes)
b) Each recipe is part of 1 or more categories (we anticipate 100
different categories)
c) Registered users can vote for recipes
d) Registered users must select the country they live in

1) The site will display a list of recipes ordered on popularity.
Including paging, so users would be able to browse all recipes
2) The same as 1 but based on a chosen category
3) Popular recipes by users in a specific country What is the most
popular recipe in a given country. Including paging, so users would
be able to browse all recipes
4) Same a 3 but based on chosen category

I wonder how I can design this scnario using the Google datastore.

In a relational database I would use some group by functions.


Cheers,
Marcel

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

2010-06-07 Thread Marcel Overdijk
Thanks, do you know if there is a demo site using thoughtsite?

On Jun 7, 9:06 pm, Ikai L (Google) ika...@google.com wrote:
 Thoughtsite does something similar. Have you taken a look yet?

 http://google-opensource.blogspot.com/2010/05/open-sourcing-thoughtsi...

 On Mon, Jun 7, 2010 at 11:48 AM, Marcel Overdijk
 marceloverd...@gmail.comwrote:





  I've the following scenario.

  a) Registered users can post recipes (we anticipate on 5000 different
  recipes)
  b) Each recipe is part of 1 or more categories (we anticipate 100
  different categories)
  c) Registered users can vote for recipes
  d) Registered users must select the country they live in

  1) The site will display a list of recipes ordered on popularity.
  Including paging, so users would be able to browse all recipes
  2) The same as 1 but based on a chosen category
  3) Popular recipes by users in a specific country What is the most
  popular recipe in a given country. Including paging, so users would
  be able to browse all recipes
  4) Same a 3 but based on chosen category

  I wonder how I can design this scnario using the Google datastore.

  In a relational database I would use some group by functions.

  Cheers,
  Marcel

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

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 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] jsp-config

2010-06-13 Thread Marcel Overdijk
Can somebody confirm that jsp-config in web.xml to globally enable EL
is supported?


jsp-config
jsp-property-group
el-ignoredfalse/el-ignored
/jsp-property-group
/jsp-config

For me it is not working and I have to add %@ page
isELIgnored=false % to all jsp pages. Cumbersome...

-- 
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] What would you recommend: Objectify or Twig?

2010-06-15 Thread Marcel Overdijk
What would you recommend: Objectify or Twig?

-- 
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] Is the source code for Google App Engine available?

2010-06-17 Thread Marcel Overdijk
http://code.google.com/p/googleappengine/source/browse/#svn/trunk does
not contain sources for e.g.
com.google.appengine.api.datastore.DatastoreService

-- 
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] Google please explain (my site is disabled without any notice)

2010-06-19 Thread Marcel Overdijk
Google,

My site has been disabled, or even worst it's redirecting to another
website.
This is done without any notice, so I'm really wondering why this
happened. I like to discuss this.

I've posted a message on this forum earlier but is seems this message
was deleted. I just can't believe this.
I'm really like to get some answers, this is not what I would expect
from a cloud hosting service.


-- 
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: Google please explain (my site is disabled without any notice)

2010-06-19 Thread Marcel Overdijk
Correction, my earlier message was not deleted. I posted that in the
generic App Engine group (http://groups.google.com/group/google-
appengine/browse_thread/thread/6859c025ab504fc8#)


On Jun 19, 8:24 pm, Marcel Overdijk marceloverd...@gmail.com wrote:
 Google,

 My site has been disabled, or even worst it's redirecting to another
 website.
 This is done without any notice, so I'm really wondering why this
 happened. I like to discuss this.

 I've posted a message on this forum earlier but is seems this message
 was deleted. I just can't believe this.
 I'm really like to get some answers, this is not what I would expect
 from a cloud hosting service.

-- 
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: Have to restart server to see changes when using Spring

2010-07-12 Thread Marcel Overdijk
Anytime you change a Java file you have to restart the server to make
the changes effective.



On Jul 12, 7:59 am, decitrig rws...@gmail.com wrote:
 I have this controller set up right now, using Spring MVC 3.0:

 @Controller
 public class HelloController {

   @RequestMapping(/hello.htm)
   public String hello() {
     return helloView;
   }

 }

 It works fine - navigating to that link tries to call up the helloView
 view. However, if I want to make a change (like switching the return
 value to helloView1) I have to stop and restart the process in
 Eclipse. Making changes to e.g. index.jsp in the war/ directory are
 refreshed just fine. Is there something special I need to do for
 Spring? I'm just getting started with it  with GAE, so I'm probably
 just doing something blinkered. Everything seems to *work* fine, I
 just have to restart for changes to be displayed.

 --
 decitrig

-- 
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] Instance startup/shutdown and sessions

2010-07-26 Thread Marcel Overdijk
I like to store the logged in user (custom; not Google User Api) of my
app in the session.

What happens if between logged in user navigates to another page and
the GAE instance was shutdown?
I understand a new instance is started but what happened to the
session data?

Also, how is startup/shutdown of instances related to session-timeout
in web.xml?

session-config
session-timeout30/session-timeout
/session-config

-- 
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: Instance startup/shutdown and sessions

2010-07-26 Thread Marcel Overdijk
So GAE makes sure the preserve session data between shutting down/
starting up instances. Nice.



On Jul 26, 12:44 pm, Shawn Brown big.coffee.lo...@gmail.com wrote:
  What happens if between logged in user navigates to another page and
  the GAE instance was shutdown?
  I understand a new instance is started but what happened to the
  session data?

 AFAIK session data is persisted to big table.

  Also, how is startup/shutdown of instances related to session-timeout
  in web.xml?

  session-config
     session-timeout30/session-timeout
  /session-config

 AFAIK there is no connection.  An instance will not be kept warm
 because there is an open session.

-- 
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: Instance startup/shutdown and sessions

2010-07-26 Thread Marcel Overdijk
Thanks for the update Jake.

On Jul 26, 8:24 pm, Jake jbrooko...@cast.org wrote:
 Hey,

 Yes, sessions are stored in the datastore, make use of the memcache,
 and behave as expected regardless of which instances are serving your
 user.  However, you still face the same 1MB limit and this system,
 obviously, only applies to values saved in the session; any class or
 application variables are not maintained.

 Jake

 On Jul 26, 7:02 am, Marcel Overdijk marceloverd...@gmail.com wrote:



  So GAE makes sure the preserve session data between shutting down/
  starting up instances. Nice.

  On Jul 26, 12:44 pm, Shawn Brown big.coffee.lo...@gmail.com wrote:

What happens if between logged in user navigates to another page and
the GAE instance was shutdown?
I understand a new instance is started but what happened to the
session data?

   AFAIK session data is persisted to big table.

Also, how is startup/shutdown of instances related to session-timeout
in web.xml?

session-config
   session-timeout30/session-timeout
/session-config

   AFAIK there is no connection.  An instance will not be kept warm
   because there is an open session.

-- 
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: java.net.Proxy not on the JRE Class White List but I can reference it runtime!!

2010-08-01 Thread Marcel Overdijk
Thanks for the explanation Toby,

This means I can use the java.net.Proxy class without problems in my
library.

Cheers,
Marcel

On Aug 1, 10:13 pm, Toby Reyelts to...@google.com wrote:
 Hi Marcel,

 The GAE sandbox tries to be very lenient with regards to references to
 classes that aren't on the whitelist. Generally speaking, SecurityExceptions
 are only thrown if the calling code would have caused the static initializer
 of the non-whitelisted class to execute. So, for example, just declaring a
 variable of the type, or even referencing a class-literal of the type, won't
 cause an exception:

 ClassProxy klass = Proxy.class; // No exception!

 On Sun, Aug 1, 2010 at 3:47 PM, Marcel Overdijk 
 marceloverd...@gmail.comwrote:



  I did some further investigations and found out something interesting.

  I used the Java twitter4j library in the past (I'm writing a similar
  library for a different service) successfully on app engine.
  So I checked the twitter4j source code how they did it and then found
  out that the use the Proxy class in their code.

  So I did some test and included the java.net.Proxy class in one of my
  test projects on app engine.
  Eclipse started complaining about the Proxy not being supported on
  GAE, but I deployed in anyway and it worked.
  In my case I just had a null value assigned to it but I could
  reference java.net.Proxy on the GAE runtime.

  Now I'm just wondering what it means when a class is not on the GAE
  Class White List?

  --
  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 at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Admin pages

2010-09-07 Thread Marcel Overdijk
Is there any guidelines to have custom admin pages look as the
standaard admin pages?

-- 
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] I'm not able to deploy my new app due to InvalidClassException: local class incompatible

2010-10-04 Thread Marcel Overdijk
http://janrain4j.appspot.com/
javax.servlet.ServletException: java.lang.RuntimeException:
java.io.InvalidClassException:
com.googlecode.janrain4j.api.engage.response.AbstractEngageResponse;
local class incompatible: stream classdesc serialVersionUID =
-8862811237568844288, local class serialVersionUID =
4656491432091728114
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
240)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
251)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:6784)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:6782)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
at com.google.net.rpc.impl.Server$2.run(Server.java:852)
at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
576)
at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
at
com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
at
com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
474)
at
com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
831)
at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
103)
at
com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:418)
at java.lang.Thread.run(Thread.java:636)

What should I do?

-- 
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: I'm not able to deploy my new app due to InvalidClassException: local class incompatible

2010-10-05 Thread Marcel Overdijk
Thanks Don,

Clearing my browser data solved the problem.

I removed some serial versions from my classes which caused the
problem. I didn't think about the fact that this class was stored in
the session.

Cheers,
Marcel

On Oct 4, 11:15 pm, Don Schwarz schwa...@google.com wrote:
 This isn't the full stack trace so it's difficult to be sure, but do
 you store AbstractEngineResponses in an HTTP session?  If so, it seems
 that the class is no longer compatible with the version stored in your
 session.

 If so, try clearing your cookies.  This will create a new session for you.

 For the future you may want to read through:

 http://www.javapractices.com/topic/TopicAction.do?Id=45

 On Mon, Oct 4, 2010 at 3:33 PM, Marcel Overdijk



 marceloverd...@gmail.com wrote:
 http://janrain4j.appspot.com/
  javax.servlet.ServletException: java.lang.RuntimeException:
  java.io.InvalidClassException:
  com.googlecode.janrain4j.api.engage.response.AbstractEngageResponse;
  local class incompatible: stream classdesc serialVersionUID =
  -8862811237568844288, local class serialVersionUID =
  4656491432091728114
         at
  com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionH 
  andlerMap.java:
  240)
         at
  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
  152)
         at org.mortbay.jetty.Server.handle(Server.java:326)
         at 
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
  542)
         at org.mortbay.jetty.HttpConnection
  $RequestHandler.headerComplete(HttpConnection.java:923)
         at
  com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequ 
  estParser.java:
  76)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at
  com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceReques 
  t(JettyServletEngineAdapter.java:
  135)
         at
  com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
  251)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:6784)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
  $6.handleBlockingRequest(RuntimePb.java:6782)
         at
  com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingAp 
  plicationHandler.java:
  24)
         at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
  398)
         at com.google.net.rpc.impl.Server$2.run(Server.java:852)
         at
  com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
  56)
         at
  com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpa 
  nBuilder.java:
  576)
         at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
         at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
         at
  com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.j 
  ava:
  442)
         at
  com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
  319)
         at
  com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
  290)
         at com.google.net.async.Connection.handleReadEvent(Connection.java:
  474)
         at
  com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.j 
  ava:
  831)
         at
  com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
  207)
         at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
  103)
         at
  com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
  251)
         at com.google.apphosting.runtime.JavaRuntime
  $RpcRunnable.run(JavaRuntime.java:418)
         at java.lang.Thread.run(Thread.java:636)

  What should I do?

  --
  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] JSTL eclipse warning: Can not find the tag library descriptor for http://java.sun.com/jsp/jstl/core

2010-11-22 Thread Marcel Overdijk
As described in
http://groups.google.com/group/google-appengine-java/browse_thread/thread/a37b7710568bf54e/13714cc16cfccf80?lnk=gstq=jstl#13714cc16cfccf80
you should not include any JSTL library as it's repackaged by Google
already.

However with the Google plugin when adding something like:

%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %

gives the following Eclipse warning:

Can not find the tag library descriptor for http://java.sun.com/jsp/
jstl/core


But it runs ok. This warning is a little bit annoying and I'm
wondering how other people get rid of 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] Re: Lightweight Best performing MVC framework - Recommendation

2011-01-06 Thread Marcel Overdijk
Ikai,

Do you have experience with Play framework on GAE.
I looked at it and I noticed it uses Groovy for templating in the view
layer.
Sometime back I tried to use Groovy on GAE and it had performance
impacts.

Do you know Play suffers with longer (cold) startup of application,
our first time view is accessed (which is probably the same).

Cheers,
Marcel


On Dec 29 2010, 8:02 pm, Ikai Lan (Google) ikai.l
+gro...@google.com wrote:
 Um ... those are like the opposite of lightweight.

 Here are some I like:

 Play Framework: probably the most underrated Java framework I've ever 
 seehttp://www.playframework.org/

 Slim3: built for App Engine. Cons: kind of needs deep Eclipse 
 integrationhttp://sites.google.com/site/slim3appengine/

 There are more. I'll post in a bit. What are other frameworks everyone else
 here likes?

 --
 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, Dec 29, 2010 at 10:49 AM, Nasif Noorudeen nas...@gmail.com wrote:
  spring  jsf

  On 12/29/10, Sree sreeju...@gmail.com wrote:
   Hello,

   I am new to Java and App Engine, and coming from ASP.NET C# and
   Windows Azure world. I am looking for a lightweight  best performing
   java based MVC framework.  I would like to migrate my ASP.NET MVC
   project to App Engine (Java).

   It would be great if you can share your experience.  I am open to
   Python as well, but learning Java is faster than Python, since I am
   good at C#.

   Thanks in Advance.

   Regards
   Sree

   --
   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.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 at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] SystemProperty.applicationVersion.get() suffix

2011-02-17 Thread Marcel Overdijk
I'm having this in appengine-web.xml

version0-1/version

When I print this in JSP with 
%=com.google.appengine.api.utils.SystemProperty.applicationVersion.get()
%

I get 0-1.1

Note the .1 suffix. Is this right and is it always .1?

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



Re: [appengine-java] SystemProperty.applicationVersion.get() suffix

2011-02-18 Thread Marcel Overdijk
Nice to be in contact Guillaume :-), it has been some time.

Do you know when the timestamp changes? After a new deployment or when a new 
instance is started?


Cheers,
Marcel

-- 
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: Google SQL Service Trusted Testers Signup

2011-02-28 Thread Marcel Overdijk
Is there more information available about the SQL support?
Will it only be available for 'App Engine for Business'?

And will pricing be simalar as BigTable datastore?

On Feb 28, 6:06 pm, Amit Agarwal aagar...@google.com wrote:
 Hello everyone,

 We have been working on enabling SQL support for Google App Engine. Many of
 you have been testing this service and many more of you are in the queue.
 For those of you in the queue, we will soon be sending you the invites to
 try out this service.

 If you would like to try out Google SQL Service please sign-up
 herehttps://spreadsheets0.google.com/a/google.com/viewform?hl=enhl=enfo...
 .

 thanks
 Amit

 --
 Amit Agarwal | Product Manager | Google SQL Service

-- 
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: GAE (Java) integration with OAuth (facebook, twitter, etc.)

2011-02-28 Thread Marcel Overdijk
Just use http://code.google.com/p/janrain4j/

The demo app http://janrain4j.appspot.com/ is even hosted on Google
App Engine.

Integration with Spring and Spring Security is also included out of
the box (if needed).

On Feb 28, 12:36 pm, Ben Carlson bencarl...@gmail.com wrote:
 I haven't tried it myself, buthttp://www.janrain.comlooks like something that 
 might solve all or part of your issue. I'm thinking about using it 
 forhttp://www.liink.it

 -Ben

 Sent from my iPhone

 On Feb 27, 2011, at 12:37 PM, irrdev emailkur...@gmail.com wrote:

  By searching Google, it's possible to come up with several home-grown
  solutions for gaining OAuth authentication to specific websites such
  as Facebook and Twitter. Unfortunately, most these methods are
  outdated and/or are site-specific. Considering that many of today's
  online apps seek social api integration, what is the best generic way
  to get this done? I'm seeking a method or library that works with all
  OAuth apis. I understand, of course, that once authenticated, every
  api is unique. However, it's the OAuth session variables that
  seemingly make it so difficult to integrate with GAE. It really
  shouldn't be that difficult, as this is a very necessary feature for
  today's cloud applications. Has anyone found a solution to this
  problem?

  --
  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 
  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-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: Google SQL Service Trusted Testers Signup

2011-03-01 Thread Marcel Overdijk
I understand Amit, np

I will wait until more information gets available.
Do you have any idea when this information will be available? 1
months, 2 months, 6 months...?

On Mar 1, 9:14 am, Amit Agarwal aagar...@google.com wrote:
 Unfortunately, currently we don't have any pricing related information that
 we can share publicly. Once we have something we will do so.

 Thanks
 Amit

 On Mon, Feb 28, 2011 at 3:09 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:



  Thanks Amit,

  I understand Google is still working on the prices.
  But this is important aspect for me to decide to go for SQL or
  BigTable.

  I have a background with SQL so that might be easier for me.

  When do you think there will be more information available about
  pricing?
  I'm not looking for concrete prices but would like to have an idea of
  it (compared to BigTable).

  Cheers,
  Marcel

  On Feb 28, 11:15 pm, Amit Agarwal aagar...@google.com wrote:
   Hi Marcel,

   Comments inline.

   On Mon, Feb 28, 2011 at 1:05 PM, Marcel Overdijk
   marceloverd...@gmail.comwrote:

Is there more information available about the SQL support?

   I am not sure what information you looking for. If there are general
   questions please do let me know. SQL Service is currently under trusted
   testers and if you are looking for details about the service it is
  available
   once you have signed up for the service.

Will it only be available for 'App Engine for Business'?

   Currently we plan to make it available for all App Engine users

And will pricing be simalar as BigTable datastore?

   We are still working on the pricing.

   thanks
   Amit

On Feb 28, 6:06 pm, Amit Agarwal aagar...@google.com wrote:
 Hello everyone,

 We have been working on enabling SQL support for Google App Engine.
  Many
of
 you have been testing this service and many more of you are in the
  queue.
 For those of you in the queue, we will soon be sending you the
  invites to
 try out this service.

 If you would like to try out Google SQL Service please sign-up
 here
   https://spreadsheets0.google.com/a/google.com/viewform?hl=enhl=enfo..
  .
 .

 thanks
 Amit

 --
 Amit Agarwal | Product Manager | Google SQL Service

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

   --
   Amit Agarwal | Product Manager | Google SQL Service

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

 --
 Amit Agarwal | Product Manager | Google | 650-253-4393 (w) 510-304-2205 (c)

-- 
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: Gig 0.3.0 has been released

2011-03-27 Thread Marcel Overdijk
Hi Eiichiro,

Just browsed the Gig documentation pages and it looks interesting.
Is this framework already used in public production websites?

Cheers,
Marcel

On Mar 27, 4:38 pm, Eiichiro eiichiro.uchi...@gmail.com wrote:
 Hi Google App Engine Java developers,

 Gig (Google app engine Innovation Gear) 0.3.0 has been released and now a
 new feature CRUD Scaffolding is bundled. Gig is a Google App Engine Java
 application toolkit developed by Eiichiro Uchiumi (http://www.eiichiro.org/)
 and can be performed on JDK 6 and App Engine SDK for Java 1.4.0 or later.
 Gig offers the full set of tools to develop, deploy and operate Google App
 Engine Java application more easily, quickly and safely.

 Gig - Google App Engine Rock 'n' Roll!http://code.google.com/p/gig/

 CRUD Scaffoldinghttp://code.google.com/p/gig/wiki/CRUDScaffolding

 Thanks,

 Eiichiro

-- 
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] What are you opinions about yesterdays announced opensource Cloudcoundry PaaS

2011-04-13 Thread Marcel Overdijk
What are you opinions about yesterdays announced opensource
Cloudcoundry PaaS compared to Google App Engine?

-- 
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: Which one is best for development...Spring Framework or Servlet Jsp....

2011-04-19 Thread Marcel Overdijk
I'm using the Spring stack (Spring DI, AOP ,MVC, Security) together
with Objectify successfully on appengine.
The app is not in production yet, but several tests of the setup also
worked on appengine.

Off course there are lighter frameworks, but that's not a issue for me
using warm instances.

On Apr 19, 9:13 am, Nischal Shetty nischalshett...@gmail.com wrote:
 Sorry, haven't worked with GWT, hope someone helps you.

 -N

 On 19 April 2011 12:19, Ram ram...@gmail.com wrote:



  Hi,

   Thank you..Also I have another doubt, how to use GWT desiner in my
  Eclipse.In documents no continuity is therewhere i want to
  open GWT designer using eclipse.

  please help me..

  On Apr 19, 11:18 am, Nischal nischalshett...@gmail.com wrote:
   I'm using struts 2 and it seems good for development. However, there are
   other lighter frameworks that appengine users have spoken positively
  about.
   You should check out this thread -
 https://groups.google.com/forum/#!topic/google-appengine-java/7wkMDm6...

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

 --
 -Nischal
 +91-9920240474
 twitter: NischalShetty http://twitter.com/nischalshetty
 facebook: Nischal http://facebook.com/nischal

 http://www.justunfollow.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-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: Which one is best for development...Spring Framework or Servlet Jsp....

2011-04-19 Thread Marcel Overdijk
No check out docs about Warmup requests:
http://code.google.com/appengine/docs/java/config/appconfig.html#Warmup_Requests

On Apr 19, 1:18 pm, Nischal nischalshett...@gmail.com wrote:
 You mean you have reserved instances? IMO you would still need to take care
 of your load time as new instances are spun off when your traffic increases
 and if your load time is too much then it would lead to errors while
 spinning up new instances.

-- 
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] Deferred Task and retries

2011-04-21 Thread Marcel Overdijk
Can DeferredTask also be configured to have retries?

-- 
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] Deferred Task with non default queue

2011-04-22 Thread Marcel Overdijk
Is it possible to use Deferred Tasks outside the default queue?

I would like to setup multiple queues with different config settings.


For the Deferred Tasks a specific handler is setup at /_ah/queue/
__deferred__ so I wonder how that would work with multiple queues

-- 
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: Deferred Task and retries

2011-04-22 Thread Marcel Overdijk
To answer my own question, from the docs I can read that retries are
possible and are enabled automatically.

On Apr 21, 10:53 pm, Marcel Overdijk marceloverd...@gmail.com wrote:
 Can DeferredTask also be configured to have retries?

-- 
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: Deferred Task with non default queue

2011-04-22 Thread Marcel Overdijk
Maybe use additional mappings to
com.google.apphosting.utils.servlet.DeferredTaskServlet
The documentation on Deferred Tasks is a little bit sparse... Any
pointers appreciated.

Basically what I would like to do is have multiple queue defined with
different throttling settings.
And use DeferredTask to send them to one of the queues depending on
the my needs.

I would have no problem with configuring additional servlet mappings
using com.google.apphosting.utils.servlet.DeferredTaskServlet

On Apr 22, 8:58 am, Marcel Overdijk marceloverd...@gmail.com wrote:
 Is it possible to use Deferred Tasks outside the default queue?

 I would like to setup multiple queues with different config settings.

 For the Deferred Tasks a specific handler is setup at /_ah/queue/
 __deferred__ so I wonder how that would work with multiple queues

-- 
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] Are urls with /ah/* automatically protected?

2011-04-22 Thread Marcel Overdijk
I'm wonderinf if urls starting with /ah/* (like /_ah/queue/
__deferred__) are automatically protected or that I should configure a
security constraint.

-- 
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: Deferred Task with non default queue

2011-04-22 Thread Marcel Overdijk
I did some quick testing and I found out:

QueueFactory.getQueue(email-
queue).add(TaskOptions.Builder.withPayload(new
EmailTask(email)).url(/email-queue));

that with above I can enqueue a deferred task in the another queue
(not default).
I had to to use the url(/email-queue) setting otherwise it was
pushed to the default __deferred__ handler.

I just configured the
com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped it
to /email-queue

When I try System.out.println(queue name:  +
DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine-
QueueName));
I see the correct e-mail-queue being printed thus so far everything
seems to work.

I also configured task-retry-limit5/task-retry-limit for this
queue but this does not seem to work.

So the setup is working but the DeferredTask / DeferredTaskServlet do
not seem to look into the settings configured in queue.xml

Can somebody confirm this?

On Apr 22, 11:13 am, Marcel Overdijk marceloverd...@gmail.com wrote:
 Maybe use additional mappings to
 com.google.apphosting.utils.servlet.DeferredTaskServlet
 The documentation on Deferred Tasks is a little bit sparse... Any
 pointers appreciated.

 Basically what I would like to do is have multiple queue defined with
 different throttling settings.
 And use DeferredTask to send them to one of the queues depending on
 the my needs.

 I would have no problem with configuring additional servlet mappings
 using com.google.apphosting.utils.servlet.DeferredTaskServlet

 On Apr 22, 8:58 am, Marcel Overdijk marceloverd...@gmail.com wrote:

  Is it possible to use Deferred Tasks outside the default queue?

  I would like to setup multiple queues with different config settings.

  For the Deferred Tasks a specific handler is setup at /_ah/queue/
  __deferred__ so I wonder how that would work with multiple queues

-- 
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: Deferred Task with non default queue

2011-04-26 Thread Marcel Overdijk
But is it possible to change queue settings for Deferred task?

Like a deferred Email task I would like to throttle differently then
anotther queue (using Deferred Task(

So baically the questions are:
- With Deferred task, can you have multiple queues?
- Is it possible to change throttling configuration per Deferred task
queue?


On Apr 26, 4:59 pm, Gianni Mariani gmari...@google.com wrote:
 The preconfigured URL mapping for the DeferredTaskServlet may be used
 for any queue.  There is no need to specify your own URL mapping that
 I can see.

 On Apr 22, 8:05 pm, Marcel Overdijk marceloverd...@gmail.com wrote:









  I did some quick testing and I found out:

  QueueFactory.getQueue(email-
  queue).add(TaskOptions.Builder.withPayload(new
  EmailTask(email)).url(/email-queue));

  that with above I can enqueue adeferredtaskin the another queue
  (not default).
  I had to to use the url(/email-queue) setting otherwise it was
  pushed to the default __deferred__ handler.

  I just configured the
  com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped it
  to /email-queue

  When I try System.out.println(queue name:  +
  DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine-
  QueueName));
  I see the correct e-mail-queue being printed thus so far everything
  seems to work.

  I also configured task-retry-limit5/task-retry-limit for this
  queue but this does not seem to work.

  So the setup is working but the DeferredTask / DeferredTaskServlet do
  not seem to look into the settings configured in queue.xml

  Can somebody confirm this?

 Do you have more information on how you determined that this is not
 working?









  On Apr 22, 11:13 am, Marcel Overdijk marceloverd...@gmail.com wrote:

   Maybe use additional mappings to
   com.google.apphosting.utils.servlet.DeferredTaskServlet
   The documentation onDeferredTasks is a little bit sparse... Any
   pointers appreciated.

   Basically what I would like to do is have multiple queue defined with
   different throttling settings.
   And use DeferredTask to send them to one of the queues depending on
   the my needs.

   I would have no problem with configuring additional servlet mappings
   using com.google.apphosting.utils.servlet.DeferredTaskServlet

   On Apr 22, 8:58 am, Marcel Overdijk marceloverd...@gmail.com wrote:

Is it possible to useDeferredTasks outside the default queue?

I would like to setup multiple queues with different config settings.

For theDeferredTasks a specific handler is setup at /_ah/queue/
__deferred__ so I wonder how that would work with multiple queues

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



Re: [appengine-java] Re: Deferred Task with non default queue

2011-04-27 Thread Marcel Overdijk
Hi Gianni,

If I understand correctly I can use the default handler for any
deferred task and thus specifying the url is irrelevant.

How would I send a 'deferred' Task to a specific queue? Like this?
QueueFactory.getQueue(email-
queue).add(TaskOptions.Builder.withPayload(newEmailTask(email)));

This seems to work indeed as
DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine-
QueueName) prints out the 'email-queue'. So that's great.

Now I've added queue.xml to WEB-INF folder with:

queue-entries
queue
namedefault/name
rate1/s/rate
retry-parameters
min-backoff-seconds1/min-backoff-seconds
task-retry-limit5/task-retry-limit
/retry-parameters
/queue
queue
nameemail-queue/name
rate1/s/rate
retry-parameters
min-backoff-seconds5/min-backoff-seconds
task-retry-limit3/task-retry-limit
/retry-parameters
/queue
queue
nameother-queue/name
rate1/s/rate
/queue
/queue-entries

I've done some testing and inside the task I just throw an Exception
to test the retry parameters.

What I see is that the retry parameters are not picked up (at least in
Development server).

I keeps trying (more than the 3 time retry limit) and the backoff
seconds are also not used.
I see the first 3 or 4 retries within 2 seconds or so, and interval
starts increasing, nut 5 between each retry.

Could it be that the queue.xml is not picked up or I did something
wrong?

Thanks for your help and patience,
Marcel


On Apr 27, 12:09 am, Gianni Mariani gian...@google.com wrote:
 On Wed, Apr 27, 2011 at 4:19 AM, Marcel Overdijk
 marceloverd...@gmail.comwrote:

  But is it possible to change queue settings for Deferred task?

 A DeferredTask is just like any other task. There is no restriction on
 DeferredTasks with respect to queue settings or which queues you put them
 in.

 The fact that a special handler exists for deferred task is inconsequential.
  It's just a simplification, in that you don't need to do that for yourself.
  i.e. if you do not specify a URL, it will work out of the box.  The task is
 automatically set to the correct handler when you set the DeferredTask
 payload.



  Like a deferred Email task I would like to throttle differently then
  anotther queue (using Deferred Task(

  So baically the questions are:
  - With Deferred task, can you have multiple queues?

 Like any task.  You can add a deferred task to any queue.

  - Is it possible to change throttling configuration per Deferred task
  queue?

 DeferredTasks may be placed in any queue.

 Just a note.  You seem to be conflating handlers/servlet mappings with
 queues.  There is nothing stopping you from having a single handler accept
 requests from any queue.

 In the case of the TaskOptions.payload(DeferredTask) method, it will
 automatically set the handler url for you if it is not otherwise specified.
  URL is somewhat irrelevant for deferred task since the run() method you
 define is essentially the entry point for the task.





  On Apr 26, 4:59 pm, Gianni Mariani gmari...@google.com wrote:
   The preconfigured URL mapping for the DeferredTaskServlet may be used
   for any queue.  There is no need to specify your own URL mapping that
   I can see.

   On Apr 22, 8:05 pm, Marcel Overdijk marceloverd...@gmail.com wrote:

I did some quick testing and I found out:

QueueFactory.getQueue(email-
queue).add(TaskOptions.Builder.withPayload(new
EmailTask(email)).url(/email-queue));

that with above I can enqueue adeferredtaskin the another queue
(not default).
I had to to use the url(/email-queue) setting otherwise it was
pushed to the default __deferred__ handler.

I just configured the
com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped it
to /email-queue

When I try System.out.println(queue name:  +
DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine-
QueueName));
I see the correct e-mail-queue being printed thus so far everything
seems to work.

I also configured task-retry-limit5/task-retry-limit for this
queue but this does not seem to work.

So the setup is working but the DeferredTask / DeferredTaskServlet do
not seem to look into the settings configured in queue.xml

Can somebody confirm this?

   Do you have more information on how you determined that this is not
   working?

On Apr 22, 11:13 am, Marcel Overdijk marceloverd...@gmail.com wrote:

 Maybe use additional mappings to
 com.google.apphosting.utils.servlet.DeferredTaskServlet
 The documentation onDeferredTasks is a little bit sparse... Any
 pointers appreciated.

 Basically what I would like to do is have multiple queue defined with
 different throttling settings.
 And use DeferredTask to send them to one of the queues depending on
 the my needs.

 I would have no problem with configuring additional

[appengine-java] Re: Deferred Task with non default queue

2011-04-28 Thread Marcel Overdijk
Can anybody confirm Deferred task should work with settings in
queue.xml?


On Apr 27, 11:28 am, Marcel Overdijk marceloverd...@gmail.com wrote:
 Hi Gianni,

 If I understand correctly I can use the default handler for any
 deferred task and thus specifying the url is irrelevant.

 How would I send a 'deferred' Task to a specific queue? Like this?
 QueueFactory.getQueue(email-
 queue).add(TaskOptions.Builder.withPayload(newEmailTask(email)));

 This seems to work indeed as
 DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine-
 QueueName) prints out the 'email-queue'. So that's great.

 Now I've added queue.xml to WEB-INF folder with:

 queue-entries
     queue
         namedefault/name
         rate1/s/rate
         retry-parameters
             min-backoff-seconds1/min-backoff-seconds
             task-retry-limit5/task-retry-limit
         /retry-parameters
     /queue
     queue
         nameemail-queue/name
         rate1/s/rate
         retry-parameters
             min-backoff-seconds5/min-backoff-seconds
             task-retry-limit3/task-retry-limit
         /retry-parameters
     /queue
     queue
         nameother-queue/name
         rate1/s/rate
     /queue
 /queue-entries

 I've done some testing and inside the task I just throw an Exception
 to test the retry parameters.

 What I see is that the retry parameters are not picked up (at least in
 Development server).

 I keeps trying (more than the 3 time retry limit) and the backoff
 seconds are also not used.
 I see the first 3 or 4 retries within 2 seconds or so, and interval
 starts increasing, nut 5 between each retry.

 Could it be that the queue.xml is not picked up or I did something
 wrong?

 Thanks for your help and patience,
 Marcel

 On Apr 27, 12:09 am, Gianni Mariani gian...@google.com wrote:







  On Wed, Apr 27, 2011 at 4:19 AM, Marcel Overdijk
  marceloverd...@gmail.comwrote:

   But is it possible to change queue settings for Deferred task?

  A DeferredTask is just like any other task. There is no restriction on
  DeferredTasks with respect to queue settings or which queues you put them
  in.

  The fact that a special handler exists for deferred task is inconsequential.
   It's just a simplification, in that you don't need to do that for yourself.
   i.e. if you do not specify a URL, it will work out of the box.  The task is
  automatically set to the correct handler when you set the DeferredTask
  payload.

   Like a deferred Email task I would like to throttle differently then
   anotther queue (using Deferred Task(

   So baically the questions are:
   - With Deferred task, can you have multiple queues?

  Like any task.  You can add a deferred task to any queue.

   - Is it possible to change throttling configuration per Deferred task
   queue?

  DeferredTasks may be placed in any queue.

  Just a note.  You seem to be conflating handlers/servlet mappings with
  queues.  There is nothing stopping you from having a single handler accept
  requests from any queue.

  In the case of the TaskOptions.payload(DeferredTask) method, it will
  automatically set the handler url for you if it is not otherwise specified.
   URL is somewhat irrelevant for deferred task since the run() method you
  define is essentially the entry point for the task.

   On Apr 26, 4:59 pm, Gianni Mariani gmari...@google.com wrote:
The preconfigured URL mapping for the DeferredTaskServlet may be used
for any queue.  There is no need to specify your own URL mapping that
I can see.

On Apr 22, 8:05 pm, Marcel Overdijk marceloverd...@gmail.com wrote:

 I did some quick testing and I found out:

 QueueFactory.getQueue(email-
 queue).add(TaskOptions.Builder.withPayload(new
 EmailTask(email)).url(/email-queue));

 that with above I can enqueue adeferredtaskin the another queue
 (not default).
 I had to to use the url(/email-queue) setting otherwise it was
 pushed to the default __deferred__ handler.

 I just configured the
 com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped it
 to /email-queue

 When I try System.out.println(queue name:  +
 DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine-
 QueueName));
 I see the correct e-mail-queue being printed thus so far everything
 seems to work.

 I also configured task-retry-limit5/task-retry-limit for this
 queue but this does not seem to work.

 So the setup is working but the DeferredTask / DeferredTaskServlet do
 not seem to look into the settings configured in queue.xml

 Can somebody confirm this?

Do you have more information on how you determined that this is not
working?

 On Apr 22, 11:13 am, Marcel Overdijk marceloverd...@gmail.com wrote:

  Maybe use additional mappings to
  com.google.apphosting.utils.servlet.DeferredTaskServlet
  The documentation onDeferredTasks is a little bit sparse... Any
  pointers appreciated.

  Basically

[appengine-java] Re: Deferred Task with non default queue

2011-05-07 Thread Marcel Overdijk
Hi Gianni,

As my app was not on production yet I was only trying in Development
mode.
After your feedback I create a test app which I deployed to Production
and indeed the settings also work for Deferred Tasks.
That's really good news because they alternative to Deferred Tasks
(creating servlets or something similar and then retrieving params
again) is very cumbersome.

Thanks for your help.

On May 6, 9:57 am, Gianni Mariani gmari...@google.com wrote:
 Hi Marcel,

 Yes, it should work in a production server, not on the development
 server.

 Are you trying this on the production environment?  If so, let me know
 what your app id is.

 g

 On Apr 27, 7:28 pm, Marcel Overdijk marceloverd...@gmail.com wrote:







  Hi Gianni,

  If I understand correctly I can use the default handler for any
  deferred task and thus specifying the url is irrelevant.

  How would I send a 'deferred' Task to a specific queue? Like this?
  QueueFactory.getQueue(email-queue).add(TaskOptions.Builder.withPayload(ne 
  wEmailTask(email)));

  This seems to work indeed as
  DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine-
  QueueName)printsoutthe 'email-queue'. So that's great.

  Now I've added queue.xml to WEB-INF folder with:

  queue-entries
      queue
          namedefault/name
          rate1/s/rate
          retry-parameters
              min-backoff-seconds1/min-backoff-seconds
              task-retry-limit5/task-retry-limit
          /retry-parameters
      /queue
      queue
          nameemail-queue/name
          rate1/s/rate
          retry-parameters
              min-backoff-seconds5/min-backoff-seconds
              task-retry-limit3/task-retry-limit
          /retry-parameters
      /queue
      queue
          nameother-queue/name
          rate1/s/rate
      /queue
  /queue-entries

  I've done some testing and inside the task I just throw an Exception
  to test the retry parameters.

  What I see is that the retry parameters are not picked up (at least in
  Development server).

  I keeps trying (more than the 3 time retry limit) and the backoff
  seconds are also not used.
  I see the first 3 or 4 retries within 2 seconds or so, and interval
  starts increasing, nut 5 between each retry.

  Could it be that the queue.xml is not picked up or I did something
  wrong?

  Thanks for your help and patience,
  Marcel

  On Apr 27, 12:09 am, Gianni Mariani gian...@google.com wrote:

   On Wed, Apr 27, 2011 at 4:19 AM, Marcel Overdijk
   marceloverd...@gmail.comwrote:

But is it possible to change queue settings for Deferred task?

   A DeferredTask is just like any other task. There is no restriction on
   DeferredTasks with respect to queue settings or which queues you put them
   in.

   The fact that a special handler exists for deferred task is 
   inconsequential.
    It's just a simplification, in that you don't need to do that for 
   yourself.
    i.e. if you do not specify a URL, it will workoutof the box.  The task is
   automatically set to the correct handler when you set the DeferredTask
   payload.

Like a deferred Email task I would like to throttle differently then
anotther queue (using Deferred Task(

So baically the questions are:
- With Deferred task, can you have multiple queues?

   Like any task.  You can add a deferred task to any queue.

- Is it possible to change throttling configuration per Deferred task
queue?

   DeferredTasks may be placed in any queue.

   Just a note.  You seem to be conflating handlers/servlet mappings with
   queues.  There is nothing stopping you from having a single handler accept
   requests from any queue.

   In the case of the TaskOptions.payload(DeferredTask) method, it will
   automatically set the handler url for you if it is not otherwise 
   specified.
    URL is somewhat irrelevant for deferred task since the run() method you
   define is essentially the entry point for the task.

On Apr 26, 4:59 pm, Gianni Mariani gmari...@google.com wrote:
 The preconfigured URL mapping for the DeferredTaskServlet may be used
 for any queue.  There is no need to specify your own URL mapping that
 I can see.

 On Apr 22, 8:05 pm, Marcel Overdijk marceloverd...@gmail.com wrote:

  I did some quick testing and I foundout:

  QueueFactory.getQueue(email-
  queue).add(TaskOptions.Builder.withPayload(new
  EmailTask(email)).url(/email-queue));

  that with above I can enqueue adeferredtaskin the another queue
  (not default).
  I had to to use the url(/email-queue) setting otherwise it was
  pushed to the default __deferred__ handler.

  I just configured the
  com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped 
  it
  to /email-queue

  When I try System.out.println(queue name:  +
  DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine-
  QueueName));
  I see the correct e-mail-queue being printed thus so far everything

[appengine-java] Feelings about new pricing model

2011-05-10 Thread Marcel Overdijk
Today Google announced the new pricing model to be effective later
this year (http://googleappengine.blogspot.com/2011/05/year-ahead-for-
google-app-engine.html).

I always like the pay per usage model compared to the pay per
instance model.
Because of this change by Google, other platforms - like VMware's
CloudFoundry - might be on the same pricing level and offer more
advantage as they are more flexible in terms of frameworks supported.

I'm wondering how other developers feel about this change in pricing
model.

-- 
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] Is Google planning to offer HR datastore migration feature

2011-05-30 Thread Marcel Overdijk
I would like to switch from M/S datastore to HR datastore, buut how
should I do this?
Is Google planning to offer HR datastore migration feature?

-- 
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: Is Google planning to offer HR datastore migration feature

2011-05-31 Thread Marcel Overdijk
I think there is an option to alias your old application id. So maybe
that's option for you?

From my perspective all data can be cleaned in my apps, so just
switching would be sufficient... doesn't sound that hard?


On May 31, 9:10 am, Ian Marshall ianmarshall...@gmail.com wrote:
 I would like to do this too.

 The priority for me is to preserve my application ID during this
 migration. My understanding is that it is impossible for an existing
 app to switch from M/S to HR; a new app ID must be used. (I would love
 it if my understanding is incorrect.)

 On May 30, 12:02 pm, Marcel Overdijk marceloverd...@gmail.com wrote:

  I would like to switch from M/S datastore to HR datastore, buut how
  should I do this?
  Is Google planning to offer HR datastore migration feature?



-- 
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] Application Title available?

2011-06-03 Thread Marcel Overdijk
Is the Application title accessible using the SDK?

I guess not, but Maybe Google can make in available in the Environment
class.

-- 
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] Does AppEngine support Servlet 3.0 ServletContainerInitializer

2011-06-08 Thread Marcel Overdijk
Does AppEngine support Servlet 3.0 ServletContainerInitializer for
code-based configuration of Servlet Container?

-- 
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: Does AppEngine support Servlet 3.0 ServletContainerInitializer

2011-06-08 Thread Marcel Overdijk
Silly me, already starred this some time ago...
Thanks anyway Jeff.

On Jun 8, 10:26 pm, Jeff Schnitzer j...@infohazard.org wrote:
 Unfortunately GAE does not support Servlet 3.0.

 Please star:  http://code.google.com/p/googleappengine/issues/detail?id=3091

 Jeff

 On Wed, Jun 8, 2011 at 11:45 AM, Marcel Overdijk







 marceloverd...@gmail.com wrote:
  Does AppEngine support Servlet 3.0 ServletContainerInitializer for
  code-based configuration of Servlet Container?

  --
  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 
  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-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] Scheduler features and load time limitations

2011-07-18 Thread Marcel Overdijk
Everybody knows about load time issues when using frameworks that take
a long time to startup. Take for example Grails.

I wonder if we will still encounter these issues after the pricing
changes.

1) Will the limit of 30s to start an application be lifted?

2) How smart will the scheduler be to startup new instances? Will it
for example take into account the avg load time of previously started
instances?


-- 
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] Want to run Grails on Google App Engine

2011-07-19 Thread Marcel Overdijk
Join the discussion at: http://goo.gl/sT7uT

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



Re: Отг: Re: [appengine-java] Datastore Replication Options - can not be changed once app id is created

2011-07-22 Thread Marcel Overdijk
I also don't understand why we cannot switch.
A lot of people are requesting this (including myself).

On Jul 22, 7:14 am, Miroslav Genov mge...@gmail.com wrote:
 I have the opposite situation :). My app is using master/slave and I want to
 migrate it to use the multi-master replication.

 Is there are any idea the re-using of application id's to be enabled at some
 point of time or maybe someway of migration the datastore from master/slave
 to multi-master and vise-versa?

-- 
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] Accessing same datastore from within 2 (local) JVM's

2011-07-22 Thread Marcel Overdijk
I'm starting my application local and I will perform some functional
tests within a JUnit tests.
From within this same JUnit test I also want to check if values are
stored in datastore.

Can I access the same datastore the running webapp is using, but then
from within JUnit test running in a different JVM?

-- 
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: Scheduler features and load time limitations

2011-07-22 Thread Marcel Overdijk
Hi Ikai,

I cannot find answer to:

1) Will the limit of 30s to start an application be lifted?

The other question seems to be answered since the changes in 1.5.2
(http://code.google.com/appengine/docs/adminconsole/
performancesettings.html#Setting_the_Minimum_Pending_Latency)


On Jul 22, 4:24 pm, Ikai Lan (Google) ika...@google.com wrote:
 Have you taken a look at the scheduler that has shipped? It should be under
 Application Settings. If there's anything there that you think might be
 needed, please let us know.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 On Mon, Jul 18, 2011 at 5:40 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:







  Everybody knows about load time issues when using frameworks that take
  a long time to startup. Take for example Grails.

  I wonder if we will still encounter these issues after the pricing
  changes.

  1) Will the limit of 30s to start an application be lifted?

  2) How smart will the scheduler be to startup new instances? Will it
  for example take into account the avg load time of previously started
  instances?

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

-- 
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: Scheduler features and load time limitations

2011-07-22 Thread Marcel Overdijk
Yes might be, but frameworks like Grails need a longer startup time.

It does not matter for any application server nor cloud provider
except GAE.
That's why I'm asking about future working of scheduler.

Further, if I keep up enough instances I would not bother the startup
time at all...


I'm not saying 30s limit is bad or good, I'm just looking if using
Grails on GAE will be feasible or not.


On Jul 22, 9:06 pm, Ikai Lan (Google) ika...@google.com wrote:
 I haven't heard any plans to lift the 30s load time to start an application.
 30s+ loading time seems pretty bad to me ...

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 On Fri, Jul 22, 2011 at 2:37 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:







  Hi Ikai,

  I cannot find answer to:

  1) Will the limit of 30s to start an application be lifted?

  The other question seems to be answered since the changes in 1.5.2
  (http://code.google.com/appengine/docs/adminconsole/
  performancesettings.html#Setting_the_Minimum_Pending_Latency)

  On Jul 22, 4:24 pm, Ikai Lan (Google) ika...@google.com wrote:
   Have you taken a look at the scheduler that has shipped? It should be
  under
   Application Settings. If there's anything there that you think might be
   needed, please let us know.

   Ikai Lan
   Developer Programs Engineer, Google App Engine
   Blog:http://googleappengine.blogspot.com
   Twitter:http://twitter.com/app_engine
   Reddit:http://www.reddit.com/r/appengine

   On Mon, Jul 18, 2011 at 5:40 PM, Marcel Overdijk
   marceloverd...@gmail.comwrote:

Everybody knows about load time issues when using frameworks that take
a long time to startup. Take for example Grails.

I wonder if we will still encounter these issues after the pricing
changes.

1) Will the limit of 30s to start an application be lifted?

2) How smart will the scheduler be to startup new instances? Will it
for example take into account the avg load time of previously started
instances?

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

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

-- 
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: Scheduler features and load time limitations

2011-07-22 Thread Marcel Overdijk
Honestly I don't know what the current startup time for Grails on GAE
would be now. Also depending on what plugins installed etc.

Current version does not even work on GAE. I was thinking about trying
it out again but remembered the 30s limit I hit some time ago.
So I asked this question on the forum to see if it makes any sense
investing the time, or just continue with my Spring MVC app which runs
fine.

On Jul 22, 9:20 pm, Ikai Lan (Google) ika...@google.com wrote:
 What's the startup time on Grails now?

 I can ask about the 30s startup time, but I'm sure there are some pretty
 serious consequences to an app with a 40s-50s startup time. I'm a bit
 surprised, honestly, because even a JRuby on Rails app shouldn't take more
 than 30 seconds to startup.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 On Fri, Jul 22, 2011 at 3:12 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:







  Yes might be, but frameworks like Grails need a longer startup time.

  It does not matter for any application server nor cloud provider
  except GAE.
  That's why I'm asking about future working of scheduler.

  Further, if I keep up enough instances I would not bother the startup
  time at all...

  I'm not saying 30s limit is bad or good, I'm just looking if using
  Grails on GAE will be feasible or not.

  On Jul 22, 9:06 pm, Ikai Lan (Google) ika...@google.com wrote:
   I haven't heard any plans to lift the 30s load time to start an
  application.
   30s+ loading time seems pretty bad to me ...

   Ikai Lan
   Developer Programs Engineer, Google App Engine
   Blog:http://googleappengine.blogspot.com
   Twitter:http://twitter.com/app_engine
   Reddit:http://www.reddit.com/r/appengine

   On Fri, Jul 22, 2011 at 2:37 PM, Marcel Overdijk
   marceloverd...@gmail.comwrote:

Hi Ikai,

I cannot find answer to:

1) Will the limit of 30s to start an application be lifted?

The other question seems to be answered since the changes in 1.5.2
(http://code.google.com/appengine/docs/adminconsole/
performancesettings.html#Setting_the_Minimum_Pending_Latency)

On Jul 22, 4:24 pm, Ikai Lan (Google) ika...@google.com wrote:
 Have you taken a look at the scheduler that has shipped? It should be
under
 Application Settings. If there's anything there that you think
  might be
 needed, please let us know.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 On Mon, Jul 18, 2011 at 5:40 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:

  Everybody knows about load time issues when using frameworks that
  take
  a long time to startup. Take for example Grails.

  I wonder if we will still encounter these issues after the pricing
  changes.

  1) Will the limit of 30s to start an application be lifted?

  2) How smart will the scheduler be to startup new instances? Will
  it
  for example take into account the avg load time of previously
  started
  instances?

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

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

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

-- 
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: Scheduler features and load time limitations

2011-07-30 Thread Marcel Overdijk
btw: I was able to run latest Grails 2.0.M1 on GAE infrastructure.

Request that cause a instance to be loaded take 29 - 31s and sometimes
cause a HardDeadlineExceededError.
After instance is loaded requests are very fast, until they are ceased
down by GAE scheduler.

I have no concern with the long startup time, as with Always On it
should not be a problem.

But that brings me back to one of my original questions:

2) How smart will the scheduler be to startup new instances? Will it
for example take into account the avg load time of previously started
instances?


Cheers,
Marcel

On Jul 22, 9:20 pm, Ikai Lan (Google) ika...@google.com wrote:
 What's the startup time on Grails now?

 I can ask about the 30s startup time, but I'm sure there are some pretty
 serious consequences to an app with a 40s-50s startup time. I'm a bit
 surprised, honestly, because even a JRuby on Rails app shouldn't take more
 than 30 seconds to startup.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 On Fri, Jul 22, 2011 at 3:12 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:







  Yes might be, but frameworks like Grails need a longer startup time.

  It does not matter for any application server nor cloud provider
  except GAE.
  That's why I'm asking about future working of scheduler.

  Further, if I keep up enough instances I would not bother the startup
  time at all...

  I'm not saying 30s limit is bad or good, I'm just looking if using
  Grails on GAE will be feasible or not.

  On Jul 22, 9:06 pm, Ikai Lan (Google) ika...@google.com wrote:
   I haven't heard any plans to lift the 30s load time to start an
  application.
   30s+ loading time seems pretty bad to me ...

   Ikai Lan
   Developer Programs Engineer, Google App Engine
   Blog:http://googleappengine.blogspot.com
   Twitter:http://twitter.com/app_engine
   Reddit:http://www.reddit.com/r/appengine

   On Fri, Jul 22, 2011 at 2:37 PM, Marcel Overdijk
   marceloverd...@gmail.comwrote:

Hi Ikai,

I cannot find answer to:

1) Will the limit of 30s to start an application be lifted?

The other question seems to be answered since the changes in 1.5.2
(http://code.google.com/appengine/docs/adminconsole/
performancesettings.html#Setting_the_Minimum_Pending_Latency)

On Jul 22, 4:24 pm, Ikai Lan (Google) ika...@google.com wrote:
 Have you taken a look at the scheduler that has shipped? It should be
under
 Application Settings. If there's anything there that you think
  might be
 needed, please let us know.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 On Mon, Jul 18, 2011 at 5:40 PM, Marcel Overdijk
 marceloverd...@gmail.comwrote:

  Everybody knows about load time issues when using frameworks that
  take
  a long time to startup. Take for example Grails.

  I wonder if we will still encounter these issues after the pricing
  changes.

  1) Will the limit of 30s to start an application be lifted?

  2) How smart will the scheduler be to startup new instances? Will
  it
  for example take into account the avg load time of previously
  started
  instances?

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

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

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

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

[appengine-java] Re: HardDeadlineExceededError on start up

2011-08-02 Thread Marcel Overdijk
Note that in this 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/23c9c625bd9d4437#
discussion I've also asked about how Google thinks about startup time
limitations in the future.
No concrete answer yet...

On Aug 1, 6:07 pm, jem...@gmail.com jem...@gmail.com wrote:
 I have the same issue but it happens on and off since day one, not just 
 couples of days back. But like you, I don't know what is the cause of that.

 Hth

 - Reply message -
 From: sgrueter ste.grue...@gmail.com
 Date: Mon, Aug 1, 2011 9:44 am
 Subject: [appengine-java] HardDeadlineExceededError on start up
 To: google-appengine-java@googlegroups.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-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] Starting up DevAppServer, Jetty, ContainerService manually

2011-08-03 Thread Marcel Overdijk
I'm wondering what the options are for starting up the DevAppServer
manually.

I read about the KickStart, DevAppServerMain etc but this not satisify
my needs.

I more or less looking to possibilities to use something like:
org.mortbay.jetty.webapp.WebAppContext.setDescriptor(String
contentWebXml)

To interact with the underlying Jetty container itself, or to
configure it manually.


This might be awkward question but what I'm looking for is to
integrate the DevAppServer with Grails just like Grails does this for
Jetty and Tomcat.

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



  1   2   >