[appengine-java] Using custom dynamic URLs in GAE Java web-app

2011-01-18 Thread rsutaria
Hello, We have a requirement wherein we would like to use a dynamic URL which is custom created based on certain values of an object in the datastore. We are trying to build a multi-tenant application on GAE/J where the namespace is based on the value stored in one of the properties of the

Re: [appengine-java] Using custom dynamic URLs in GAE Java web-app

2011-01-18 Thread romesh soni
Did you try struts2? It suits your requirement. On Tue, Jan 18, 2011 at 1:34 PM, rsutaria rsuta...@gmail.com wrote: Hello, We have a requirement wherein we would like to use a dynamic URL which is custom created based on certain values of an object in the datastore. We are trying to build

[appengine-java] Re: How can I paginate backwards using a JDO query cursor?

2011-01-18 Thread Ian Marshall
I shall press ahead with storing the web-safe string of each cursor in a stack kept in the user's session object, and using this to provide backwards pagination. On Jan 17, 8:31 pm, Ian Marshall ianmarshall...@gmail.com wrote: Does anyone fancy exercising their little grey cells on this fine

[appengine-java] Re: Using custom dynamic URLs in GAE Java web-app

2011-01-18 Thread Didier Durand
Hi, I don't know per se for JSP that I don't use. What I can say though is that dynamic url are fully possible with regular java: you have to use patterns rather than full-URL in definitions of your web.xml For example, what I use personally for my plain java servlets: servlet

[appengine-java] Re: Using custom dynamic URLs in GAE Java web-app

2011-01-18 Thread rsutaria
Thanks. I am not too familiar with Struts 2. But I am trying out the wildcard mappings as given here: http://struts.apache.org/2.1.8/docs/wildcard-mappings.html On Jan 18, 1:09 pm, romesh soni soni.rom...@gmail.com wrote: Did you try struts2? It suits your requirement. On Tue, Jan 18,

[appengine-java] Sevlet 3.0 support?

2011-01-18 Thread George Moschovitis
Now that containers such as JBoss and Tomcat are updated I am wondering if Servlet 3.0 support is on the GAE/J teams road map. regards, -g. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to

Re: [appengine-java] can't retreive one-to-may objetcs, JPA

2011-01-18 Thread Cesar Ruiz
What do you mean by need to access to the subjects field before closing the em?. Do you mean, with the em, retreive the list of subjects and the add them to the list of books?. (That's a workaround, but it is not efficient), It's supposed to retreive the books completly with their subjetcs also,

Re: [appengine-java] Mutation pool bug?

2011-01-18 Thread Arun Ramanujapuram
Thank you, Stephen. This works. I could not locate this earlier in the mapreduce documentation. Regards, Arun From: Stephen Johnson onepagewo...@gmail.com To: google-appengine-java@googlegroups.com Sent: Sun, 16 January, 2011 1:33:31 AM Subject: Re:

[appengine-java] Re: How to completely erase the datastore of an app

2011-01-18 Thread cghersi
Hi meyertee, I followed your hint and I were able to deploy a new Python version, but now I'm not able to use Datastore Admin, because an error is shown, telling me that I'm not corretly authenticated!! /_ah/datastore_admin/?app_id=xxx 500 0ms 0cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1;

Re: [appengine-java] can't retreive one-to-may objetcs, JPA

2011-01-18 Thread Stephen Johnson
What I mean is that before you close the entity manager you would need to loop through your list and call the getSubjects() accessor method to cause the entity manager to load the subjects. I am not a JPA developer but I did a quick google search on JPA and it seems that indeed the default fetch

Re: [appengine-java] Mutation pool bug?

2011-01-18 Thread Stephen Johnson
Cool! Glad it solved your issue. I'm not sure if it's really documented any where or just implied someplace. I ran in to the same issue a year ago when I started mapreduce and I can't remember how I figured out to do that. On Tue, Jan 18, 2011 at 5:00 AM, Arun Ramanujapuram

Re: [appengine-java] Re: Thread inside servlet

2011-01-18 Thread dosht
Hi there, If there is something I want to run every 30 minute can I do something like this: doGet(...) { while(true){ fecthDataFromTwitter(); Thread.sleap(30*60*1000); } } -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Datastore viewer not working

2011-01-18 Thread Fabs
Hello all I am using Tapestry 5.0.19 with the java app engine SDK 1.4.0. When I attempt to access the local datastore admin tool at http://localhost:/_ah/admin, the result is that the request is sent to tapestry and the home page is displayed. It would be convenient to be able to use the

[appengine-java] SortedSet and comparator-name JDO extension

2011-01-18 Thread akochnev
I have a one to many relationship in which I'd like to store the many side in a sorted set, e.g. : @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = true) public class Foo { @Persistent(mappedBy = foo) private SortedSetBar bars; } The datanucleus documentation

[appengine-java] basic understanding of PersistenceManger

2011-01-18 Thread soujiro0725
Hi I'm a newbie in App Engine. Right now, I am trying to develop an application myself, but my basic understanding is weak. So someone, please clarify my knowledge. The question is HOW to store the data and to know what is stored. Say, I have my own class like, GCalendar(String date, String

[appengine-java] Need some points on implementing REST API for chess-like game

2011-01-18 Thread Spk
Hi folks! I just got started with Google App engine (using Java) and it's great! I'm trying to develop a backend for an asynchronous turn-based game I'm working on in my spare time. My plan was to develop a REST-ish API that my game client would consume poll periodically for updates. You can

[appengine-java] javax.mail can't resolve import

2011-01-18 Thread Phil Bair
I'm trying to use the various components of javax.mail in a GWT app, and I'm stumped as to how to get these imports to resolve. I don't have any errors showing up in the Eclipse editor (I used to, but don't any more for some reason), but the errors show up when I run the app as a web application

[appengine-java] Struggling w/datastore relationship

2011-01-18 Thread Ben Carlson
Hello, I'm writing a replacement for del.icio.us on GAE, and am really struggling with what the right way to do the User / URL / Tag relationship: Here's what I'm referencing for my idea: http://code.google.com/appengine/articles/modeling.html My thought is to have three Entity's: User URL Tag

[appengine-java] Refresh your UI without redeploying to appspot

2011-01-18 Thread hector@ISB
I developed this generally useful HttpServlet that fetches your application's static content (html, javascript, images, css) from any external web server. It also maintains a copy of the content in memcache and provides an admin-only interface to refresh the copy. I am using it to rapidly deploy

[appengine-java] java.lang.ClassCastException:

2011-01-18 Thread soujiro0725
Hi. I keep getting an error, the code follows the error message. The problem seems to occur at ★★★HERE. after ListGCalendar calendars = (ListGCalendar) query.execute(); calendars is StreamingQueryResult object. Does the error mean that I cannot cast this object to String or Date? Could anyone

[appengine-java] Field is not stored

2011-01-18 Thread Ralfeus
Hi I have a class, which has list of other objects. Looks like this @PersistenceCapable public class Category { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String name; @Persistent

[appengine-java] Re: Need some points on implementing REST API for chess-like game

2011-01-18 Thread Spk
Hi Didier, thanks for your reply. I forgot to mention that my game client is a stand-alone application (desktop mobile), not a regular web page, so I'm quite restricted in term of web capabilities on the client side. Right now, all I can do is GET POST http requests, and possibly provide

[appengine-java] How do I expire tasks in a queue?

2011-01-18 Thread rishi khanna
In some situations mostly when there is some App Engine Task Queue issue (it shows status as Elevated) I see some of my queues get too big causing issues on my real-time requests, which often, in the logs I see fail, since the request is waiting for too long to be processed. I was wondering if

[appengine-java] Re: Bulk log download

2011-01-18 Thread iodsfjoipsdfi ijsdpfijd
Nobody? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com.

Re: [appengine-java] Re: Need some points on implementing REST API for chess-like game

2011-01-18 Thread Jeff Schnitzer
A couple words of advice: Nearly any third-party authentication system will require that you perform the login process in a web browser, but you should still use one even for desktop apps. Systems that ask you to create a login are almost anachronistic these days. Use google login, or facebook

[appengine-java] GWT - Sending initial objects to the client

2011-01-18 Thread aswath satrasala
Hello, My application design is GWT embedded in JSP's. I have few JSP's and few GWT modules. I want to send few Objectify objects back to the client for every HTTP request. I discovered the following choices. Two are from this article

[appengine-java] Re: How do I expire tasks in a queue?

2011-01-18 Thread Didier Durand
Hi, You can also use task-retry-limit and various backoff params to adjust the retry process of your tasks See /appengine/docs/java/config/ queue.html#Configuring_Retry_Attempts_for_Failed_Task I usually personally prefer to decide from within the task itself by using the

[appengine-java] Re: Need some points on implementing REST API for chess-like game

2011-01-18 Thread Didier Durand
Hi Spk, [to access the datastore, I recommend you to use Objectify - my personal choice - developped by Jeff Schnitzer that answered above - JDO/JPA investment by Google is now less and they push packages like Objectify and other alternatives] About your complements 1) The google login service