[appengine-java] Can an Integer be a primary key for JDO?

2010-01-16 Thread Bert Peters
I was just wondering whether I could use an Integer for a primary key in JDO, as it would be a great convenience in my application. I couldn't really find an answer to this in the documentation, so I ask you. Can I? -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: JDO analogue of GQL

2010-01-16 Thread Max
DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); Query query = new Query(Table1); query.addFilter(cid, Query.FilterOperator.EQUAL, l); // was not very clear documented how dates are saved in DB //

[appengine-java] Re: JDO analogue of GQL

2010-01-16 Thread Max
I just seen that my last code is working! Only first filder is working. query.addFilter(cid, Query.FilterOperator.EQUAL, l); Second filter is ignored. query.addFilter(ctime, Query.FilterOperator.GREATER_THAN_OR_EQUAL, new Date(2009, 12, 1).getTime()); How

[appengine-java] Re: JDO analogue of GQL

2010-01-16 Thread Max
I found what was wrong. It is a really good reason never to use deprecated API anymore. 2009-12-1 is new Date(109, 11, 1); But not new Date(2009,12,1) or new Date(9,12,1) or new Date(109,12,1) On Jan 16, 2:17 pm, Max max.seven@gmail.com wrote: I just seen that my last code is working!

[appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-01-16 Thread Jorge
- What is your application ID? wcondominios - How do you know it is being cycled out? You'll need to insert some code that only gets called when the app cold starts. I just see incredibly long response times. This, for instance: # 01-16 04:29AM 02.107 / 302 4752ms 6718cpu_ms 126api_cpu_ms

[appengine-java] String as Primary key in JDO

2010-01-16 Thread sahil mahajan
I am using String as primary key in JDO. But it is case sensitive. It considers name and NAME as different. Can I make it case sensitive? -- Regards Sahil Mahajan -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this

[appengine-java] Using a Key in a query filter

2010-01-16 Thread tal
Hi, I'm trying to use a Key inside a query filter. I am using this to enforce uniqueness on a field (GAE does not support unique constraint) . In my query I try to fetch from ser a user with same name as the entered one, but with different key (if I get no result - user name is not taken). This

[appengine-java] RESTfull - JAX-RS and GAE/J

2010-01-16 Thread ChrisDane
Hi there, Has anyone seen any examples on using only JAX-RS on GAE. Implementing the javax.ws.rs.core.Application and A resource Class etc? Thanks in advance Regards ChrisDane -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post

Re: [appengine-java] App Engine cold starts and overly aggressive cycling

2010-01-16 Thread Jeff Schnitzer
Should my application be cycling even if it receives steady traffic? I average about 1 hit per second, yet my app seems to bootstrap several times every hour at an erratic rate. Appid is mobca-st. Look in the logs for ConfigurationBootstrap at level Info. This is the Resteasy bootstrap. The

Re: [appengine-java] RESTfull - JAX-RS and GAE/J

2010-01-16 Thread Jeff Schnitzer
JBoss Resteasy works fine without any special customization for GAE. I use it extensively. http://www.jboss.org/resteasy Jeff On Sat, Jan 16, 2010 at 1:09 PM, ChrisDane gregersen@gmail.com wrote: Hi there, Has anyone seen any examples on using only JAX-RS on GAE. Implementing the

Re: [appengine-java] Re: Using GWT RPC for Browser client on GAE - and RESTful to access data from Android/iPhone

2010-01-16 Thread Jeff Schnitzer
I mentioned Resteasy in your other thread, but you might also want to consider Hessian. I recently patched the Caucho impl and now both client server work on GAE (we use Hessian for server-server RPC, and JAX-RS to the phones). If you're creating internal protocols, Hessian is way easier than

[appengine-java] Re: RESTfull - JAX-RS and GAE/J

2010-01-16 Thread ChrisDane
Thanks Jeff, Thanks, I am just trying to set it up: 1) Downloaded the latest(1.2.1.GA) 2) In Eclipse created a new GAE Project 3) I have been looking in the book RESTful Java with JAX-RS, 1st Edition - found the sample code for oreilly-workbook/ex03_1 4) Copied the ( Customer.java

[appengine-java] Re: Using GWT RPC for Browser client on GAE - and RESTful to access data from Android/iPhone

2010-01-16 Thread ChrisDane
Thanks for introducing me to Hessian - I just looked at the HessianKit: http://hessian.caucho.com Though I would love to do an opensource project, I am the only one working on the iPhone. And I am running short on time :-) I will let you know if I turn to an async Hessian. Sorry, my java is not

[appengine-java] Re: String as Primary key in JDO

2010-01-16 Thread jd
Just String#toLowerCase() the key when you store them On Jan 17, 1:11 am, sahil mahajan sahilm2...@gmail.com wrote: I am using String as primary key in JDO. But it is case sensitive. It considers name and NAME as different. Can I make it case sensitive? -- Regards Sahil Mahajan -- You

[appengine-java] Re: Cannot have a java.lang.Long primary key and be a child object

2010-01-16 Thread jd
You cannot create a data model in JDO-GAE that is agnostic of its environment. Twig allows your domains classes to use any key type you want or even none at all. class Parent { String name; @Entity(relation=child) Child child; } class Child { String name; } This will be correctly

[appengine-java] Re: String as Primary key in JDO

2010-01-16 Thread Sahil Mahajan
Isn't there any other way. I want to avoid toLowerCase(). I want String to be case insensitive for database, but while displaying String to user I would like it to conserve case.. I can compare strings through equalsIgnoreCase. But then I won't be able to make effective use of primary key. On

Re: [appengine-java] Re: String as Primary key in JDO

2010-01-16 Thread Chau Huynh
Queries must go with indexes ( http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html) For the column, you can store it as lowercase/uppercase, For the display column, you can store the original value. On Sun, Jan 17, 2010 at 2:15 PM, Sahil Mahajan sahilm2...@gmail.com wrote:

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-01-16 Thread Daniel Benamy
One more thing- I get this error the first time I hit this code after idling or starting up, but subsequent runs work ok. Dan On Sat, Jan 16, 2010 at 2:51 AM, Daniel Benamy dben...@gmail.com wrote: I think I'm hitting this check since updating to 1.2.8. I've got something like: class A {  B

[google-appengine] remote_api error / datastore problem

2010-01-16 Thread oli
Downloading data from remote datastore returns always this error and I don't know what the exact problem is. It seems there is a problem with one specific item in the datastore. The same remote_api call worked before until it stopped working at some point. Has anyone an idea how to fix it? 01-13

[google-appengine] Django form caching

2010-01-16 Thread Pranny
i am observing a strange behavior in djangoforms. I am using the default django provided in latest AppEngine SDK. The datastore is updated by the entries i put, but when i view them in a form, the latest ones are not shown. It takes some time (approx 5 minutes) before the latest entries show up.

[google-appengine] Scalability problem in GAE

2010-01-16 Thread mani doraisamy
Recently, we have been running into frequent performance problems, especially between 7-10pm IST. Requests that used to take 600ms are taking almost 4 secs. - Has anyone faced similar problems recently? - What is the limit for memcache per account? How do we find the cache expiry pattern? (actual

[google-appengine] Claiming my appid as my gmail account

2010-01-16 Thread Vijay
Hi, I recently registered the Google App Engine appid wntdin using a Google Apps email account. Since I was allowed to register this appid, I know no one must have the email wnt...@gmail.com. Is there a way for me to claim that gmail address? When I try to create it through the normal process,

[google-appengine] A REALLY strange problem

2010-01-16 Thread Visame
Hi, everyone! I have link my domain name www.visame.org to my app engine application: visameblog.appspot.com. However, after I update my CSS file, only visameblog.appspot.com gets updated. which means: http://www.visame.org/static/css/style.css is different form

[google-appengine] adapter4appengine - java.lang.NoClassDefFoundError

2010-01-16 Thread Youngster
Hi, Hope someone can help me to get this Gilead adapter4appengine to work. I keep getting java.lang.NoClassDefFoundError when running my app. I'm using the adapter4appengine-1.0M3, inherited it in the project.gwt.xml. I also tried the SampleAppEngine.JDO application which seems to work fine. I

[google-appengine] Support for Netbeans

2010-01-16 Thread Dino Conte
When will google officially support netbeans, and publish a plugin? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to

Re:Re: [google-appengine] [OT]appspot 都不能访 问了??

2010-01-16 Thread tongji.1907
my appspot still works.I am in shanghai. 在2010-01-16?08:50:42,风笑雪?kea...@gmail.com?写道: Right?now,?*.appspot.com?are?not?working?in?China: Pinging?appspot-china.l.google.com?[74.125.127.141]?with?32?bytes?of?data: Request?timed?out. Request?timed?out. Request?timed?out. Request?timed?out.

[google-appengine] Re: [OT]appspot 都不能访问 了??

2010-01-16 Thread 小鑫
你才发现吗?? 连谷歌网上论坛都是翻墙过来的-- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For

Re: [google-appengine] Cancel Google App Engine

2010-01-16 Thread Prashant Gupta
you cannot. create a new account and request google to activate it. https://appengine.google.com/waitlist/sms_issues 2010/1/16 AFGE afge2...@gmail.com I signed up for Google App Engine using a co-workers account with my mobile phone number. Now I can not sign up for Google App Engine with

Re: [google-appengine] Re: [OT]appspot 都不能访 问了??

2010-01-16 Thread 杨浩
you can vist groups.google.com with https://groups.google.com! Good luck! 2010/1/16 小鑫 amoiz.sh...@gmail.com 你才发现吗?? 连谷歌网上论坛都是翻墙过来的 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to

Re: [google-appengine] EntityProto instance to Model instance?

2010-01-16 Thread Nickolas Daskalou
Does anyone have an answer for this? Google guys? 2010/1/15 Kapil Kaisare kksm19820...@gmail.com As an aside: what is an EntityProto, and is there a link in the GAE documentation for it? Regards, Kaisare, Kapil Sadashiv On Fri, Jan 15, 2010 at 09:37, Nickolas Daskalou

[google-appengine] Proxying your urlfetch requests so that they come from a static IP

2010-01-16 Thread Attila-Mihaly Balazs
Hello everyone. I saw the question what IPs do the urlfetch request come from a couple of times on the list (most recently I think it was in the context of the delicio.us API which does whitelisting based on the IP). I've done a small writeup about how my application (http://

Re: [google-appengine] A REALLY strange problem

2010-01-16 Thread Abhinav Bhagwat
Did you try refreshing your browser cache? Press CTRL+F5 or even better go to browser options and clear the cache. Regards, Abhinav On Sun, Jan 17, 2010 at 3:12 AM, Visame kank...@gmail.com wrote: Hi, everyone! I have link my domain name www.visame.org to my app engine application: