You hit the nail on the head. As far as I know there is nothing like
sequence in Google App Engine. Either you need to have another
entity with a counter and increase it in transactional way. Or you can
use memcache.
JSP is nothing more than servlet code woven with html and some tags to
make generating html pages more easy. Almost everything you can do in
sevlet code you can do also in JSP page. So it is a design decision
what logic should be kept in JSP and what logic should tackled in a
classic servlet
It is not possible, your query filter should contain only 'direct
attributes of the class. if you want to run query based on class
number you need to have to duplicate this property from Classroom to
Student.
But I don't understand your problem. If you have 'one to 'many'
relationship and want
AHHH, that actually explains a lot of other problems I have been
seeing with Long that i wasnt expecting
so why would anyone use Long rather than long? Im guessing that long
is actually a basic datatype I suppose I can go look that up
myself though!
Thanks for your help and input... I
persistence layer will try to set a null if one field has not been
initialized, which leads to an exception. So you shall not try to persist a
primitive type
use Comparable.compare(Comparable o) instead, as nclemeur suggested.
On Wed, Oct 21, 2009 at 6:20 PM, John V Denley
Thanks for the lead Jason! I didn't know that page was there.
Jorge Gonzalez
On Oct 20, 12:25 pm, Jason (Google) apija...@google.com wrote:
Hi Jorge. Have you seen the App Engine Cookbook? Users are free to post and
search for code snippets:http://appengine-cookbook.appspot.com/
- Jason
Maybe what you are looking for is DatastoreService.allocateIds().
On Oct 21, 9:35 am, leszek leszek.ptokar...@gmail.com wrote:
You hit the nail on the head. As far as I know there is nothing like
sequence in Google App Engine. Either you need to have another
entity with a counter and increase
This is indeed the case if Jetty can check that cookies are properly
handled by the client. But on the first access, Jetty has no way to
check that cookies are accepted by the client so it will add the
jsessionid automatically. This is why search engines suffer from this
problem. If you use
cheers ... makes sense!
On Oct 20, 2:05 pm, Jason (Google) apija...@google.com wrote:
No. The StreamingQueryResult class, which is a List used by DataNucleus to
store query results, does not implement Serializable which is required for
all objects stored in memcache. But you can create
Hi,
what is the suggested way to emulate an SQL LIKE 'prefix%' query using
the low level Datastore API?
thanks,
George.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to
FYI, I fixed the problem with a little patch in narwhal (the commonjs
implementation used by Jack):
narwhal/engines/rhino/lib/binary-engine.js
exports.B_DECODE_DEFAULT = function(bytes, offset, length) {
return String(new Packages.java.lang.String(bytes, offset, length,
UTF-8));
}
Can you send your app-id? (privately if you wish)
On Wed, Oct 21, 2009 at 1:46 AM, Thomas Wiradikusuma wiradikus...@gmail.com
wrote:
Hi,
The following Groovy snippet throws exception:
byte[] responseData = byteOut.toByteArray()
http://gae-java-persistence.blogspot.com/2009/10/optimistic-locking-with-version.html
--~--~-~--~~~---~--~~
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
Hi Nikolay. What are your application IDs?
- Jason
On Tue, Oct 20, 2009 at 12:34 AM, Nikolay Gorylenko n0...@jug.ua wrote:
This problem lasts for 3 weeks on Google AppEngine console.
I switched to another applicationId, and everything was good for few
moments - i was able to see my data.
Aside from keeping steady HTTP traffic to your site, I'm afraid not. But as
I wrote in my last post, we're making updates over the next few releases to
drive this startup time lower.
- Jason
On Tue, Oct 20, 2009 at 2:06 AM, Marcel Overdijk
marceloverd...@gmail.comwrote:
Is there any other way
Thanks for this post, i thought i was going insane. I have deployed
and redeployed dozens of times and see the same isssue -- empty site,
no logs. Everything works fine in local eclipse environment. The
deplyment to the app engine works with no errors. But when I access
the application, there is
thanks jason for clarifying this. just to be sure since Larry's class
carries the detachable=true annotation:
keep detachable memcached objects their ability to be re-attached
later on?
thanks,
andr
On 21 Okt., 18:22, Larry Cable larry.ca...@gmail.com wrote:
cheers ... makes sense!
On Oct
Just to mention, JDO (and DataNucleus) supports a Level2 cache, and
can use javax.cache (GAE/J memcached) and is a single PMF property
to turn it on. That way you don't need to play around putting objects
into the L2 cache and getting them out yourself, its done for you.
Have you tried increasing the log levels ?
--
Abhinav
-Original Message-
From: appenginetester jsand...@zerofeelistings.com
Sent: 21 October 2009 23:46
To: Google App Engine for Java google-appengine-java@googlegroups.com
Subject: [appengine-java] Re: Spring MVC + Sitemesh problem
There is probably some way to integrate the statistics API into a general
purpose paging library, but I don't think it's necessary. Perhaps this could
be useful to determine how many pages of data are available, but if you're
using the paging techniques described in
Hi there:
We've been running a wicket app on gae since last month, but without the
need of implement memcache-based implementation of Wicket's IPageStore.
Why are you doing that? (our wicket version is 1.3.7)
Regards,
Esteban
a.maza escribió:
Hi,
I am trying to get Apache Wicket running
No. If an entity does not have a value set for a particular property (null
IS a value, different from missing), then it won't appear in any query
results involving that property. You'll need to continue sifting through
every entity to see if a value is set, and if not, setting it directly.
- Jason
Thanks!. Although it wouldn't be a distributed cache, right?
datanucleus escribió:
Just to mention, JDO (and DataNucleus) supports a Level2 cache, and
can use javax.cache (GAE/J memcached) and is a single PMF property
to turn it on. That way you don't need to play around putting objects
into
Thanks!. Although it wouldn't be a distributed cache, right?
Why? It will be exactly the same cache as what Google provide ...
since DataNucleus puts things into it and gets them out, saving you
the job of doing it. Nothing else is different
--~--~-~--~~~---~--~~
You're right, I just misunderstood your comment.
Thanks,
Esteban
datanucleus escribió:
Thanks!. Although it wouldn't be a distributed cache, right?
Why? It will be exactly the same cache as what Google provide ...
since DataNucleus puts things into it and gets them out, saving you
The query restrictions are an artifact of the way App Engine's datastore is
constructed, which makes certain operations (e.g. queries and reads) very
fast and scalable but does limit the types of queries you can make, though
you can typically get around these restrictions by re-thinking your model
If you don't want to modify the JDOQL query, then you should be able to
filter using a conditional in the loop. Something like:
if (g.getAuthor().getEmail().equals(user.getEmail())) {
// ...
}
Does this work? Is this what you're trying to do?
- Jason
On Tue, Oct 20, 2009 at 4:07 AM, Jefferson
Thanks both for the quick responses.
Leszek you are right with the MVC. I'm not great at writing web
applications since i am fairly new to the whole situation but all of
my web applications have been written with ASP.NET MVC.
It seems then so far the way i have been writting my applications is
a.maza:
That's correct, I'm using HTTPSessionStore because of the filesystem
writing restriction. However, I'm interested in the implementation you
are trying to do, so if you decide to share it with the community when
it's done, I'll be happy to give it a try ;). Moreover, we have a
Can anyone help me to figure out how to write a query to do contains
(Key) in JDO? Here is my scriplet:
select from + master.class.getName()
+ where detailKeySet.contains(' + detail.getKey().toString() + ')
where detailKeySet is a SetKey collection holding all the keys of
the details for the
Thanks Nacho. I asked the same question in google appengine chat irc
and got the same answer. Will have to use the allocate id feature in
low level api.
Len
On Oct 21, 7:41 am, Nacho Coloma icol...@gmail.com wrote:
Maybe what you are looking for is DatastoreService.allocateIds().
On Oct
Keeping steady HTTP traffic does not work either. I have a script
which 'http pings' my application every 30 seconds. Yet my app-engine
instance experienced 70 spin downs yesterday alone!
I am REALLY looking to this update - until then I'd highly recommend
staying away from Spring!
On Oct 21,
Its worth mentioning that Apache Click 2.1.0 ships with an in-memory
FileItemFactory implementation for Apache FileUpload. Meaning Click's
file upload component works out of the box.
Click uses OGNL for certain operations which clashes with GAE security
manager. The solution, as mentioned in
excellent!
On Oct 21, 11:20 am, datanucleus andy_jeffer...@yahoo.com wrote:
Just to mention, JDO (and DataNucleus) supports a Level2 cache, and
can use javax.cache (GAE/J memcached) and is a single PMF property
to turn it on. That way you don't need to play around putting objects
into the L2
Hi,
I got the same error, can you try adding the following jars to your
classpath
appengine-api-stubs.jar
appengine-api.jar
appengine-local-runtime.jar
HTH
Dominik
On Oct 20, 7:21 am, stanlick stanl...@gmail.com wrote:
I have configured my test environment according to the notes found
here.
Answered in this thread
http://groups.google.com/group/google-appengine-java/browse_thread/thread/958851cc674d0c70/7403586fae9ffe20?lnk=gstq=startswith#7403586fae9ffe20
On Wed, Oct 21, 2009 at 6:34 PM, George Moschovitis
george.moschovi...@gmail.com wrote:
Hi,
what is the suggested way to
Ok, I have learned something new today :)
You will only have this problem if you are creating a user session for
each and every request. If you are a bit more conservative for
creating user sessions (for example, storing data in cookies for the
anonymous user) maybe this issue would
Hi king,
On Thu, Oct 22, 2009 at 6:19 AM, king kingalpha...@gmail.com wrote:
Can anyone help me to figure out how to write a query to do contains
(Key) in JDO? Here is my scriplet:
select from + master.class.getName()
+ where detailKeySet.contains(' + detail.getKey().toString() + ')
38 matches
Mail list logo