[appengine-java] XMPP service and multiple instances

2011-04-30 Thread sgrueter
Hello

Does somebody know, how the XMPP service distributes incoming XMPP messages
if multiple instances of the receiving application have been started?

Will the message be received by all instances or by only one instance?

Thanks for any information

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



[appengine-java] Re: Task Queue Strange Errors/Defects

2011-04-30 Thread Brandon Donnelson
Did they have a high retry count?

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



[appengine-java] Re: [google-appengine] Re: Task Queue Strange Errors/Defects

2011-04-30 Thread Ravi Sharma
I have not mentioned any retry count...so i guess whatever the default one
is being used. (Actually i never want to retry if one fails next one will
take care .. Do you know how to never retry a task.)


On Sat, Apr 30, 2011 at 3:48 PM, Brandon Donnelson
wrote:

> Did they have a high retry count?
>
> --
> 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 options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

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



[appengine-java] Re: [google-appengine] Re: Task Queue Strange Errors/Defects

2011-04-30 Thread Brandon Donnelson
I'm wondering if the task was retrying due to exception thrown. One way I 
found the task will stick to the que for longer period of time. 

http://code.google.com/appengine/docs/java/config/queue.html#Configuring_Retry_Attempts_for_Failed_Tasks
 
- looks like you setup a que xml. I haven't tried this yet so I have no 
experience in it :).

Brandon Donnelson
http://gwt-examples.googlecode.com

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



[appengine-java] Re: task queue api calls limit exceeded with mapreduce

2011-04-30 Thread Brandon Donnelson
http://code.google.com/appengine/docs/java/config/queue.html#Queue_Definitions 
- add a queue.xml?

Brandon

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



[appengine-java] Re: App contact list?

2011-04-30 Thread Brandon Donnelson
I haven't seen a profile api yet. If there was, I would like something like 
that too. I think they need a friends api too.

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



[appengine-java] Re: request.getRequestURI() returns WEB-INF/views/whatever.jsp

2011-04-30 Thread Brandon Donnelson
What I do is use userService.createLoginURL("/replaceMeInJs"), then in my 
javascript, I replace /replaceMeInJs it when ever I need it and also have to 
change the return trip method. I have to make sure its encoded properly too.

This is what I do in my GWT app when I need it. This is probably overkill 
for me.

 private String getGoogleLoginUrl() {
if (cp.getAccessToken() == null && 
cp.getAccessToken().getThirdPartyLoginData() == null) {
  return null;
}

String domain = GWT.getHostPageBaseURL();
String path = Window.Location.getPath();
String qs = Window.Location.getQueryString();
String historyToken = History.getToken();
if (qs == null) {
  qs = "";
}
if (domain.matches(".*/") == true) {
  domain = domain.substring(0,domain.length()-1);
}

String url = domain + path + qs + "#" + historyToken;
url = URL.encode(url);
url = Global_String.encodeUrlDelimiters(url);

String baseUrl = 
cp.getAccessToken().getThirdPartyLoginData().getGoogleLoginUrl();
baseUrl = baseUrl.replaceAll("=%2F.*", "=" + url); // this is where I do it 
at.

return baseUrl;
  }


Brandon Donnelson
http://gwt-examples.googelcode.com

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



[appengine-java] Are GAE servers multicore ?

2011-04-30 Thread hadf
Hello,

Are GAE servers multicore ? I mean, do we have gain of performance
when using mutithreading ?

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



[appengine-java] Re: Are GAE servers multicore ?

2011-04-30 Thread Didier Durand
Hi,

You can't multithead directly in GAE: it's forbidden.

You rather gain parallelism via queued tasks.

You don't really care in the servers are multi-core or not: gae starts
more jvms automatically when needed.

regards

didier

On Apr 30, 6:14 pm, hadf  wrote:
> Hello,
>
> Are GAE servers multicore ? I mean, do we have gain of performance
> when using mutithreading ?

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



[appengine-java] Re: Are GAE servers multicore ?

2011-04-30 Thread Peter Ondruška
http://code.google.com/appengine/docs/java/overview.html :

The JVM runs in a secured "sandbox" environment to isolate your application 
for service and security. The sandbox ensures that apps can only perform 
actions that do not interfere with the performance and scalability of other 
apps. For instance, an app cannot spawn threads, write data to the local 
file system or make arbitrary network connections. An app also cannot use 
JNI or other native code. The JVM can execute any Java bytecode that 
operates within the sandbox restrictions.


http://code.google.com/appengine/docs/java/runtime.html :

By default, each web server processes only one request at a time. If you 
mark your application as thread-safe, App Engine may dispatch multiple 
requests to each web server in parallel. To do so, simply add a 
true element to appengine-web.xml as described in 
Using 
Concurrent 
Requests
.

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



[appengine-java] GAE Teams Content-Transfer-Encoding: base64 data uploads don't work.

2011-04-30 Thread Brandon Donnelson
I can't send base64 encoded data to the blobstore 
(Content-Transfer-Encoding: base64 ). The blobstore isn't decoding the data 
correctly. It saves the data as plaintext (base64 string)

I thought I had this working the other day, but today, I can't seem to find 
whats going wrong with it. My uploads work in my dev environment, which is 
telling me my code works. I have tried both High Replication and 
Master/Slave deployments with no success.

http://code.google.com/p/googleappengine/issues/detail?id=4265

Can someone look into uploading in base64 data and fix it?

Thanks,
Brandon Donnelson
http://gwt-examples.googlecode.com

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



[appengine-java] Some details on how GAE actually works

2011-04-30 Thread Luca Matteis
App Engine has been abstracting all their implementation details away
from the developer, which is great. I'm however a little curious in
knowing how their infrastructure works... not only how it works but
also how it scales geographically. Living in Europe this has a strong
impact on my decision to use App Engine or not.

Has any detail been delivered by Google on this?

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



[appengine-java] Re: GAE Teams Content-Transfer-Encoding: base64 data uploads don't work.

2011-04-30 Thread Brandon Donnelson
Demo to test my point:

http://demogwtcanvas.appspot.com - Demo
http://code.google.com/p/gwt-examples/source/browse/trunk/DemoGwtCanvas/src/org/gonevertical/democanvas/client/UploadImage.java
 
- source code for it

Brandon Donnelson
http://gwt-examples.googlecode.com

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



[appengine-java] Re: Some details on how GAE actually works

2011-04-30 Thread Brandon Donnelson
http://labs.google.com/papers/bigtable.html - here is a good read

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



[appengine-java] Filter on property 'date' uses operator '>='. Joins are only supported when all filters are 'equals' filters.

2011-04-30 Thread Charms Styler
Hi I ran into the following issue while running a joined query between a 
Date range through JDO, is there any work around for this?? 

org.datanucleus.store.appengine.query.DatastoreQuery$UnsupportedDatastoreFeatureException:
 
Problem with query = 
:fromDate && d.date <= :toDate && userId == :user VARIABLES DailyCell d

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



[appengine-java] Re: Some details on how GAE actually works

2011-04-30 Thread Didier Durand
Hi Luca,

Would also advise you to read the book "Programming Google App Engine"
by Dan Sanderson (Google engineer) full of technical stuff that you
will not find elsewhere on the net.

regards

didier

On May 1, 12:26 am, Brandon Donnelson  wrote:
> http://labs.google.com/papers/bigtable.html- here is a good read

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