[appengine-java] Re: Is it possible to implement Open EntityManager in View to avoid JDODetachedFieldAccessException?

2009-11-28 Thread datanucleus
I'm using Spring therefore I tried to configure the OpenEntityManagerInViewInterceptor, if this works as it's supposed to I shouldn't get JDODetachedFieldAccessException anymore, but I still get it. And what state are the objects in when you access the field ? detached ? and what

[appengine-java] [ANN] Gaelyk 0.3.2, a lightweight Groovy toolkit for App Engine

2009-11-28 Thread Guillaume Laforge
Hi all, This is the first time I'm posting about Gaelyk in this group, I hope it's okay according to the netiquette of the Group. If not, please advise me the best place to give some news on that topic, on an occasional basis. I wanted to share with you the r*elease of Gaelyk 0.3.2, a

[appengine-java] Re: Is there a recommended way to differentiate between production and dev GAE environments?

2009-11-28 Thread Guillaume Laforge
Another approach I've just found is doing something like: ApiProxy.getCurrentEnvironment().getClass().getName().contains (LocalHttpRequestEnvironment) Not sure in the end what's the best approach of them all. On 24 nov, 16:29, Marcel Overdijk marceloverd...@gmail.com wrote: Or use a Listener

[appengine-java] problem in XMPP sendMessage()

2009-11-28 Thread sahil mahajan
I am using XMPP and getting following error when I try /CODE*/ Message msg = new MessageBuilder() .withRecipientJids(receiverJid) .withFromJid(new JID(recipientJid[0].getId()) ) .withMessageType(MessageType.NORMAL)

[appengine-java] Re: xmlHttp request status is 0 for google maps http geocoder

2009-11-28 Thread shaz
Realized the issue - didn't realize there was a cross domain restriction on AJAX. Problem solved. thanks On Nov 27, 5:09 pm, shaz ssh...@gmail.com wrote: Hi, I am trying to submit an HTTP request via AJAX from the client to the Google Maps Geocoding service. I keep getting a status of 0. I

[appengine-java] Re: Why is it called Google App Engine for Java ?

2009-11-28 Thread ted stockwell
On Nov 27, 7:19 pm, Diana Cruise diana.l.cru...@gmail.com wrote: Ted... java.lang.Thread, you want to launch new processes from within your app server...that's a job for URLFetch. Unlike Thread, I can't use URLFetch to perform a task asynchronously and return a result to the calling thread.

Re: [appengine-java] problem in XMPP sendMessage()

2009-11-28 Thread Ravi Sharma
I am not sure, but i think you dont need to(should not) set fromJid, as message will be sent from your application JID. I am running following code and its working . JID jid = new JID(responseJid); Message msg = new MessageBuilder() .withRecipientJids(jid)

[appengine-java] Re: Problem in uploading jsp file

2009-11-28 Thread Sahil Mahajan
Problem solved I found solution at comment 16 of Issue 1226 http://groups.google.com/group/google-appengine-java/browse_thread/thread/24aadd04f3ae0245 Regards Sahil On Nov 25, 11:14 pm, Sahil Mahajan sahilm2...@gmail.com wrote: Hello Stephan I am new to gae. My JAVA_HOME variable has value

[appengine-java] Re: Why is it called Google App Engine for Java ?

2009-11-28 Thread ted stockwell
Actually, many people had the same reaction when GAE/J was released. See for instance, http://weblogs.java.net/blog/2009/04/16/google-app-engine-java-sucks Without a doubt if some smaller player created such an incompatible implementation they would not be allowed to call it 'Java'. On Nov 27,

[appengine-java] need comment on using @transactional on service layer

2009-11-28 Thread asianCoolz
hi, can anyone comments whether my architecture is ok for using @transactional with spring on service layer? http://tinyurl.com/ybmev2b -- 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

[appengine-java] Re: problem in XMPP sendMessage()

2009-11-28 Thread Sahil Mahajan
I removed .withFromJid(new JID(recipientJid[0].getId()) ) but I am still facing problem. The servlet works correctly for first two messages. But problem starts when servlet receives third message. I find this strange. Initially it works fine, but gives problem from third message. Regards Sahil

[appengine-java] Re: Web Service deployment using Axis in Google app engine for java

2009-11-28 Thread Andrey
It's interesting for me too. This is not the answer but may be useful: http://blog.cloudwhiz.com/2009/09/exposing-soap-service-on-gae-part-1.html -Andrey -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send

[appengine-java] JPA Like query

2009-11-28 Thread Wouter
Hi all, I have a problem with a fairly basic JPA query that contains a Like clause My query looks like this SELECT FROM package.Object q WHERE q.property LIKE 'w%' According to the discussions in this forum there should be limited support for this. However I can´t get this limited query (which

[appengine-java] import deployed project into eclipse

2009-11-28 Thread IlyaE
Is there a way to import the source code into eclipse of a previously deployed project from the app engine cloud? I want to work on the site but from another pc that does not share the workspace. -- You received this message because you are subscribed to the Google Groups Google App Engine for

[appengine-java] Spring MVC with annotations

2009-11-28 Thread Rafael Reuber
I developed an program with Spring MVC + annotations. He done in my computer. But when I make deploy and try acess the application, the GAE throws an error. Someone got use annotations with Spring MVC? -- Rafael Reuber MSN/Gtalk: psico.in...@gmail.com -- You received this message because you

[appengine-java] Re: JPA Like query

2009-11-28 Thread Wouter
Hi, found the problem, I was still using an old GAE version. When I switch to GAE 1.2.6 the query described above works regards Wouter On Nov 28, 8:53 pm, Wouter wouter.nie...@gmail.com wrote: Hi all, I have a problem with a fairly basic JPA query that contains a Like clause My query

Re: [appengine-java] Re: JSF 2.0.1 java.lang.ClassNotFoundException: void

2009-11-28 Thread Derek Berube
A simple project (where the JSF2 framework initializes and a default page is displayed) is available at Google Code: http://code.google.com/p/jsf2template/. This is the source code for the application I wrote developing the tutorial for configuring a JSF 2 project to run on Google App Engine -

[appengine-java] Re: redirect /file.jsp

2009-11-28 Thread Jeune
You might want to use a framework like Struts or Spring. I also have a redirect.jsp in my app like Rusty, only that any of my Spring MVC controllers can use it and package in the request the url where the page will be redirected. Anyway the benefit I see here is that for one you don't have to

[appengine-java] Re: problem in XMPP sendMessage()

2009-11-28 Thread m seleron
Hi. I tested execution by the following source. JID jid = new JID(x...@gmail.com); // set your send gmail address Message msg = new MessageBuilder().withRecipientJids(jid) .withFromJid(new JID(x...@appspot.com) ) // set your ap...@appspot.com .withMessageType(MessageType.NORMAL)

[google-appengine] Re: Can a bank system be transactional and low contentious?

2009-11-28 Thread niklasro.appspot.com
On Nov 27, 2:42 pm, 风笑雪 kea...@gmail.com wrote: Actually, I just want to know how to avoid big entity group, is it possible or not. It obvious has some other parts need to be figured out, but I'm not really building a bank system, just concern about it. Main anomaly called arbitrage (no such

[google-appengine] Re: Issue 777: Officially Support Naked Domains for GAE Apps

2009-11-28 Thread Greg
Why can you not set up forwarding from the naked domain to www? It is a DNS function, not anything to do with your browser. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to

[google-appengine] Re: Issue 777: Officially Support Naked Domains for GAE Apps

2009-11-28 Thread niklasro.appspot.com
On Nov 28, 9:38 am, Greg g.fawc...@gmail.com wrote: Why can you not set up forwarding from the naked domain to www? It is a DNS function, not anything to do with your browser. Onway supplierdependent got enom records, godaddy records, offsite, onsite, looks

[google-appengine] Waiting already for 6 hours for 300 records to index

2009-11-28 Thread HC
Hi, I added an index to a table with approx 300 records almost 6 hours ago and the index is still building. I am starting to worry, in particular since I will have to add indexes in the future when there are many more records. Is this kind of delay the norm? I don't see any quota related errors,

[google-appengine] Re: preserve data during dev stage

2009-11-28 Thread dburns
By default, the development server should preserve data between runs. Are you sure you're not launching dev_appserver with the -c or -- clear_datastore flags? On Nov 27, 11:38 pm, james_027 cai.hai...@gmail.com wrote: hi, How do i preserve my data during the development stage. Every time I

[google-appengine] Re: Waiting already for 6 hours for 300 records to index

2009-11-28 Thread mably
Same pb here with a table containing approx 100 records. Already 30 minutes and still building. On 28 nov, 14:07, HC hc...@gmx.net wrote: Hi, I added an index to a table with approx 300 records almost 6 hours ago and the index is still building. I am starting to worry, in particular since I

[google-appengine] Re: Storing Intervals (datetime.timedelta) in the datastore.

2009-11-28 Thread Stephen
On Nov 28, 3:19 pm, JDT john.david@googlemail.com wrote: Hello All, I have an application where I need store the difference in time between two events. Unfortunately the datastore only supports storing 'time' as a datetime.datetime object. In an attempt to circumvent this constraint,

Re: [google-appengine] Re: Waiting already for 6 hours for 300 records to index

2009-11-28 Thread Prashant
same here. i was testing a new class design and indexes are stuck for 5 records :( -- 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

Re: [google-appengine] Re: gql not giving full result set

2009-11-28 Thread Prashant
same problem here... following is my JDO class: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class _Contact{ @Persistent(primaryKey = true) private String EmailID; @Persistent private String Name; @Persistent private ListString Groups; }

[google-appengine] Re: GAE for CPU intensive time important application

2009-11-28 Thread Eric
Thanks for the response. Maybe I don't understand something, but why should the 5 second setup on a new instance bother me? A new instance should be created when other instances are near capacity, and not when they exceed it, right? So once initialized it can be dummy-run internally and only

[google-appengine] Re: GAE for CPU intensive time important application

2009-11-28 Thread Eric
Another question, you both recommended Python for some of its features, but isn't Python much slower than Java? So wouldn't that necessitate many more instances/CPUs to keep with the query load? On Nov 28, 9:45 am, Niklas Rosencrantz teknik...@gmail.com wrote: 1) pricing absolutely seems so.

[google-appengine] Re: preserve data during dev stage

2009-11-28 Thread Sylvain
Are you using a Mac ? On Nov 28, 3:21 pm, dburns drrnb...@gmail.com wrote: By default, the development server should preserve data between runs. Are you sure you're not launching dev_appserver with the -c or -- clear_datastore flags? On Nov 27, 11:38 pm, james_027 cai.hai...@gmail.com wrote:

Re: [google-appengine] Re: GAE for CPU intensive time important application

2009-11-28 Thread 风笑雪
An app instance cannot serve 2 request at the same time. Suppose you have 100 requests/sec, and GAE offers 100 app instances to serve these requests. At one time it suddenly raise up to 200 requests/sec, so GAE tries to create 100 more app instances to serve. But create a new Java instance may

[google-appengine] Re: How can I pre-fill the email address when deploying my apps?

2009-11-28 Thread dburns
On the command line, you can use: appcfg.py --emai...@b.com update [dir] You still have to enter your password. But I find it only prompts me for my password every 24 hours. On Nov 27, 8:44 pm, samwyse samw...@gmail.com wrote: *sigh* Thanks for letting me know it isn't just me.  Maybe

[google-appengine] Re: GAE for CPU intensive time important application

2009-11-28 Thread Andy Freeman
Another question, you both recommended Python for some of its features, but isn't Python much slower than Java? Maybe, maybe not, but it may not matter. What fraction of your run- time actually depends on language speed? On Nov 28, 9:13 am, Eric shel...@gmail.com wrote: Another question, you

[google-appengine] Re: GAE for CPU intensive time important application

2009-11-28 Thread Andy Freeman
Maybe I don't understand something, but why should the 5 second setup on a new instance bother me? A new instance should be created when other instances are near capacity, and not when they exceed it, right? So once initialized it can be dummy-run internally and only available 5 seconds later

[google-appengine] Re: Waiting already for 6 hours for 300 records to index

2009-11-28 Thread mably
Yes ! My index is serving :-) On 28 nov, 17:04, Prashant antsh...@gmail.com wrote: same here. i was testing a new class design and indexes are stuck for 5 records :( -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group,

Re: [google-appengine] Re: Waiting already for 6 hours for 300 records to index

2009-11-28 Thread Prashant
mine too... -- 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 more

[google-appengine] Help with an accurate counter with no contention...?

2009-11-28 Thread peterk
Hey all, I've been looking at the Task Queue API and counter example. In my app, each user will have a couple of counters maintained for them, counting various things. Thing is, these counters need to be accurate. So I'm not sure if the example given for the Task Queue API using memcache would

[google-appengine] Re: GAE for CPU intensive time important application

2009-11-28 Thread Eric
Thanks for all your comments. Regarding Python/Java speed, 99% of the runtime is spent iterating in an attempt to converge to some numerical solution . Loops, arithmetic and memory updates. I would guess an interpreted language like Python (am I right?) would be much slower. About the instance

Re: [google-appengine] Help with an accurate counter with no contention...?

2009-11-28 Thread Eli Jones
I think there would have to be some divergence between what the counter should be and what the user will actually see at any given time.. since if you have a high rate of counts happening for a user.. you'd get contention when trying to update all the count each time the event being counted

[google-appengine] Reference Properties

2009-11-28 Thread MajorProgamming
I was wondering: isn't using reference properties a waste of space? Wouldn't it make more sense to store the id (assuming not using key_name) of the entity. After all, if the Kind is known, one can easily generate the full key based on that. And with a reference property it actually stores the

Re: [google-appengine] Help with an accurate counter with no contention...?

2009-11-28 Thread Eli Jones
To be fair, this method I described may be overkill. I developed it when I was thinking about how to lighten up insert costs to the datastore. I figured that, if one could store some of the relevant information in the Column name (specifically, string info like who's count is this?), that would

[google-appengine] Re: Help with an accurate counter with no contention...?

2009-11-28 Thread peterk
Hey Eli, Thanks very much for your replies. You're thinking along the same lines as me, although I wasn't considering using Expandos to store the data. My concern is sort of independent of this anyway - i'm worried that you can actually have more than one task aggregating changes to a counter

Re: [google-appengine] Re: Help with an accurate counter with no contention...?

2009-11-28 Thread Eli Jones
Well, it sounds like you're wanting to have the aggregation task fired off when a count event happens for a user. So, then, as you mention, you'd need a way to check if there wasn't already an aggregation task running. And, in the worst case scenario, you could have two tasks get fired off at

Re: [google-appengine] Re: Help with an accurate counter with no contention...?

2009-11-28 Thread Eli Jones
Though, let me re-iterate... all the round-about stuff I'm talking about is something to consider if you don't want to try and modify the sharded counter technique mentioned in this article: http://code.google.com/appengine/articles/sharding_counters.html

Re: [google-appengine] Re: Help with an accurate counter with no contention...?

2009-11-28 Thread Eli Jones
oh, and duh.. the first part of that article does the sharded counting.. using transactions without memcached. So, presumably, it should do exactly what you want. you just need to modify that to allow counting for an arbitrary number of users. On Sat, Nov 28, 2009 at 8:30 PM, Eli Jones

[google-appengine] Re: Newly registered App doesn't appear in App Engine Administrator Console

2009-11-28 Thread Roy
Are you an Apps user (ie. /a/mydomain.com) as opposed to a gmail.com user? On Nov 27, 6:55 pm, mika-vienna mka...@deepsec.net wrote: Hi all, I'm new to Google Apps and Wave, experimenting with Wave Bots I registered my first App with SMS verification and it doesn't appear in my

Re: [google-appengine] Re: GAE for CPU intensive time important application

2009-11-28 Thread 风笑雪
2009/11/29 Eric shel...@gmail.com: Thanks for all your comments. Regarding Python/Java speed, 99% of the runtime is spent iterating in an attempt to converge to some numerical solution . Loops, arithmetic and memory updates. I would guess an interpreted language like Python (am I right?)

Re: [google-appengine] Re: GAE for CPU intensive time important application

2009-11-28 Thread Niklas Rosencrantz
On Sat, Nov 28, 2009 at 5:13 PM, Eric shel...@gmail.com wrote: Another question, you both recommended Python for some of its features, but isn't Python much slower than Java? So wouldn't that necessitate many more instances/CPUs to keep with the query load? Yes, the python VM is slower than

Re: [google-appengine] Reference Properties

2009-11-28 Thread Niklas Rosencrantz
On Sun, Nov 29, 2009 at 12:09 AM, MajorProgamming sefira...@gmail.com wrote: I was wondering: isn't using reference properties a waste of space? Wouldn't it make more sense to store the id (assuming not using key_name) of the entity. After all, if the Kind is known, one can easily generate the