[appengine-java] Spring Roo as the local Datastore viewer.

2010-05-24 Thread niraj
Can the SpringRoo be included into the GAE core as a replacement for
LocalDataStore Viewer at http://localhost:/_ah/admin/datastore.

Why can the GAW code look at the Domain class and then create a
springroo based GUI by default in the background

-- 
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: Jetty Bug : Freemarker + Sitemsh (JSP decorators) Will not work

2010-05-24 Thread Sudhir Ramanandi
Can any dev confirm this as a bug ?

On Sun, May 23, 2010 at 1:09 PM, Sudhir Ramanandi wrote:

> See http://code.google.com/p/googleappengine/issues/detail?id=3252
>
> --
> Sudhir Ramanandi
> http://www.ramanandi.org
>



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

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



[appengine-java] Re: What Framework to use?

2010-05-24 Thread Philippe Marschall


On May 21, 6:29 pm, "hurray!"  wrote:
> I am looking for a web framework to use on GAE that
> 1. Provides pretty URLs
> 2. Makes passing data to views easier.
> 3. Is productive.
>
> I tried Grails for a small app, but the startup time was too long.
>
> I am curious what framework do you guys use for a small to medium
> sizeapp (that gets a few hundred visits per day)? Please advise based
> on your production level experience on GAE.

I used Wicket and the low level datastore API. I was quite happy with
it but had slow, high CPU loading requests. So I went to static html,
JQuery and JAX-RS handlers or servlets. Performance is stellar now.
It's a small application though.

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: Error in store BLOBS at GAE

2010-05-24 Thread charming30
I had the same problem but found out the reason. You must enable
Billing for your Account in order for Blobstore to work.
Checout the exception in your Admin Console Log (after uploading), you
will see the description of the error.
However, this should work in your dev mode without any issues.

C30


On May 25, 6:10 am, "dts...@gmail.com"  wrote:
> Hi,Patrick
> i just copy all from google codes athttp://code.google.com/intl/en/appengine/
> docs/java/blobstore/overview.html#Complete_Sample_App
>
> its the same.
> i didn't change any code.
> that's the point why it can not run==!
>
> thank you~
>
> 
> http://www.w3.org/2001/XMLSchema-instance";
>xmlns="http://java.sun.com/xml/ns/javaee";
>xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">
>
>   
> Upload
> Upload
>   
>
>   
> Serve
> Serve
>   
>
>   
> Upload
> /upload
>   
>
>   
> Serve
> /serve
>   
>
> 
>
> 2010/5/25 Patrick Brown :
>
>
>
>
>
> > Hi
>
> >What does your web.xml look like?
>
> > Thanks,
> > Patrick
>
> > On Sun, May 23, 2010 at 11:37 PM, Tianshu  wrote:
>
> >> hello,
> >> i'm a student from Temasek poly of Singapore. within one of my
> >> project. i want to use blob to store some files like pictures,
> >> documents.
> >> because of i didn't use it before. so, i just follow the teaching
> >> notes of Google Code(link:http://code.google.com/intl/en/appengine/
> >> docs/java/blobstore/overview.html#Complete_Sample_App)
>
> >> the problem is,
> >> it's no problem to run at localhost. i even can view all the data from
> >> localhost appengine(link:http://localhost:/_ah/admin/). BUT when i
> >> update the project to Google App Engine,  it can not run successful.
> >> You can see what i have done athttp://1.latest.uploadimagee.appspot.com/
>
> >> at the beginning. i think its the JSP's problem. so i change the first
> >> page "index.jsp" to a servlet named "index". but i still got the same
> >> error. (http://2.latest.uploadimagee.appspot.com/)but also have no
> >> problem in localhost running time.
>
> >> Can anyone help me to solve my problem? thank you~~~
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google App Engine for Java" group.
> >> To post to this group, send email to
> >> google-appengine-j...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-appengine-java+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 天道无亲(dts)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

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



Re: [appengine-java] Re: Mysql database in App Engine datastore

2010-05-24 Thread Guillermo Schwarz
You can use jiql in the mean time.

http://www.jiql.org/xwiki/bin/view/Main/

Cheers,
Guillermo.

On Mon, May 24, 2010 at 2:05 AM, Tristan wrote:

> If you can wait for Google App Engine for Business it will support SQL
> storage eventually and you won't have to convert anything.
>
> http://code.google.com/appengine/business/roadmap.html
>
>
> On May 23, 12:16 am, Jitendra Gupta  wrote:
> > How to store my Mysql database  in App Engine datastore ?
> >
> > --
> > 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.
>
>


-- 
Saludos cordiales,

Guillermo Schwarz
Sun Certified Enterprise Architect

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



Re: [appengine-java] GAE Task Queue and Google Spreadsheet Java API

2010-05-24 Thread dts...@gmail.com
i got the same problem but no this method.
also run very well in localhost. and can not run in GAE.

2010/5/24 Rudolf :
> g files on the GAE server - it looks like that the 30
> sec limitation for a request is not touched;
> it looks like that the code of the task is not execut



-- 
――天道无亲(dts)

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



Re: [appengine-java] Error in store BLOBS at GAE

2010-05-24 Thread dts...@gmail.com
Hi,Patrick
i just copy all from google codes at http://code.google.com/intl/en/appengine/
docs/java/blobstore/overview.html#Complete_Sample_App

its the same.
i didn't change any code.
that's the point why it can not run==!

thank you~


http://www.w3.org/2001/XMLSchema-instance";
   xmlns="http://java.sun.com/xml/ns/javaee";
   xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">

  
Upload
Upload
  

  
Serve
Serve
  

  
Upload
/upload
  

  
Serve
/serve
  



2010/5/25 Patrick Brown :
> Hi
>
>What does your web.xml look like?
>
> Thanks,
> Patrick
>
> On Sun, May 23, 2010 at 11:37 PM, Tianshu  wrote:
>>
>> hello,
>> i'm a student from Temasek poly of Singapore. within one of my
>> project. i want to use blob to store some files like pictures,
>> documents.
>> because of i didn't use it before. so, i just follow the teaching
>> notes of Google Code(link:http://code.google.com/intl/en/appengine/
>> docs/java/blobstore/overview.html#Complete_Sample_App)
>>
>> the problem is,
>> it's no problem to run at localhost. i even can view all the data from
>> localhost appengine(link:http://localhost:/_ah/admin/). BUT when i
>> update the project to Google App Engine,  it can not run successful.
>> You can see what i have done at http://1.latest.uploadimagee.appspot.com/
>>
>> at the beginning. i think its the JSP's problem. so i change the first
>> page "index.jsp" to a servlet named "index". but i still got the same
>> error. (http://2.latest.uploadimagee.appspot.com/ )but also have no
>> problem in localhost running time.
>>
>> Can anyone help me to solve my problem? thank you~~~
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>



-- 
天道无亲(dts)

-- 
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] How to change order of items in a collection property?

2010-05-24 Thread Jaroslav Záruba
Hello

Could anyone please point me to a document that mentions what is the
proper way of changing order of items in a collection? I ran out of
ideas.

When I assign the newly created collection everything seems OK, but
after committing the transaction the collection is just gone. (With or
without makePersistent on the parent object and/or makePersistentAll
on the new collection.)
When I clear() the original collection and addAll() from the
rearranged one the items become deleted (as mentioned before, due the
clear() call) ... which make it impossible to modify the items further
in the very transaction.

Regards
  J. Záruba

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



[appengine-java] Re: How to re-order items in a collection? Items becoming 'deleted'.

2010-05-24 Thread Jaroslav Záruba
So I'm gonna answer my own question again. :)

Persistence manager understands
--
subEvents.clear();
--
as 'delete the content of this list'.

So I will just have to figure out another way of assigning the newly
arranged items. (I chose this one when LinkedList did not pass as
persistable for some reason.)

On May 24, 3:58 am, Jaroslav Záruba  wrote:
> I should have mentioned that the collection-property is not in default
> fetch group, if it makes any difference...?
>
> --
> 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] URL Fetch is failing on basic GET execution

2010-05-24 Thread Preetham V V
Hi -

I have the following basic code in my GAE project:

 URL url = new URL(urlStr);

 BufferedReader reader = new BufferedReader(new
InputStreamReader(url.openStream()));
 String line;
 while ((line = reader.readLine()) != null) {
System.out.println(line);
 }
 reader.close();

The size of urlStr is about 292 chars in length.

The url.openStream() method call is failing to execute the method
(both in eclipse as well as online GAE). It shows the following
warning though.

24 May, 2010 6:17:40 PM org.apache.commons.httpclient.HttpMethodBase
getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using
getResponseBodyAsStream instead is recommended.

Kindly help (there were other posts on the related topic in this group
but there did not seem much resolution so have to raise this post
again).

Regards,
Preetham V V

-- 
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: Problem getting list of JDO objects with List of of keys

2010-05-24 Thread tempy
I've had trouble with the .getById methods, so I do it like this,
which seems to work reliably:

query = pm.newQuery(MyClass.class);
query.setFilter("_ID == :keyList");  //_ID is the PK

List results = (List)query.execute(Keys);  //
Keys is List


On May 24, 2:19 am, Ravi  wrote:
> Hi,
> I have a list of Key and i want to get Entity for all these key using
> JDO.
> Is it possible in JDO? Having a hard time to search through internet
> and not finding it.
> Tried using pm.getObjectsById(Collection), but it says Object not
> found with keys present in the  list. I wrote following code for this
>
> PersistenceManager pm =
> DbSessionManager.getInstance().startDbSession();
>         List keyList = new ArrayList();
>         Key oneKey = KeyFactory.createKey("User", 9);
>         keyList.add(oneKey);
>         List users = (List)pm.getObjectsById(keyList); (Note:
> s after object)
>
> abovce code throws Exception that User(9) not found but it does exists
> in datastore and if i do
>
> User users = (User)pm.getObjectById(oneKey);(Note: no s after object)
>
> it returns the User(9)
>
> I also tried using Low level API like this and it works, but only
> problem is that it doesnt return its owned properties(see User class
> at the end, openIds are not returned and its always null, even though
> it does exists).
>
> public Map getObjectsById(List ids) throws
> AppException {
>         DatastoreService ds =
> DatastoreServiceFactory.getDatastoreService();
>          Map data = ds.get(ids);
>         return data;
>
> }
>
> class User{
> Key id;
> String firstName;
> String lastName;
> List openIds;
>
> }
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

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



Re: [appengine-java] Re: Bulkupload int key?

2010-05-24 Thread Craig Berry
Ah, well, at least now I feel better about not having been able to
figure out how to do it. Any rough estimate on when it might be
supported? I could certainly go to an auxiliary pseudo-key for this
purpose as you suggest, but that would permanently make my foreign key
management weird for the involved kinds, so I'd very much like to
avoid that if I can.

On Mon, May 24, 2010 at 13:01, Matthew Blain  wrote:
> At the moment the bulkloader does not support numeric keys as the
> entity key. The main reason for this is that numeric ids are designed
> to be managed by the datastore, not be user-generated. You may wish to
> add an additional property to your entity kind which you can sort on.
>
> However we are aware of this. You will need to specify a numeric key
> in the transform (e.g. import_transform: lambda x:
> datastore.Key.from_path(kind, int(x))). We also need to change the
> bulkloader to handle both the creation of an entity with a numeric key
> and more importantly figuring out how to tell the datastore's id
> generation code that we've done this.
>
> --Matthew
>
>
> On May 24, 9:53 am, Craig Berry  wrote:
>> Can someone help me with this, please? I'm sure the answer is trivial,
>> but another weekend of tinkering hasn't led me to the solution.
>>
>>
>>
>>
>>
>> On Fri, May 21, 2010 at 20:21, Craig Berry  wrote:
>> > I have an xml file containing data which I wish to bulkupload to GAE.
>> > I am using the preview version of the new bulk uploader, if that
>> > matters. How do I include an int value for the __key__ derived from a
>> > field in the xml data? If I specify no import transform, like so
>>
>> >    - property: __key__
>> >      external_name: id
>> >      export_transform: transform.key_id_or_name_as_string
>>
>> > it loads the key as a string 'name', so it sorts lexicographically
>> > rather than numerically. I want an int id instead. But I can't find
>> > what to put in as an import_transform to make this happen.
>>
>> > Thanks in advance for any help on this.
>>
>> > --
>> > Craig Berry -http://lapidum.org/home.html
>> > "Magicians lie to the universe, and the
>> > universe believes them."  -- Lenore Berry
>>
>> --
>> Craig Berry -http://lapidum.org/home.html
>> "Magicians lie to the universe, and the
>> universe believes them."  -- Lenore Berry
>>
>> --
>> 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.
>
>



-- 
Craig Berry - http://lapidum.org/home.html
"Magicians lie to the universe, and the
universe believes them."  -- Lenore Berry

-- 
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: Bulkupload int key?

2010-05-24 Thread Matthew Blain
At the moment the bulkloader does not support numeric keys as the
entity key. The main reason for this is that numeric ids are designed
to be managed by the datastore, not be user-generated. You may wish to
add an additional property to your entity kind which you can sort on.

However we are aware of this. You will need to specify a numeric key
in the transform (e.g. import_transform: lambda x:
datastore.Key.from_path(kind, int(x))). We also need to change the
bulkloader to handle both the creation of an entity with a numeric key
and more importantly figuring out how to tell the datastore's id
generation code that we've done this.

--Matthew


On May 24, 9:53 am, Craig Berry  wrote:
> Can someone help me with this, please? I'm sure the answer is trivial,
> but another weekend of tinkering hasn't led me to the solution.
>
>
>
>
>
> On Fri, May 21, 2010 at 20:21, Craig Berry  wrote:
> > I have an xml file containing data which I wish to bulkupload to GAE.
> > I am using the preview version of the new bulk uploader, if that
> > matters. How do I include an int value for the __key__ derived from a
> > field in the xml data? If I specify no import transform, like so
>
> >    - property: __key__
> >      external_name: id
> >      export_transform: transform.key_id_or_name_as_string
>
> > it loads the key as a string 'name', so it sorts lexicographically
> > rather than numerically. I want an int id instead. But I can't find
> > what to put in as an import_transform to make this happen.
>
> > Thanks in advance for any help on this.
>
> > --
> > Craig Berry -http://lapidum.org/home.html
> > "Magicians lie to the universe, and the
> > universe believes them."  -- Lenore Berry
>
> --
> Craig Berry -http://lapidum.org/home.html
> "Magicians lie to the universe, and the
> universe believes them."  -- Lenore Berry
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

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



Re: [appengine-java] Google App Engine for Business

2010-05-24 Thread Ikai L (Google)
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  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.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


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


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

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



Re: [appengine-java] Does Memcache persist if all JVMs go to JVM heaven?

2010-05-24 Thread Ikai L (Google)
Memcache instances stay up. They're shared, namespaced (security) instances
and will more likely than not outlive the lifecycles of your application
instances.

On Sun, May 23, 2010 at 11:17 PM, Tristan wrote:

> Does anyone know the answer to this:
>
> If all the JVMs are killed, does the memcache stick around or is it
> recycled? (I know memcache expires eventually, just curious if it is
> possible for it to carry data across JVM valley of death)
>
> Cheers,
>
> Tristan
>
> --
> 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.
>
>


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


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

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



Re: [appengine-java] Error in store BLOBS at GAE

2010-05-24 Thread Patrick Brown
Hi

   What does your web.xml look like?

Thanks,
Patrick

On Sun, May 23, 2010 at 11:37 PM, Tianshu  wrote:

> hello,
> i'm a student from Temasek poly of Singapore. within one of my
> project. i want to use blob to store some files like pictures,
> documents.
> because of i didn't use it before. so, i just follow the teaching
> notes of Google Code(link:http://code.google.com/intl/en/appengine/
> docs/java/blobstore/overview.html#Complete_Sample_App)
>
> the problem is,
> it's no problem to run at localhost. i even can view all the data from
> localhost appengine(link:http://localhost:/_ah/admin/). BUT when i
> update the project to Google App Engine,  it can not run successful.
> You can see what i have done at http://1.latest.uploadimagee.appspot.com/
>
> at the beginning. i think its the JSP's problem. so i change the first
> page "index.jsp" to a servlet named "index". but i still got the same
> error. (http://2.latest.uploadimagee.appspot.com/ )but also have no
> problem in localhost running time.
>
> Can anyone help me to solve my problem? thank you~~~
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] Set all dashboard times to local time

2010-05-24 Thread Ikai L (Google)
I'm afraid not. You'll want to star the issues that are important to you:

http://code.google.com/p/googleappengine/issues/list?can=2&q=time+zone&colspec=ID+Type+Status+Priority+Stars+Owner+Summary+Log+Component&cells=tiles

It
may not be ideal for all users. Fortunately, there is a workaround - as you
mentioned, calculate the delta. Hopefully that won't be too onerous. There's
always a delta calculation no matter what you do, anyway - if you work with
systems set to GMT, you have to convert whenever someone says, "Hey, there
was an outage at 2pm our time."

On Sat, May 22, 2010 at 12:26 AM, Didier Durand wrote:

> Hi there,
> The time of day for all dashboard infos / logs seems to be set to US
> West Coast time.
>
> Is it possible to change it to my local time (Europe) to avoid delta
> calculations each time I read time infos or want to set cron jobs at
> night for me?
>
> regards
> didier
>
> --
> 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.
>
>


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


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

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



[appengine-java] Re: What Framework to use?

2010-05-24 Thread Jake
Hey,

I also dropped JDO in favor of Objectify.  I tried loading your site 4
times in the span of about 4 minutes: 3 times the delay was over 9
seconds, sometimes up to 15 seconds.  I presume those were loading
requests as the delay was all located in the initial request.  These
still remain my biggest complaints with GAE: low traffic sites see
loading requests make up 30-50% of their requests and the
unpredictable delay between request and filter init() on such loading
requests.

Jake

On May 24, 11:31 am, nicolas melendez  wrote:
> You can see my wicket and gae app, the start up time is aceptable because it
> doesn't use jdo. Www.clasificad.com.ar
>
> El may 24, 2010 10:30 a.m., "Jake"  escribió:
>
> I'm also using Wicket and it works well.  I have had some difficulties
> with GAE but, after many months of debugging, I do not believe they
> are related to Wicket.  Sometimes, I have a pretty long startup time,
> but it is never during the actual Wicket startup (from filter init to
> app ready) - it's always the 3-8 seconds before the filter
> initializes.  The framework itself is great.
>
> Jake
>
> On May 21, 10:30 pm, nicolas melendez  wrote:
>
> > chose the Wicket way!
>
> > On Fri, May 21, 2010 at 7:22 PM, jnizet  wrote:
> > > I have used Stripes on GAE : seehttps://memwords.appspot.com/and
> > >http://code.google.com/p/memwords/forthe sources. It's a very
> > > elegant and productive action-...
> > > google-appengine-java+unsubscr...@googlegroups.com
>
> 
>
>
>
> > > .
> > > > For more options, visit this group athttp://
> > > groups.google.com/group/google-appengin...
> > > google-appengine-java+unsubscr...@googlegroups.com
>
> 
>
>
>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-j...
>
> --
> 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] Debug Local var.

2010-05-24 Thread ww34ww34
I'm new on GAE.
I need to debug some var,  on my development server (local).
Or to see local log. How?

SDK 1.3.3.1
my "logging.proprieties" look like this


# A default java.util.logging configuration.
# (All App Engine logging is through java.util.logging by default).
#
# To use this configuration, copy it into your application's WEB-INF
# folder and add the following to your appengine-web.xml:
#
# 
#   
# 
#

# Set the default logging level for all loggers to WARNING
.level = WARNING


my test class look like this

import java.io.IOException;
import javax.servlet.http.*;

import java.util.logging.Level;
import java.util.logging.Logger;

@SuppressWarnings("serial")
public class TestServlet extends HttpServlet {
private final static Logger LOGGER =
Logger.getLogger(TestServlet.class.getName());
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Hello, world");

LOGGER.info("An informational message.");
LOGGER.warning("A warning message.");
LOGGER.severe("An error message.");

}
}



Thank's ..

-- 
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: AppEngine gets very slow when not used for some time

2010-05-24 Thread Yogesh Agarwal
Memcache is shared across instances, automatically it is available as
a service you do not have to load it just.  User it straight away to
store or access object in memory.

Thanks,
Yogesh

On May 22, 9:37 pm, Rahul  wrote:
> Chau,
>
> Thanks for pointing to the link. I did go through the link and i
> think, what i thought was right.
> Also i was going through the following point in the section you
> provided : "How can I speed up loading requests? " and the second
> point mentioned is "Share expensive initialization between JVMs. For
> example, put data which is expensive to read or compute into memcache,
> where it can be quickly read by other JVMs during startup." so in this
> scenario where do you load this memcache so that it can be shared
> between the jvm instances.
>
> Any pointers or clues highly appreciated.
>
> Thanks,
> Rahul
>
> On May 22, 10:51 pm, Chau Huynh  wrote:
>
>
>
>
>
> > It seems like loading 
> > request...http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request
>
> > On Sun, May 23, 2010 at 4:55 AM, Rahul  wrote:
> > > I have an application running on appengine and no doubt it works
> > > great. but when the application is not used for some time. it goes
> > > very slow.
> > > Suppose i don;t use the application for around 5 hours or so, then
> > > next time when i try to use it, the response is very slow. Is there
> > > any thing specific which i am missing in adding application to
> > > appengine.
>
> > > Any clues are pointers are highly appreciated.
>
> > > Thanks,
> > > Rahul
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com > >  unsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine for Java" group.
> > To post to this group, send email to google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

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



[appengine-java] Error in store BLOBS at GAE

2010-05-24 Thread Tianshu
hello,
i'm a student from Temasek poly of Singapore. within one of my
project. i want to use blob to store some files like pictures,
documents.
because of i didn't use it before. so, i just follow the teaching
notes of Google Code(link:http://code.google.com/intl/en/appengine/
docs/java/blobstore/overview.html#Complete_Sample_App)

the problem is,
it's no problem to run at localhost. i even can view all the data from
localhost appengine(link:http://localhost:/_ah/admin/). BUT when i
update the project to Google App Engine,  it can not run successful.
You can see what i have done at http://1.latest.uploadimagee.appspot.com/

at the beginning. i think its the JSP's problem. so i change the first
page "index.jsp" to a servlet named "index". but i still got the same
error. (http://2.latest.uploadimagee.appspot.com/ )but also have no
problem in localhost running time.

Can anyone help me to solve my problem? thank you~~~

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



[appengine-java] Error in store BLOBS at GAE

2010-05-24 Thread Tianshu
hello,
i'm a student from Temasek poly of Singapore. within one of my
project. i want to use blob to store some files like pictures,
documents.
because of i didn't use it before. so, i just follow the teaching
notes of Google Code(link:http://code.google.com/intl/en/appengine/
docs/java/blobstore/overview.html#Complete_Sample_App)

the problem is,
it's no problem to run at localhost. i even can view all the data from
localhost appengine(link:http://localhost:/_ah/admin/).
BUT when i update the project to Google App Engine,  it can not run
successful. You can see what i have done at 
http://1.latest.uploadimagee.appspot.com/
at the beginning. i think its the JSP's problem. so i change the first
page "index.jsp" to a servlet named "index". but i still got the same
error. but also have no problem in localhost running time.

Can anyone help me to solve my problem? thank you~~~

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



Re: [appengine-java] Re: working in local host but not in GAE after deployment

2010-05-24 Thread drift elysium
which one? the EdgeIntersection or computeIntersection

On Mon, May 24, 2010 at 12:29 PM, bufferings  wrote:

> Can you write your servlet code here?
>
> 2010/05/25 2:22 "drift elysium" :
>
>
> It basically displays the two textarea containing the edges of the two
> graphs..and the another textarea showing the intersection of the 2 graphs
>
>
>
> On Mon, May 24, 2010 at 12:19 PM, bufferings  wrote:
> >
> > mm...
> > The setting...
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

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



Re: [appengine-java] Re: working in local host but not in GAE after deployment

2010-05-24 Thread bufferings
Can you write your servlet code here?

2010/05/25 2:22 "drift elysium" :

It basically displays the two textarea containing the edges of the two
graphs..and the another textarea showing the intersection of the 2 graphs



On Mon, May 24, 2010 at 12:19 PM, bufferings  wrote:
>
> mm...
> The setting...

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



Re: [appengine-java] Re: working in local host but not in GAE after deployment

2010-05-24 Thread bufferings
mm...
The setting is good.

So I touched your service.
http://deepmhn.appspot.com/

The servlet call seems to be working.
What does "computeIntersectionServlet" draw?

2010/5/25 drift elysium :
> here's my web.xml file:
>
>
> 
> http://www.w3.org/2001/XMLSchema-instance";
> xmlns="http://java.sun.com/xml/ns/javaee";
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">
>     
>         EdgeIntersection
>         servlets.EdgeIntersectionServlet
>     
>     
>         computeIntersection
>         servlets.computeIntersectionServlet
>     
>     
>         EdgeIntersection
>         /EdgeIntersection
>     
>
>     
>         computeIntersection
>         /computeIntersection
>     
>
>     
>         EdgeIntersection
>     
> 
>
>
> On Mon, May 24, 2010 at 11:49 AM, bufferings  wrote:
>>
>> hi
>>
>> I want to know servlet-mapping and "computeIntersectionServlet" class
>> name.
>>
>> 2010/5/25 drift elysium :
>> > Hi,
>> >
>> > One reason I suspect might be this. I have my servlets under the folder
>> > "servlets" . So in the web.xml I had mapping like this:
>> >
>> > computeIntersection
>> >
>> > servlets.computeIntersectionServlet
>> >
>> > how do I specify the path for the servlet class so that it works in the
>> > production server also?
>> >
>> > Thanks
>> >
>> > On Mon, May 24, 2010 at 9:51 AM, bufferings 
>> > wrote:
>> >>
>> >> Hi drift elysium,
>> >>
>> >> I think you are using the version 1.3.3.1 if you use
>> >> appengine-api-1.0-sdk-1.3.3.1.jar.
>> >> You can confirm the version by the value of SystemProperty.version.
>> >>
>> >>
>> >>
>> >> http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html#version
>> >>
>> >> I guess another reason.
>> >> Are the capital letter and the small letter of your path correct?
>> >>
>> >> - bufferings
>> >>
>> >> 2010/5/24 drift elysium :
>> >> > Hi bufferings,
>> >> >
>> >> > Thanks for the reply. Can you please tell me how to update to the
>> >> > latest
>> >> > version?
>> >> >
>> >> > The lib in  my war folder has this file-
>> >> > appengine-api-1.0-sdk-1.3.3.1.jar .
>> >> > So this means I'm using the version 1.3.3.1 right?
>> >> >
>> >> > On Sat, May 22, 2010 at 10:03 AM, bufferings 
>> >> > wrote:
>> >> >>
>> >> >> hi drift elysium
>> >> >>
>> >> >> If you use GAE 1.3.3, the servlet filter does not work on the
>> >> >> production server.
>> >> >> The bug is fixed in GAE 1.3.3.1.
>> >> >> http://code.google.com/p/googleappengine/issues/detail?id=3138
>> >> >>
>> >> >> hth
>> >> >> - bufferings
>> >> >>
>> >> >>
>> >> >> On May 22, 10:15 pm, drift elysium  wrote:
>> >> >> > http://deepmhn.appspot.com/
>> >> >> >
>> >> >> > The goal is to find the intersection of edges of two graphs. For
>> >> >> > simplicity
>> >> >> > I have generated 10 random edges for each graph. On pressing the
>> >> >> > compute
>> >> >> > button, another servlet should run which displays the intersection
>> >> >> > of
>> >> >> > the
>> >> >> > edges. It is displaying in the localhost but not in this site. Are
>> >> >> > there
>> >> >> > any
>> >> >> > development mode parameters that I can set for HttpServlet?
>> >> >> >
>> >> >> > On Sat, May 22, 2010 at 3:24 AM, Ian Marshall
>> >> >> > wrote:
>> >> >> >
>> >> >> > > Have you got any example output and related code (if relevant)?
>> >> >> >
>> >> >> > > --
>> >> >> > > You received this message because you are subscribed to the
>> >> >> > > Google
>> >> >> > > Groups
>> >> >> > > "Google App Engine for Java" group.
>> >> >> > > To post to this group, send email to
>> >> >> > > google-appengine-j...@googlegroups.com.
>> >> >> > > To unsubscribe from this group, send email to
>> >> >> > >
>> >> >> > >
>> >> >> > >
>> >> >> > > google-appengine-java+unsubscr...@googlegroups.com> >> >> > > unsubscr...@googlegroups.com>
>> >> >> > > .
>> >> >> > > For more options, visit this group at
>> >> >> > >http://groups.google.com/group/google-appengine-java?hl=en.
>> >> >> >
>> >> >> > --
>> >> >> > You received this message because you are subscribed to the Google
>> >> >> > Groups "Google App Engine for Java" group.
>> >> >> > To post to this group, send email to
>> >> >> > google-appengine-j...@googlegroups.com.
>> >> >> > To unsubscribe from this group, send email to
>> >> >> > google-appengine-java+unsubscr...@googlegroups.com.
>> >> >> > For more options, visit this group
>> >> >> > 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

Re: [appengine-java] Re: How to organize your server code

2010-05-24 Thread Tristan Slominski
Mike is correct, that indeed is the recommended practice. (i don't use it
though)

On Mon, May 24, 2010 at 12:03, Mike  wrote:

> Actually, I would recommend the following syntax instead:
>
> public MyServlet {
>
> private OtherServlet otherServlet
>
> @Inject
> public MyServlet(OtherServlet otherServlet) {
> this.otherServelt = otherServlet;
> }
>
> // ...
>
> }
>
> Its ok to do the field injection, but the constructor injection is
> recommended (I thought) over field injection, and is negligibly more
> code...
>
> On May 24, 1:04 am, Tristan  wrote:
> > Here's how you'd do it using Guice on the server:
> >
> > public MyServlet {
> >
> >   @Inject
> >   OtherServlet otherServlet;
> >
> >   public void someMethod(){
> > otherServlet.doSomething();
> > ...
> >   }
> >
> > }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] Re: working in local host but not in GAE after deployment

2010-05-24 Thread drift elysium
It basically displays the two textarea containing the edges of the two
graphs..and the another textarea showing the intersection of the 2 graphs

On Mon, May 24, 2010 at 12:19 PM, bufferings  wrote:

> mm...
> The setting is good.
>
> So I touched your service.
> http://deepmhn.appspot.com/
>
> The servlet call seems to be working.
> What does "computeIntersectionServlet" draw?
>
> 2010/5/25 drift elysium :
> > here's my web.xml file:
> >
> >
> > 
> > http://www.w3.org/2001/XMLSchema-instance";
> > xmlns="http://java.sun.com/xml/ns/javaee";
> > xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
> > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">
> > 
> > EdgeIntersection
> > servlets.EdgeIntersectionServlet
> > 
> > 
> > computeIntersection
> >
> servlets.computeIntersectionServlet
> > 
> > 
> > EdgeIntersection
> > /EdgeIntersection
> > 
> >
> > 
> > computeIntersection
> > /computeIntersection
> > 
> >
> > 
> > EdgeIntersection
> > 
> > 
> >
> >
> > On Mon, May 24, 2010 at 11:49 AM, bufferings 
> wrote:
> >>
> >> hi
> >>
> >> I want to know servlet-mapping and "computeIntersectionServlet" class
> >> name.
> >>
> >> 2010/5/25 drift elysium :
> >> > Hi,
> >> >
> >> > One reason I suspect might be this. I have my servlets under the
> folder
> >> > "servlets" . So in the web.xml I had mapping like this:
> >> >
> >> > computeIntersection
> >> >
> >> > servlets.computeIntersectionServlet
> >> >
> >> > how do I specify the path for the servlet class so that it works in
> the
> >> > production server also?
> >> >
> >> > Thanks
> >> >
> >> > On Mon, May 24, 2010 at 9:51 AM, bufferings 
> >> > wrote:
> >> >>
> >> >> Hi drift elysium,
> >> >>
> >> >> I think you are using the version 1.3.3.1 if you use
> >> >> appengine-api-1.0-sdk-1.3.3.1.jar.
> >> >> You can confirm the version by the value of SystemProperty.version.
> >> >>
> >> >>
> >> >>
> >> >>
> http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html#version
> >> >>
> >> >> I guess another reason.
> >> >> Are the capital letter and the small letter of your path correct?
> >> >>
> >> >> - bufferings
> >> >>
> >> >> 2010/5/24 drift elysium :
> >> >> > Hi bufferings,
> >> >> >
> >> >> > Thanks for the reply. Can you please tell me how to update to the
> >> >> > latest
> >> >> > version?
> >> >> >
> >> >> > The lib in  my war folder has this file-
> >> >> > appengine-api-1.0-sdk-1.3.3.1.jar .
> >> >> > So this means I'm using the version 1.3.3.1 right?
> >> >> >
> >> >> > On Sat, May 22, 2010 at 10:03 AM, bufferings  >
> >> >> > wrote:
> >> >> >>
> >> >> >> hi drift elysium
> >> >> >>
> >> >> >> If you use GAE 1.3.3, the servlet filter does not work on the
> >> >> >> production server.
> >> >> >> The bug is fixed in GAE 1.3.3.1.
> >> >> >> http://code.google.com/p/googleappengine/issues/detail?id=3138
> >> >> >>
> >> >> >> hth
> >> >> >> - bufferings
> >> >> >>
> >> >> >>
> >> >> >> On May 22, 10:15 pm, drift elysium 
> wrote:
> >> >> >> > http://deepmhn.appspot.com/
> >> >> >> >
> >> >> >> > The goal is to find the intersection of edges of two graphs. For
> >> >> >> > simplicity
> >> >> >> > I have generated 10 random edges for each graph. On pressing the
> >> >> >> > compute
> >> >> >> > button, another servlet should run which displays the
> intersection
> >> >> >> > of
> >> >> >> > the
> >> >> >> > edges. It is displaying in the localhost but not in this site.
> Are
> >> >> >> > there
> >> >> >> > any
> >> >> >> > development mode parameters that I can set for HttpServlet?
> >> >> >> >
> >> >> >> > On Sat, May 22, 2010 at 3:24 AM, Ian Marshall
> >> >> >> > wrote:
> >> >> >> >
> >> >> >> > > Have you got any example output and related code (if
> relevant)?
> >> >> >> >
> >> >> >> > > --
> >> >> >> > > You received this message because you are subscribed to the
> >> >> >> > > Google
> >> >> >> > > Groups
> >> >> >> > > "Google App Engine for Java" group.
> >> >> >> > > To post to this group, send email to
> >> >> >> > > google-appengine-j...@googlegroups.com.
> >> >> >> > > To unsubscribe from this group, send email to
> >> >> >> > >
> >> >> >> > >
> >> >> >> > >
> >> >> >> > > google-appengine-java+unsubscr...@googlegroups.com
>  >> >> >> > > unsubscr...@googlegroups.com>
> >> >> >> > > .
> >> >> >> > > For more options, visit this group at
> >> >> >> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >> >> >> >
> >> >> >> > --
> >> >> >> > You received this message because you are subscribed to the
> Google
> >> >> >> > Groups "Google App Engine for Java" group.
> >> >> >> > To post to this group, send email to
> >> >> >> > google-appengine-j...@googlegroups.com.
> >> >> >> > To unsubscribe from this group, send email to
> >> >> >> > google-appengine-java+unsubscr...@googlegroups.com
> .
> >> >> >> > F

Re: [appengine-java] Re: working in local host but not in GAE after deployment

2010-05-24 Thread drift elysium
here's my web.xml file:



http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">

EdgeIntersection
servlets.EdgeIntersectionServlet


computeIntersection
servlets.computeIntersectionServlet


EdgeIntersection
/EdgeIntersection



computeIntersection
/computeIntersection



EdgeIntersection




On Mon, May 24, 2010 at 11:49 AM, bufferings  wrote:

> hi
>
> I want to know servlet-mapping and "computeIntersectionServlet" class name.
>
> 2010/5/25 drift elysium :
> > Hi,
> >
> > One reason I suspect might be this. I have my servlets under the folder
> > "servlets" . So in the web.xml I had mapping like this:
> >
> > computeIntersection
> >
> servlets.computeIntersectionServlet
> >
> > how do I specify the path for the servlet class so that it works in the
> > production server also?
> >
> > Thanks
> >
> > On Mon, May 24, 2010 at 9:51 AM, bufferings 
> wrote:
> >>
> >> Hi drift elysium,
> >>
> >> I think you are using the version 1.3.3.1 if you use
> >> appengine-api-1.0-sdk-1.3.3.1.jar.
> >> You can confirm the version by the value of SystemProperty.version.
> >>
> >>
> >>
> http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html#version
> >>
> >> I guess another reason.
> >> Are the capital letter and the small letter of your path correct?
> >>
> >> - bufferings
> >>
> >> 2010/5/24 drift elysium :
> >> > Hi bufferings,
> >> >
> >> > Thanks for the reply. Can you please tell me how to update to the
> latest
> >> > version?
> >> >
> >> > The lib in  my war folder has this file-
> >> > appengine-api-1.0-sdk-1.3.3.1.jar .
> >> > So this means I'm using the version 1.3.3.1 right?
> >> >
> >> > On Sat, May 22, 2010 at 10:03 AM, bufferings 
> >> > wrote:
> >> >>
> >> >> hi drift elysium
> >> >>
> >> >> If you use GAE 1.3.3, the servlet filter does not work on the
> >> >> production server.
> >> >> The bug is fixed in GAE 1.3.3.1.
> >> >> http://code.google.com/p/googleappengine/issues/detail?id=3138
> >> >>
> >> >> hth
> >> >> - bufferings
> >> >>
> >> >>
> >> >> On May 22, 10:15 pm, drift elysium  wrote:
> >> >> > http://deepmhn.appspot.com/
> >> >> >
> >> >> > The goal is to find the intersection of edges of two graphs. For
> >> >> > simplicity
> >> >> > I have generated 10 random edges for each graph. On pressing the
> >> >> > compute
> >> >> > button, another servlet should run which displays the intersection
> of
> >> >> > the
> >> >> > edges. It is displaying in the localhost but not in this site. Are
> >> >> > there
> >> >> > any
> >> >> > development mode parameters that I can set for HttpServlet?
> >> >> >
> >> >> > On Sat, May 22, 2010 at 3:24 AM, Ian Marshall
> >> >> > wrote:
> >> >> >
> >> >> > > Have you got any example output and related code (if relevant)?
> >> >> >
> >> >> > > --
> >> >> > > You received this message because you are subscribed to the
> Google
> >> >> > > Groups
> >> >> > > "Google App Engine for Java" group.
> >> >> > > To post to this group, send email to
> >> >> > > google-appengine-j...@googlegroups.com.
> >> >> > > To unsubscribe from this group, send email to
> >> >> > >
> >> >> > >
> >> >> > > google-appengine-java+unsubscr...@googlegroups.com
>  >> >> > > unsubscr...@googlegroups.com>
> >> >> > > .
> >> >> > > For more options, visit this group at
> >> >> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >> >> >
> >> >> > --
> >> >> > You received this message because you are subscribed to the Google
> >> >> > Groups "Google App Engine for Java" group.
> >> >> > To post to this group, send email to
> >> >> > google-appengine-j...@googlegroups.com.
> >> >> > To unsubscribe from this group, send email to
> >> >> > google-appengine-java+unsubscr...@googlegroups.com
> .
> >> >> > For more options, visit this group
> >> >> > 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.
> >> >>
> >> >
> >> >
> >>
> >> --
> >> 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...@googlegrou

[appengine-java] Re: How to organize your server code

2010-05-24 Thread Mike
Actually, I would recommend the following syntax instead:

public MyServlet {

private OtherServlet otherServlet

@Inject
public MyServlet(OtherServlet otherServlet) {
this.otherServelt = otherServlet;
}

// ...

}

Its ok to do the field injection, but the constructor injection is
recommended (I thought) over field injection, and is negligibly more
code...

On May 24, 1:04 am, Tristan  wrote:
> Here's how you'd do it using Guice on the server:
>
> public MyServlet {
>
>   @Inject
>   OtherServlet otherServlet;
>
>   public void someMethod(){
>     otherServlet.doSomething();
>     ...
>   }
>
> }

-- 
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: Best method to set up nested classes in Objectify

2010-05-24 Thread Mike
I'm not an expert, but I believe I understand Objectify (and -- you
could post the query on their group as well, the owner is very
responsive and helpful).

The structure would more accurately have been described as:

@Entity
public class A {

private Long id;

@Embeded
private B child;

}

I don't know how big A & B are, and I don't know why you're trying to
conserve bandwidth -- but your #3 should work (but, requires an extra
trip to get an B associated with an A.

There's also a couple of ways of achieving it.  You could either
associate each B to an A by having a Key in each B; or you could
have a Key in each A.

I prefer this layout:


@Entity
public class A {

private Long id;

// Whatever else is in here
}

@Entity
public class B {

private Long id;

private Key parent;
}

Your concerns about "dangling" relationships are concerns about the
GAE Datastore and its capabilities -- not about Objectify.  The GAE
requires that all logic to ensure these valid states must be
implemented in the application layer (its not a SQL DB).  If you're
really worried about that type of consistency, then using the B
embedded in A is the way to go.

Also -- its not true that you can't send less data to the client with
the A contains @Embedded B -- it just means that you would have to
create (and use) some sort of DTO that contained only the data that
you wanted to send to the client, and using that technique is likely
the simplest way for you to achieve your goals (I think).

Cheers
Mike

-- 
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: Bulkupload int key?

2010-05-24 Thread Craig Berry
Can someone help me with this, please? I'm sure the answer is trivial,
but another weekend of tinkering hasn't led me to the solution.

On Fri, May 21, 2010 at 20:21, Craig Berry  wrote:
> I have an xml file containing data which I wish to bulkupload to GAE.
> I am using the preview version of the new bulk uploader, if that
> matters. How do I include an int value for the __key__ derived from a
> field in the xml data? If I specify no import transform, like so
>
>    - property: __key__
>      external_name: id
>      export_transform: transform.key_id_or_name_as_string
>
> it loads the key as a string 'name', so it sorts lexicographically
> rather than numerically. I want an int id instead. But I can't find
> what to put in as an import_transform to make this happen.
>
> Thanks in advance for any help on this.
>
> --
> Craig Berry - http://lapidum.org/home.html
> "Magicians lie to the universe, and the
> universe believes them."  -- Lenore Berry
>



-- 
Craig Berry - http://lapidum.org/home.html
"Magicians lie to the universe, and the
universe believes them."  -- Lenore Berry

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



Re: [appengine-java] Re: working in local host but not in GAE after deployment

2010-05-24 Thread bufferings
hi

I want to know servlet-mapping and "computeIntersectionServlet" class name.

2010/5/25 drift elysium :
> Hi,
>
> One reason I suspect might be this. I have my servlets under the folder
> "servlets" . So in the web.xml I had mapping like this:
>
> computeIntersection
>         servlets.computeIntersectionServlet
>
> how do I specify the path for the servlet class so that it works in the
> production server also?
>
> Thanks
>
> On Mon, May 24, 2010 at 9:51 AM, bufferings  wrote:
>>
>> Hi drift elysium,
>>
>> I think you are using the version 1.3.3.1 if you use
>> appengine-api-1.0-sdk-1.3.3.1.jar.
>> You can confirm the version by the value of SystemProperty.version.
>>
>>
>> http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html#version
>>
>> I guess another reason.
>> Are the capital letter and the small letter of your path correct?
>>
>> - bufferings
>>
>> 2010/5/24 drift elysium :
>> > Hi bufferings,
>> >
>> > Thanks for the reply. Can you please tell me how to update to the latest
>> > version?
>> >
>> > The lib in  my war folder has this file-
>> > appengine-api-1.0-sdk-1.3.3.1.jar .
>> > So this means I'm using the version 1.3.3.1 right?
>> >
>> > On Sat, May 22, 2010 at 10:03 AM, bufferings 
>> > wrote:
>> >>
>> >> hi drift elysium
>> >>
>> >> If you use GAE 1.3.3, the servlet filter does not work on the
>> >> production server.
>> >> The bug is fixed in GAE 1.3.3.1.
>> >> http://code.google.com/p/googleappengine/issues/detail?id=3138
>> >>
>> >> hth
>> >> - bufferings
>> >>
>> >>
>> >> On May 22, 10:15 pm, drift elysium  wrote:
>> >> > http://deepmhn.appspot.com/
>> >> >
>> >> > The goal is to find the intersection of edges of two graphs. For
>> >> > simplicity
>> >> > I have generated 10 random edges for each graph. On pressing the
>> >> > compute
>> >> > button, another servlet should run which displays the intersection of
>> >> > the
>> >> > edges. It is displaying in the localhost but not in this site. Are
>> >> > there
>> >> > any
>> >> > development mode parameters that I can set for HttpServlet?
>> >> >
>> >> > On Sat, May 22, 2010 at 3:24 AM, Ian Marshall
>> >> > wrote:
>> >> >
>> >> > > Have you got any example output and related code (if relevant)?
>> >> >
>> >> > > --
>> >> > > You received this message because you are subscribed to the Google
>> >> > > Groups
>> >> > > "Google App Engine for Java" group.
>> >> > > To post to this group, send email to
>> >> > > google-appengine-j...@googlegroups.com.
>> >> > > To unsubscribe from this group, send email to
>> >> > >
>> >> > >
>> >> > > google-appengine-java+unsubscr...@googlegroups.com> >> > > unsubscr...@googlegroups.com>
>> >> > > .
>> >> > > For more options, visit this group at
>> >> > >http://groups.google.com/group/google-appengine-java?hl=en.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups "Google App Engine for Java" group.
>> >> > To post to this group, send email to
>> >> > google-appengine-j...@googlegroups.com.
>> >> > To unsubscribe from this group, send email to
>> >> > google-appengine-java+unsubscr...@googlegroups.com.
>> >> > For more options, visit this group
>> >> > 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.
>> >>
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

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



Re: [appengine-java] Re: working in local host but not in GAE after deployment

2010-05-24 Thread drift elysium
Hi,

One reason I suspect might be this. I have my servlets under the folder
"servlets" . So in the web.xml I had mapping like this:

computeIntersection
servlets.computeIntersectionServlet

how do I specify the path for the servlet class so that it works in the
production server also?

Thanks

On Mon, May 24, 2010 at 9:51 AM, bufferings  wrote:

> Hi drift elysium,
>
> I think you are using the version 1.3.3.1 if you use
> appengine-api-1.0-sdk-1.3.3.1.jar.
> You can confirm the version by the value of SystemProperty.version.
>
>
> http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html#version
>
> I guess another reason.
> Are the capital letter and the small letter of your path correct?
>
> - bufferings
>
> 2010/5/24 drift elysium :
> > Hi bufferings,
> >
> > Thanks for the reply. Can you please tell me how to update to the latest
> > version?
> >
> > The lib in  my war folder has this file-
> appengine-api-1.0-sdk-1.3.3.1.jar .
> > So this means I'm using the version 1.3.3.1 right?
> >
> > On Sat, May 22, 2010 at 10:03 AM, bufferings 
> wrote:
> >>
> >> hi drift elysium
> >>
> >> If you use GAE 1.3.3, the servlet filter does not work on the
> >> production server.
> >> The bug is fixed in GAE 1.3.3.1.
> >> http://code.google.com/p/googleappengine/issues/detail?id=3138
> >>
> >> hth
> >> - bufferings
> >>
> >>
> >> On May 22, 10:15 pm, drift elysium  wrote:
> >> > http://deepmhn.appspot.com/
> >> >
> >> > The goal is to find the intersection of edges of two graphs. For
> >> > simplicity
> >> > I have generated 10 random edges for each graph. On pressing the
> compute
> >> > button, another servlet should run which displays the intersection of
> >> > the
> >> > edges. It is displaying in the localhost but not in this site. Are
> there
> >> > any
> >> > development mode parameters that I can set for HttpServlet?
> >> >
> >> > On Sat, May 22, 2010 at 3:24 AM, Ian Marshall
> >> > wrote:
> >> >
> >> > > Have you got any example output and related code (if relevant)?
> >> >
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> > > Groups
> >> > > "Google App Engine for Java" group.
> >> > > To post to this group, send email to
> >> > > google-appengine-j...@googlegroups.com.
> >> > > To unsubscribe from this group, send email to
> >> > >
> >> > > google-appengine-java+unsubscr...@googlegroups.com
>  >> > > unsubscr...@googlegroups.com>
> >> > > .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Google App Engine for Java" group.
> >> > To post to this group, send email to
> >> > google-appengine-j...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> > google-appengine-java+unsubscr...@googlegroups.com
> .
> >> > For more options, visit this group
> >> > 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.
> >>
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Tristan Slominski
This sounds a lot like the sharded counter scenario. I think they came up
with a committing to datastore strategy that worked well.

On another hand, you can always queue a task and let the task queue persist
the preferences when it gets around to it.

On Mon, May 24, 2010 at 11:16, Rahul  wrote:

> Ok. Let me explain the complete scenario.
>
> Suppose I have lot of preference on my page which are stored in the
> database. Now i have multiple options,
> 1. Load all the preference in Hashmap in a servlet and mark that
> servlet as Load-on-startup to 0 and then use the hashmap cache when a
> new user visits the page. User can also change the values of
> preference and yes if one use change the preference it will be
> globally changed for all the new users coming to that page.
> 2. Create a memcache and load the cache in a servlet with load-on-
> startup as 0. When any new user comes read the memcache and if the
> value is present use that else go to the database (which will almost
> never happen as i will update the memcache when some user change the
> preferences).
>
> I also have a requirement if ever a user changes the preferences i
> need to store the new preference in the database so where should we
> persist this, I mean on some specific time or when the user changes
> immediately.
>
> Any pointer.
>
> Thanks,
> Rahul
>
> On May 24, 9:47 am, Rahul  wrote:
> > Chau,
> >
> > I have already tried various solutions out of those mentioned above,
> > including "b) request Google to load your app before start dispatch
> > request to that instance "  but it is still slow, My exact question is
> > when to put the data in cache.
> >
> > Thanks,
> > Rahul
> >
> > On May 24, 4:49 am, Chau Huynh  wrote:
> >
> >
> >
> >
> >
> > > Hi Rahul,
> >
> > > About loading request/performance, there're lots of discussions that
> you can
> > > find in the groups, please just try google it.
> >
> > > Here are some notes based on reading those.
> > > Latency causes by
> > > 1- time to start new JVM
> > > 2- time to load your application
> >
> > > To reduce load time by 1) others star request to
> > > a) pay to reserve JVM
> > > b) request Google to load your app before start dispatch request to
> that
> > > instance
> > > c) accept the situation
> >
> > > For 2) we try to
> > > a- try to use/replace frameworks with light-weight ones: datastore
> access
> > > framework, MVC framework,...
> > > b- try to limit calculation in your index page to alleviate the impact
> of
> > > loading request
> > > c- design your object model based on your need, so that you do
> calculation
> > > at insert time, not at query time. For example, in my app, if I want to
> > > report on year and quarter, then I have 5 summary "record" for those,
> > > instead of querying and computing those
> > > d- caching result. For example, If I know 1 one 5 piece of data above
> would
> > > be read frequently, then I will read those 5 all, and put into memcache
> for
> > > later use
> > > ...
> >
> > > So it's application-specific, I don't know if each of above can help
> you.
> > > But only you who can know if which one of your code can be cached and
> how...
> >
> > > HTH
> >
> > > On Sun, May 23, 2010 at 11:37 AM, Rahul 
> wrote:
> > > > Chau,
> >
> > > > Thanks for pointing to the link. I did go through the link and i
> > > > think, what i thought was right.
> > > > Also i was going through the following point in the section you
> > > > provided : "How can I speed up loading requests? " and the second
> > > > point mentioned is "Share expensive initialization between JVMs. For
> > > > example, put data which is expensive to read or compute into
> memcache,
> > > > where it can be quickly read by other JVMs during startup." so in
> this
> > > > scenario where do you load this memcache so that it can be shared
> > > > between the jvm instances.
> >
> > > > Any pointers or clues highly appreciated.
> >
> > > > Thanks,
> > > > Rahul
> >
> > > > On May 22, 10:51 pm, Chau Huynh  wrote:
> > > > > It seems like loading request...
> > > >
> http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request
> >
> > > > > On Sun, May 23, 2010 at 4:55 AM, Rahul 
> wrote:
> > > > > > I have an application running on appengine and no doubt it works
> > > > > > great. but when the application is not used for some time. it
> goes
> > > > > > very slow.
> > > > > > Suppose i don;t use the application for around 5 hours or so,
> then
> > > > > > next time when i try to use it, the response is very slow. Is
> there
> > > > > > any thing specific which i am missing in adding application to
> > > > > > appengine.
> >
> > > > > > Any clues are pointers are highly appreciated.
> >
> > > > > > Thanks,
> > > > > > Rahul
> >
> > > > > > --
> > > > > > 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.
>

[appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Rahul
Ok. Let me explain the complete scenario.

Suppose I have lot of preference on my page which are stored in the
database. Now i have multiple options,
1. Load all the preference in Hashmap in a servlet and mark that
servlet as Load-on-startup to 0 and then use the hashmap cache when a
new user visits the page. User can also change the values of
preference and yes if one use change the preference it will be
globally changed for all the new users coming to that page.
2. Create a memcache and load the cache in a servlet with load-on-
startup as 0. When any new user comes read the memcache and if the
value is present use that else go to the database (which will almost
never happen as i will update the memcache when some user change the
preferences).

I also have a requirement if ever a user changes the preferences i
need to store the new preference in the database so where should we
persist this, I mean on some specific time or when the user changes
immediately.

Any pointer.

Thanks,
Rahul

On May 24, 9:47 am, Rahul  wrote:
> Chau,
>
> I have already tried various solutions out of those mentioned above,
> including "b) request Google to load your app before start dispatch
> request to that instance "  but it is still slow, My exact question is
> when to put the data in cache.
>
> Thanks,
> Rahul
>
> On May 24, 4:49 am, Chau Huynh  wrote:
>
>
>
>
>
> > Hi Rahul,
>
> > About loading request/performance, there're lots of discussions that you can
> > find in the groups, please just try google it.
>
> > Here are some notes based on reading those.
> > Latency causes by
> > 1- time to start new JVM
> > 2- time to load your application
>
> > To reduce load time by 1) others star request to
> > a) pay to reserve JVM
> > b) request Google to load your app before start dispatch request to that
> > instance
> > c) accept the situation
>
> > For 2) we try to
> > a- try to use/replace frameworks with light-weight ones: datastore access
> > framework, MVC framework,...
> > b- try to limit calculation in your index page to alleviate the impact of
> > loading request
> > c- design your object model based on your need, so that you do calculation
> > at insert time, not at query time. For example, in my app, if I want to
> > report on year and quarter, then I have 5 summary "record" for those,
> > instead of querying and computing those
> > d- caching result. For example, If I know 1 one 5 piece of data above would
> > be read frequently, then I will read those 5 all, and put into memcache for
> > later use
> > ...
>
> > So it's application-specific, I don't know if each of above can help you.
> > But only you who can know if which one of your code can be cached and how...
>
> > HTH
>
> > On Sun, May 23, 2010 at 11:37 AM, Rahul  wrote:
> > > Chau,
>
> > > Thanks for pointing to the link. I did go through the link and i
> > > think, what i thought was right.
> > > Also i was going through the following point in the section you
> > > provided : "How can I speed up loading requests? " and the second
> > > point mentioned is "Share expensive initialization between JVMs. For
> > > example, put data which is expensive to read or compute into memcache,
> > > where it can be quickly read by other JVMs during startup." so in this
> > > scenario where do you load this memcache so that it can be shared
> > > between the jvm instances.
>
> > > Any pointers or clues highly appreciated.
>
> > > Thanks,
> > > Rahul
>
> > > On May 22, 10:51 pm, Chau Huynh  wrote:
> > > > It seems like loading request...
> > >http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request
>
> > > > On Sun, May 23, 2010 at 4:55 AM, Rahul  wrote:
> > > > > I have an application running on appengine and no doubt it works
> > > > > great. but when the application is not used for some time. it goes
> > > > > very slow.
> > > > > Suppose i don;t use the application for around 5 hours or so, then
> > > > > next time when i try to use it, the response is very slow. Is there
> > > > > any thing specific which i am missing in adding application to
> > > > > appengine.
>
> > > > > Any clues are pointers are highly appreciated.
>
> > > > > Thanks,
> > > > > Rahul
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google App Engine for Java" group.
> > > > > To post to this group, send email to
> > > > > google-appengine-j...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-appengine-java+unsubscr...@googlegroups.com > > > >  unsubscr...@googlegroups.com>
> > >  > >  %252bunsubscr...@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.

[appengine-java] GAE Task Queue and Google Spreadsheet Java API

2010-05-24 Thread Rudolf
Hello,

I use Google Spreadsheet to store my data;

I would like to use GAE to retrieve these data and perform
calculations on it;

I use the following code to get the data from the spreadsheet server -
executed in a GAE task queue:

ListFeed  rows1[int_year - 1993] =
getData_Query_ListFeed("( (zahlungsdatum >= 01-01-" + year + ") &&
(zahlungsdatum <= 31-12-" + year + ") )","zahlungsdatum");

private ListFeed getData_Query_ListFeed(String queryString, String
orderByColumn)
{
  ListFeed rowFeed = new ListFeed();
  try
  {
// get rows and cell data
URL metafeedUrl = new URL("http://spreadsheets.google.com/feeds/
spreadsheets/private/full");
SpreadsheetFeed feed = spreadsheetService.getFeed(metafeedUrl,
SpreadsheetFeed.class);
java.util.List spreadsheets = feed.getEntries();
ListQuery query = new
ListQuery(spreadsheets.get(spreadsheet_index).getWorksheets().get(worksheet_index).getListFeedUrl());
query.setSpreadsheetQuery(queryString);
query.setSortColumn(orderByColumn);
rowFeed = spreadsheetService.query(query, ListFeed.class);
  }
  catch(Exception ex){}
  return rowFeed;
}

with the following line I check, that I have received data from the
Google spreadsheet server:
res = rows1[int_year - 1993].getEntries().size();

if res is 0, I repeat the task; if res is greater 0, I move to the
next task;

when I run this code on my localhost GAE server within Eclipse
everything works very well;

when I execute the code on the GAE Web Server, I very often get res=0
back; that means, I have very often to repeat the task;
I checked the log files on the GAE server - it looks like that the 30
sec limitation for a request is not touched;
it looks like that the code of the task is not executed;
nevertheless, sometimes it works fine;

has someone an idea what I am doing wrong?
is there a better way to access the Google Spreadsheets from GAE?

thank you very much in advance for your help;

Best Regards
Rudolf

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



Re: [appengine-java] Re: What Framework to use?

2010-05-24 Thread nicolas melendez
You can see my wicket and gae app, the start up time is aceptable because it
doesn't use jdo. Www.clasificad.com.ar

El may 24, 2010 10:30 a.m., "Jake"  escribió:

I'm also using Wicket and it works well.  I have had some difficulties
with GAE but, after many months of debugging, I do not believe they
are related to Wicket.  Sometimes, I have a pretty long startup time,
but it is never during the actual Wicket startup (from filter init to
app ready) - it's always the 3-8 seconds before the filter
initializes.  The framework itself is great.

Jake


On May 21, 10:30 pm, nicolas melendez  wrote:
> chose the Wicket way!
>
>
>
> On Fri, May 21, 2010 at 7:22 PM, jnizet  wrote:
> > I have used Stripes on GAE : seehttps://memwords.appspot.com/and

> >http://code.google.com/p/memwords/for the sources. It's a very
> > elegant and productive action-...
> > google-appengine-java+unsubscr...@googlegroups.com

>

> > .
> > > For more options, visit this group athttp://
> > groups.google.com/group/google-appengin...
> > google-appengine-java+unsubscr...@googlegroups.com

>

> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-j...

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



Re: [appengine-java] bulkloader dump and restore

2010-05-24 Thread Pavel Byles
I'm having a problem w/ bulkloading entities for my Java app and specifying
autogenerated id's in my python model.

My Java class look similar to this:

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MyEntity implements Serializable {
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long id;

  @Persistent
  private String name;

  @Persistent
  private float otherFloat;
.
.
.
}

And my python model (for bulkloading) looks similar to this:

class CountryLoader(bulkloader.Loader):
  def __init__(self):
bulkloader.Loader.__init__(self, 'MyEntity',
  [('name', str),
   ('otherFloat', float)
  ])

*How do I specify the "id" in my python 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-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Development mode for HttpServlet

2010-05-24 Thread bufferings
Hi drift elysium,

You don't have to set any parameter.

You can try it on the dev-server and the prod-server(e.g. logging the value),
and you will know the action well.

- bufferings


2010/5/24 drift elysium :
> Hi bufferings,
>
> Thanks for the site,
>
> So here I saw this:
>
>  if (SystemProperty.environment.value() ==
> SystemProperty.Environment.Value.Production) {
>// do something that's production-only
>  }
>
> Here it says to do something that's production-only. I don't really have
> clue as to what do if it's production only in app engine. Should I set any
> parameter value?
>
> On Sat, May 22, 2010 at 10:09 AM, bufferings  wrote:
>>
>> hi drift elysium
>>
>> You can use SystemProperty.environment.value().
>>
>> http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html
>>
>> - bufferings
>>
>> On May 22, 2:23 pm, drift elysium  wrote:
>> > http://www.pakzilla.com/2009/12/01/determine-whether-application-is-r...
>> >
>> > This link shows how to set the value of DEV_MODE to true or false
>> > according to whether they run on local machine or GAE. Is there any
>> > equivalent for HTTPServlet?
>> >
>> > --
>> > 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.
>>
>
>

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



Re: [appengine-java] Re: working in local host but not in GAE after deployment

2010-05-24 Thread bufferings
Hi drift elysium,

I think you are using the version 1.3.3.1 if you use
appengine-api-1.0-sdk-1.3.3.1.jar.
You can confirm the version by the value of SystemProperty.version.

http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html#version

I guess another reason.
Are the capital letter and the small letter of your path correct?

- bufferings

2010/5/24 drift elysium :
> Hi bufferings,
>
> Thanks for the reply. Can you please tell me how to update to the latest
> version?
>
> The lib in  my war folder has this file- appengine-api-1.0-sdk-1.3.3.1.jar .
> So this means I'm using the version 1.3.3.1 right?
>
> On Sat, May 22, 2010 at 10:03 AM, bufferings  wrote:
>>
>> hi drift elysium
>>
>> If you use GAE 1.3.3, the servlet filter does not work on the
>> production server.
>> The bug is fixed in GAE 1.3.3.1.
>> http://code.google.com/p/googleappengine/issues/detail?id=3138
>>
>> hth
>> - bufferings
>>
>>
>> On May 22, 10:15 pm, drift elysium  wrote:
>> > http://deepmhn.appspot.com/
>> >
>> > The goal is to find the intersection of edges of two graphs. For
>> > simplicity
>> > I have generated 10 random edges for each graph. On pressing the compute
>> > button, another servlet should run which displays the intersection of
>> > the
>> > edges. It is displaying in the localhost but not in this site. Are there
>> > any
>> > development mode parameters that I can set for HttpServlet?
>> >
>> > On Sat, May 22, 2010 at 3:24 AM, Ian Marshall
>> > wrote:
>> >
>> > > Have you got any example output and related code (if relevant)?
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> > > Groups
>> > > "Google App Engine for Java" group.
>> > > To post to this group, send email to
>> > > google-appengine-j...@googlegroups.com.
>> > > To unsubscribe from this group, send email to
>> > >
>> > > google-appengine-java+unsubscr...@googlegroups.com> > > unsubscr...@googlegroups.com>
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/google-appengine-java?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Google App Engine for Java" group.
>> > To post to this group, send email to
>> > google-appengine-j...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > google-appengine-java+unsubscr...@googlegroups.com.
>> > For more options, visit this group
>> > 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.
>>
>
>

-- 
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] getThreadLocalResponse().sendRedirect(str) is not working!

2010-05-24 Thread Yousef.Ghandour
Using sendRedirect(url) on the server is not working?  Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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] Unsubsribe

2010-05-24 Thread Manoj Mohan


-- 
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: Problem getting list of JDO objects with List of of keys

2010-05-24 Thread timwhunt
This article from the GAE Java Persistence Blog, "Executing Batch
Gets", might help:

http://gae-java-persistence.blogspot.com/2009/10/executing-batch-gets.html

That blog seems like the missing manual for using the datastore with
Java.  I've found many of very useful tips and examples in it, but I
wonder why more is not in the man documents.

-- 
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: Problem in Serializing ArrayList - JDO- GWT - GAE/J

2010-05-24 Thread timwhunt
I was getting a similar error and I think I fixed it by just cleaning
and rebuilding the app.

But I'm struggling to remember clearly exactly what happened so I
apologize if that's not what fixed 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: Best method to set up nested classes in Objectify

2010-05-24 Thread Jake
Hey,

I'll try to answer this, but I'm not an expert - would love to hear an
expert's opinion of my answer.

When you say "inside", it can be a bit misleading to me.  If you're
talking about Embedded classes, the entire object is fetched, so that
wouldn't help for #1 or #2.  If you are just talking about a field
reference to another object, e.g.

public class A {

  private Long id;
  private B child;
}

then I don't believe B will be "fetched" unless explicitly accessed.
At least, that is what the GAE Relationship Documentation for JDO
implies.  I think Objectify is missing some documentation on how this
behavior works (or does it even work?).  Regardless, your concerns
about Option #3 may still exist in Option #1 if Objectify doesn't
support cascading deletes, etc.  I'm pretty sure Option #2 doesn't
work in any scenario.

Anyways, I use Option #3 and it works quite well.  Your concerns are
valid, but can be handled with proper programming.

Jake

On May 22, 3:07 pm, Michael  wrote:
> Hi,
>
> I am new to app engine (using it with GWT).  I have a class with a lot
> of data in it.  nearly 100% of the time my program only needs two of
> the fields.  I want to break it up in to two classes: A (with the data
> needed often) and B (less common data).  Class A is also sent back and
> fourth from the client and server often, so I think it's important
> that I can just send class A and not B to keep bandwidth down. How
> should I set it up, I see a few different ways
> 1 B inside of A
> 2 A Inside of B
> 3 A with a key to B
>
> Method 1 seems bad because I can't send A to the client without
> sending all of B.  I am really new to Objectify, can I fetch just A
> (querying on one of the parameters) using method 2?  Method 3 seems
> the only working way, but then I run the risk of a B with no A
> pointing to it or A pointing to  B that doesn't exist if something
> happens while deleting.  Is there a good way to avoid this?  Or should
> I just keep all of my data in one large class?
>
> What do you think is the best method?
>
> --
> 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: AppEngine gets very slow when not used for some time

2010-05-24 Thread Rahul
Chau,

I have already tried various solutions out of those mentioned above,
including "b) request Google to load your app before start dispatch
request to that instance "  but it is still slow, My exact question is
when to put the data in cache.

Thanks,
Rahul

On May 24, 4:49 am, Chau Huynh  wrote:
> Hi Rahul,
>
> About loading request/performance, there're lots of discussions that you can
> find in the groups, please just try google it.
>
> Here are some notes based on reading those.
> Latency causes by
> 1- time to start new JVM
> 2- time to load your application
>
> To reduce load time by 1) others star request to
> a) pay to reserve JVM
> b) request Google to load your app before start dispatch request to that
> instance
> c) accept the situation
>
> For 2) we try to
> a- try to use/replace frameworks with light-weight ones: datastore access
> framework, MVC framework,...
> b- try to limit calculation in your index page to alleviate the impact of
> loading request
> c- design your object model based on your need, so that you do calculation
> at insert time, not at query time. For example, in my app, if I want to
> report on year and quarter, then I have 5 summary "record" for those,
> instead of querying and computing those
> d- caching result. For example, If I know 1 one 5 piece of data above would
> be read frequently, then I will read those 5 all, and put into memcache for
> later use
> ...
>
> So it's application-specific, I don't know if each of above can help you.
> But only you who can know if which one of your code can be cached and how...
>
> HTH
>
>
>
>
>
> On Sun, May 23, 2010 at 11:37 AM, Rahul  wrote:
> > Chau,
>
> > Thanks for pointing to the link. I did go through the link and i
> > think, what i thought was right.
> > Also i was going through the following point in the section you
> > provided : "How can I speed up loading requests? " and the second
> > point mentioned is "Share expensive initialization between JVMs. For
> > example, put data which is expensive to read or compute into memcache,
> > where it can be quickly read by other JVMs during startup." so in this
> > scenario where do you load this memcache so that it can be shared
> > between the jvm instances.
>
> > Any pointers or clues highly appreciated.
>
> > Thanks,
> > Rahul
>
> > On May 22, 10:51 pm, Chau Huynh  wrote:
> > > It seems like loading request...
> >http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request
>
> > > On Sun, May 23, 2010 at 4:55 AM, Rahul  wrote:
> > > > I have an application running on appengine and no doubt it works
> > > > great. but when the application is not used for some time. it goes
> > > > very slow.
> > > > Suppose i don;t use the application for around 5 hours or so, then
> > > > next time when i try to use it, the response is very slow. Is there
> > > > any thing specific which i am missing in adding application to
> > > > appengine.
>
> > > > Any clues are pointers are highly appreciated.
>
> > > > Thanks,
> > > > Rahul
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google App Engine for Java" group.
> > > > To post to this group, send email to
> > > > google-appengine-j...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-appengine-java+unsubscr...@googlegroups.com > > >  unsubscr...@googlegroups.com>
> >  > %252bunsubscr...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > > For more options, visit this group 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 > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engin

[appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Rahul
Tristan,

I do understand what you are saying but my question is there exactly
do we need to put data in memcache. If i put it in a servlet and load
that servlet with load-on-startup parameter, then does it remain in
cache for the entire period as I guess, load-on-startup servlet is
loaded every time new jvm instance is kicked off.

Thanks,
Rahul

On May 24, 2:12 am, Tristan  wrote:
> The way you load the memcache, you just put data in it. It is
> automatically shared between all JVMs and you don't have to do
> anything special. As to when to load it up. Say you have some
> preferences stored in the datastore. You should put those preferences
> into the memcache and always check the memcache before the datastore
> because it will prevent you from talking to the datastore.
>
> On May 22, 11:37 pm, Rahul  wrote:
>
>
>
>
>
> > Chau,
>
> > Thanks for pointing to the link. I did go through the link and i
> > think, what i thought was right.
> > Also i was going through the following point in the section you
> > provided : "How can I speed up loading requests? " and the second
> > point mentioned is "Share expensive initialization between JVMs. For
> > example, put data which is expensive to read or compute into memcache,
> > where it can be quickly read by other JVMs during startup." so in this
> > scenario where do you load this memcache so that it can be shared
> > between the jvm instances.
>
> > Any pointers or clues highly appreciated.
>
> > Thanks,
> > Rahul
>
> > On May 22, 10:51 pm, Chau Huynh  wrote:
>
> > > It seems like loading 
> > > request...http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request
>
> > > On Sun, May 23, 2010 at 4:55 AM, Rahul  wrote:
> > > > I have an application running on appengine and no doubt it works
> > > > great. but when the application is not used for some time. it goes
> > > > very slow.
> > > > Suppose i don;t use the application for around 5 hours or so, then
> > > > next time when i try to use it, the response is very slow. Is there
> > > > any thing specific which i am missing in adding application to
> > > > appengine.
>
> > > > Any clues are pointers are highly appreciated.
>
> > > > Thanks,
> > > > Rahul
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > > "Google App Engine for Java" group.
> > > > To post to this group, send email to
> > > > google-appengine-j...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-appengine-java+unsubscr...@googlegroups.com > > >  unsubscr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to 
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-appengine-java+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine for Java" group.
> > To post to this group, send email to google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> 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: What Framework to use?

2010-05-24 Thread Jake
I'm also using Wicket and it works well.  I have had some difficulties
with GAE but, after many months of debugging, I do not believe they
are related to Wicket.  Sometimes, I have a pretty long startup time,
but it is never during the actual Wicket startup (from filter init to
app ready) - it's always the 3-8 seconds before the filter
initializes.  The framework itself is great.

Jake

On May 21, 10:30 pm, nicolas melendez  wrote:
> chose the Wicket way!
>
>
>
> On Fri, May 21, 2010 at 7:22 PM, jnizet  wrote:
> > I have used Stripes on GAE : seehttps://memwords.appspot.com/and
> >http://code.google.com/p/memwords/for the sources. It's a very
> > elegant and productive action-based framework, which works very well
> > on GAE. I have a 5-10 seconds cold startup time on GAE, but once it's
> > started, it flies.
>
> > JB.
>
> > On May 21, 9:40 pm, Rusty Wright  wrote:
> > > Stripes.  http://www.stripesframework.org/display/stripes/Home
>
> > > On 2010-05-21 09:29, hurray! wrote:
>
> > > > I am looking for a web framework to use on GAE that
> > > > 1. Provides pretty URLs
> > > > 2. Makes passing data to views easier.
> > > > 3. Is productive.
>
> > > > I tried Grails for a small app, but the startup time was too long.
>
> > > > I am curious what framework do you guys use for a small to medium
> > > > sizeapp (that gets a few hundred visits per day)? Please advise based
> > > > on your production level experience on GAE.
>
> > > --
> > > 0x2B | ~0x2b  --  Hamlet
>
> > > --
> > > 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.
>
> --
> NM (Nicolás Meléndez)
> Java Software Developer
>
> A) Google App Engine works:
>
> 1)http://www.clasificad.com.ar- Local free classifieds for  housing, sale,
> services, local community, curses,jobs, and events - GAE/J + Wicket + YUI
>
> 2)http://www.chessk.com- Massive multiplayer chess online - GAE/J +
> Applets + Wicket
>
> B) Linkedin:http://ar.linkedin.com/in/nicolasmelendez
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

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



Re: [appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Chau Huynh
Hi Rahul,

About loading request/performance, there're lots of discussions that you can
find in the groups, please just try google it.

Here are some notes based on reading those.
Latency causes by
1- time to start new JVM
2- time to load your application

To reduce load time by 1) others star request to
a) pay to reserve JVM
b) request Google to load your app before start dispatch request to that
instance
c) accept the situation

For 2) we try to
a- try to use/replace frameworks with light-weight ones: datastore access
framework, MVC framework,...
b- try to limit calculation in your index page to alleviate the impact of
loading request
c- design your object model based on your need, so that you do calculation
at insert time, not at query time. For example, in my app, if I want to
report on year and quarter, then I have 5 summary "record" for those,
instead of querying and computing those
d- caching result. For example, If I know 1 one 5 piece of data above would
be read frequently, then I will read those 5 all, and put into memcache for
later use
...

So it's application-specific, I don't know if each of above can help you.
But only you who can know if which one of your code can be cached and how...

HTH

On Sun, May 23, 2010 at 11:37 AM, Rahul  wrote:

> Chau,
>
> Thanks for pointing to the link. I did go through the link and i
> think, what i thought was right.
> Also i was going through the following point in the section you
> provided : "How can I speed up loading requests? " and the second
> point mentioned is "Share expensive initialization between JVMs. For
> example, put data which is expensive to read or compute into memcache,
> where it can be quickly read by other JVMs during startup." so in this
> scenario where do you load this memcache so that it can be shared
> between the jvm instances.
>
> Any pointers or clues highly appreciated.
>
> Thanks,
> Rahul
>
> On May 22, 10:51 pm, Chau Huynh  wrote:
> > It seems like loading request...
> http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request
> >
> >
> >
> > On Sun, May 23, 2010 at 4:55 AM, Rahul  wrote:
> > > I have an application running on appengine and no doubt it works
> > > great. but when the application is not used for some time. it goes
> > > very slow.
> > > Suppose i don;t use the application for around 5 hours or so, then
> > > next time when i try to use it, the response is very slow. Is there
> > > any thing specific which i am missing in adding application to
> > > appengine.
> >
> > > Any clues are pointers are highly appreciated.
> >
> > > Thanks,
> > > Rahul
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> > To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> > For more options, visit this group 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.
>
>

-- 
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 App Engine for Business

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