Hi Brandon,
Sorry I wasn't clear in my previous response. The API is working as
designed. In your code sample you
call writeChannel.write(bb) and then getBlobKey(file) without calling
writeChannel.closeFinally().
Until you call closeFinally() the file has not been *finalized*. This
means the
Try thread on.
appengine-web.xml
threadsafetrue/threadsafe
But please first check if your application is thread safe.
Otherwise, if your first request is in work on the server and you do
the second request, it needs a new instance.
--
You received this message because you are
Hi Gianni,
If I understand correctly I can use the default handler for any
deferred task and thus specifying the url is irrelevant.
How would I send a 'deferred' Task to a specific queue? Like this?
QueueFactory.getQueue(email-
queue).add(TaskOptions.Builder.withPayload(newEmailTask(email)));
Thanks hector and Adam,
This works.
On Apr 27, 3:02 am, hector@ISB hrovira@gmail.com wrote:
import com.google.appengine.api.urlfetch.*;
import static com.google.appengine.api.urlfetch.HTTPMethod.POST;
import static
com.google.appengine.api.urlfetch.FetchOptions.Builder.withDeadline;
Thanks you for that tip!
Do I understand you that I should only call makePersistent() if the entity
does Not exist already?
And that if I want an update to fail when the entity does not exist I should
do nothing beyond Transaction.commit()?
What I mean is:
Transaction tx =
On Tuesday, September 29, 2009 11:55:42 AM UTC-4, Jason (Google) wrote:
Due to the recent uptick in spam messages, I have enabled moderation
for new members -- this means that if you haven't posted here before,
your message may not show up right away until I have the opportunity
to approve
Photo Submissions: Enabled
--
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
I was merely trying to grab the blobkey before it was closed to see if it
was possible, in trying to find a workaround. I knew that I had to do it
after closing. I see the blobkey string in the file object when it is null,
although I am finding the blog actually is null(corrupted) even though
Hmm, let see if I can convert my thought into words :).
To persist is to update or insert automatically, depending on if the ID
already exists in the datastore for the object. So persist method figures
out insert or update.
You can do things after commit, but you won't be able to roll back.
I dont' want to waste your time, so I wanted to let you know, that all blobs
write to store perfectly. When I get a null return for blobkey
after successful write to blobstore, I split the namePart to get the key,
but for some reason, this doesn't match up yet. Its probably
api operator error,
I submitted a moderated post about this, but I think it got lost somewhere.
My posts are getting through now, so here we go...
Environment:
* Eclipse 3.6.2 (Helios SR2)
* Google Plugin for Eclipse 2.2.1 (also tested 2.3.0 beta1)
* Scala IDE plugin (any version, though primarily using the
I've been purposely avoiding the threadsafe option because I haven't checked
whether our app is threadsafe or not. Will give it a try. Thanks.
--
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
Brandon, I don't think your last answer is helping him. Because in
this case he needs the transaction for the isolation and he is on the
right track already.
By querying for the entity by ID sameKey in Servlet B the
transaction is pinned to that entity group and therefore the
transaction is
If I check getObjectById() just before makePersistent(), another thread
could still delete it between the two calls couldn't it?
Uses_for_Transactions
http://code.google.com/intl/nl/appengine/docs/java/datastore/transactions.html#Uses_for_Transactions%20
Is exactly the thing. _Except_ not for
I think this is a good question for Ikai, hes the guru that might be able to
give you some light to your path. I see the dilemma, but I'm not sure which
road :).
Brandon
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to
I am creating xml file in blobstore but after serving from blobstore,
when saved through browser then
CDATA barckets get changed i.e
![CDATA[
to
lt;![CDATA[
and
]]
to
]]gt;
Thought elements brackets stay fine i.e. id remains as it is.
During file creation I use:
He has two servlets concurrently working on the same object, what would you
suggest?
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
This page (link below) shows there are several new features in Google
App Engine.
http://code.google.com/eclipse/docs/signin.html
But I can't find the sign in and other like Google API Support in my
Eclipse 3.6, even after check for Updates.
http://code.google.com/eclipse/docs/googleapis.html
I am getting a headache with using ${SDK_ROOT} in eclipse for the
classpath. I just cannot make it work.
I tried as below, but does not seem to work. I spedn 5-6 hours on
that! Any help would be useful. thank you.
classpathentry kind=lib path=${SDK_ROOT}/lib/appengine-remote-
api.jar/
--
You
Hi Brandon,
Sorry, I wasn't clear before. What I meant was that the API is working
as designed. In your code sample you call writeChannel.write(bb) but
you never called writeChannel.closeFinally().
This means that the file is not *finalized*. Until the file is
finalized it is write-only, it
I've been thinking about your deal. Since the changes are
happening concurrently, you could either sync the servlet threads up and
talk across the servlets, which I have no experience and haven't tried
servlet concurrency or keep track of the threads through a jdo class.
So here is what I
Here is what I do:
public class Servlet_Index extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res) throws
IOException {
home(req, res);
}
public void home(HttpServletRequest req, HttpServletResponse res) throws
IOException {
Can you right click on library and add it to the build path?
I like to install it through Help Install New software my self. I get mine
through the GWT channel.
Brandon Donnelson
http://gwt-examples.googlecode.com
--
You received this message because you are subscribed to the Google
I success to integrate struts2 in GAE . And can execute program in normal
condition. But when i try use xslt result type . The error come out.
javax.xml.transform.TransformerOncfigurationException: Could not compile
stylesheet
is there have any solution?
--
You received this message because
24 matches
Mail list logo