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
Hi all,
We have been developing a persistence framework for the AppEngine
Datastore based on the raw DatastoreService API. For our (simple)
persistence case, both JDO and JPA were a bit overkill as we were
spending a significant amount of time jumping through hoops to make
our application roll,
There is absolutely nothing in the JDO ***API*** that is irrelevant to
GAE/J and BigTable.
I disagree, and that's the main reason why we developed our own
framework. These are just some random thoughts about this subject:
* Transactions in JDO is a global thing tied to the persistence store
I recently played with the lower level API as well. Some of the
features are not available in JDO, like reserving a key before
committing a new object.
Yes, we wanted to get access to those. Specially, the create several
keys at once and persist several entities at once are great, we
combined
I have uploaded the generated javadoc here:
http://code.google.com/p/simpleds/downloads/list
I haven't had time to review it yet, so take it with a grain of salt. The
list of features you should look for are:
* CRUD operations at the EntityManager interface
* SimpleQuery
* PagedQuery
That's it.
On Fri, Oct 23, 2009 at 6:06 PM, datanucleus andy_jeffer...@yahoo.comwrote:
* Transactions in JDO is a global thing tied to the persistence store
(one database = one transaction), but for GAE it's one transaction per
entity group. It's perfectly reasonable to execute two transactions at
How about
jar -tvf appengine-api-1.0-sdk-1.2.1.jar | grep Exception
At least, that should give you a list of Exceptions to support. If you
find out more, please share :)
On Oct 24, 6:46 am, Roy roy.smith@googlemail.com wrote:
I read a lot about failures and timeouts from the datastore,
You could calculate the MD5 hash. That's a one-way algorithm.
On Oct 26, 8:17 pm, Don Schwarz schwa...@google.com wrote:
I would suggest that rather than using email + somethingelse as your
key names, you use F(email + somethingelse) where F is either an
encryption function or a one-way hash
Try
new KeyFactory.Builder(parentKind, id).addChild(childKind, id).getKey
();
On Nov 16, 4:46 am, elvin e.v.c...@gmail.com wrote:
Good day.
As far as documentation states, The key value includes the key of the
entity group parent (if any) and either the app-assigned string ID or
the
Hi all,
I have been trying to use the following web.xml elements in GAE:
jsp-config
jsp-property-group
url-pattern*.jsp/url-pattern
el-ignoredfalse/el-ignored
You most probably have modified your local server default install. If
the JSP servlet is in place, the file will be served OK.
Your web.xml snippet should not be needed.
On Nov 27, 7:49 pm, Don lydonchan...@gmail.com wrote:
Hi,
Trivial question for the gurus here,
if i do:
Your code looks OK. BTW, you do not need to explicitely open/close
your EntityManager, nor is the getEntityManager() method required.
As far as I know, as long as Spring is using interceptors and not
weaving (should be your case), you should be OK.
On Nov 28, 5:49 pm, asianCoolz
Hi all,
SimpleDS, an alternative storage framework for GAE, has hit its 0.8.1
release. This release includes a couple of interesting features:
Multiple valued index
===
This is a little experiment that is working quite well for us. A new
IndexManager class will store and retrieve
/google-app-engine-open-source-projects
On Tue, Dec 1, 2009 at 3:46 AM, Nacho Coloma icol...@gmail.com wrote:
Hi all,
SimpleDS, an alternative storage framework for GAE, has hit its 0.8.1
release. This release includes a couple of interesting features:
Multiple valued index
Why not store them in the WAR as a normal web resource and add an
expiration = 1y in appengine-web.xml?
static-files
include path=/favicon.ico expiration=1y /
include path=/img/logos/* expiration=10y /
/static-files
You should take care that you never reuse a logo name. Anyway,
Hi Marcel,
The proposed solution will only substitute the EL engine, which would
allow you to use a broader set of ${...} expressions. AFAIK, it would
not affect to the interpretation of web.xml.
I am also waiting for some attention from Google about this bug.
On Dec 22, 12:31 pm, Marcel
Hi, my application deploys fine in the local environment but when
trying to upload to AppEngine I get this stack trace [1] after
compiling about 30 JSP files.
The page with the bug is not being logged anywhere (the last one,
detail.jsp, compiles OK). I had to guess based on a 'ls -U' order of
For the record, one of the functions defined in the TLD was missing
the function-class and function-signature, and that was causing the
NPE.
--
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 Jeff, thanks for the insightful points. I am the SimpleDS author,
and thought that maybe some of these issues need further explanation:
* Not enough use of generics. Key, Query, and PreparedQuery should
all be generified classes.
We tried that at first, but there is little benefit from
About this I must disagree. Everything I've learned about the
appengine datastore says that unless you specifically need
transactions, you should avoid using parent entities.
When any entity is written, the optimistic concurrency journal is
maintained for the root of the entity group. If
Nacho, there is already a public DatastoreService.getActiveTransactions()
that returns the threads open transactions. Is this not what you want?
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#getActiveTransactions()
OK, now I am
SimpleDS provides a simple persistence framework for Google AppEngine
that gets as little in the way as possible. It is barely a wrapper
around Datastore APIs, providing mapping between Entity and Java
classes.
This version includes small modifications to existing features and
some new ones:
It's a separate interceptor class with AspectJ annotations that can be
used apart from simpleds, so feel free to reuse it.
http://simpleds.googlecode.com/svn/trunk/src/main/java/org/simpleds/tx/
On Mon, Mar 8, 2010 at 3:14 PM, John Patterson jdpatter...@gmail.com wrote:
Hey I like that
Actually this is the one and single thing that makes my GAE experience
kind of bittersweet. I am still recommending the platform to friends
and colleagues, but mentioning the cold start problem up front.
Setting this feature/bug to high priority would be most welcome. I
think this is the most
You are increasing my suspicion that you've never actually performed
schema migrations on big, rapidly changing datasets.
You are increasing my suspicion that you like to make inflammatory
remarks without thinking them through just for the sake of trolling.
I have one question more or
For parallel queries, we haven't really started talking about the API,
but I have to admit there is a lot of appeal to simply adding a method
like this on the Objectify interface:
MapQuery?, Iterable? multiquery(IterableQuery?);
While not as powerful as being able to get(), put(), delete(),
Hi Guillermo,
If you create a SQL interface on top of any of those, then it is a
relational database, not a fake but a real relational database. Why would I
want a relational database? Consistency, for starters. ACID transactions.
Set operations.
'Consistency' is a broad term. If you are
Hi all,
I am trying to use memcache.increment to move to negative values,
starting at 0. According to the javadoc[1]:
To facilitate use as an atomic countdown, incrementing by a negative
value (i.e. decrementing) will not go below zero: incrementing 2 by -5
will return 0, not -3. However, due to
it does. I suspect
it has to do with storing numbers as either signed or unsigned ints
depending on what you first set the value to, with unsigned ints being the
90% case.
When in doubt, use the solution that results in the least confusion. And
document.
On Tue, Apr 6, 2010 at 9:09 AM, Nacho
What you are seeing is normal JEE behavior with cluster environments.
The standard does not say that modifications to your session-stored
beans should be propagated to other cluster nodes unless you
explicitely invoke setAttribute().
You are experiencing the worst possible case (never increments)
I just felt that I wanted to manage the references (keys) myself, so I
could have more control over when and how those references are
instantiated - Twig seems to do that for you (great in many ways), but
I have some situations with my application where I think that could
have a performance
We saved between 5-10 seg by switching from XML to Spring 3 java-based
configuration:
listener
listener-
classorg.springframework.web.context.ContextLoaderListener/listener-
class
/listener
context-param
param-namecontextClass/param-name
Hi Sergio,
I'm thinking in a Filter that put page results in memcache when first
accessed, and then getting that result in former accesses.
That should work. All page cache implementations do more or less the
same.
The idea is simple but the implementation is not. (how to get the
first
We are really excited with this release, which is the first feature-
complete release of SimpleDS. Lots of things have been included in so
little time.
Getting up-to-date with AppEngine
It's hard to keep up the pace with these guys. This release includes:
*
Just one question: does SimpleDS support query caching too? I've some
very popular queries and want to cache their results in a 2nd level
cache (not only its entities)
Not yet, but this is also my case so it is in the roadmap for the next
version (a couple of months ahead).
--
You received
Loom 2.0 (http://loom.extrema-sistemas.org) is compatible with
appengine out-of-the-box, and it includes some extras in a separate
loom-appengine.jar.
--
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
has a nice Java Filter that threats many corner
cases (headers, gzip, ...). The only problem is that it's too coupled
to Ehcache. I think I'll try to fork that project to use their Filter
with AppEngine's memcache :)
On May 4, 6:22 am, Nacho Coloma icol...@gmail.com wrote:
Hi Sergio
The WEB-INF way is the standard practice. You can also assign an
impossible role to these folders in web.xml.
On May 20, 7:10 pm, Peter appministra...@gmail.com wrote:
Hi,
After toying with App Engine for a few hours, I've found that in order
to hide a static file from the web content path
Hi, I know this is probably bad timing as most Googlers will probably
be at I/O, but anyway:
Do I have any way to instrument a class (AKA: modify its bytecode on
class loading) inside GAE? I suppose not, and that's why datanucleus
is using compile time, but I'm asking just to be sure.
This far I
classes loaded by your application. If you
perform custom class loading, be cautious when loading untrusted third-
party code.
didier
On May 21, 8:48 am, Nacho Coloma icol...@gmail.com wrote:
Hi, I know this is probably bad timing as most Googlers will probably
be at I/O, but anyway:
Do I
If your website is public you can also use the google search Ajax API
(with a site: query) and parse the returned URLs if needed.
On May 28, 10:30 am, Andrés Cerezo acerezoguil...@gmail.com wrote:
You can use gaelucene code.google.com/p/gaelucene/ you have to index
the information in your pc
Hi Sudhir,
Try using interfaces for your objects. I have been able to use aspects
in my applications using Spring interceptors instead of weaving, which
is triggered (I may be wrong here) when your class does not implement
any interfaces.
Bottom line: inject interfaces instead of bean
You can while testing (this is from the users guide):
LocalTaskQueue queue = LocalTaskQueueTestConfig.getLocalTaskQueue();
QueueStateInfo qsi = queue.getQueueStateInfo().get(default);
assertEquals(entriesCount, qsi.getTaskInfo().size());
Out of the development environment, you cannot.
On Jun 5,
You should specify if you are using JDO, JPA or other. SimpleDS has a
PagedQuery implementation that can be ported to your own environment.
Look for getFetchOptions() in this link:
http://code.google.com/p/simpleds/source/browse/trunk/src/main/java/org/simpleds/PagedQuery.java
This will only
option is best cursors or setRange?
On Wed, Jun 9, 2010 at 1:47 PM, Nacho Coloma icol...@gmail.com wrote:
You should specify if you are using JDO, JPA or other. SimpleDS has a
PagedQuery implementation that can be ported to your own environment.
Look for getFetchOptions() in this link
That should not be your problem:
http://code.google.com/appengine/docs/java/jrewhitelist.html
I am using MD5 in AppEngine without issues.
On Jun 10, 3:17 pm, Michael mrher...@gmail.com wrote:
Hi,
I am pretty new to app engine (and Java) and I am seem to have run in
to a wall. I want to do
I would like to point out that this was already reported Nov 2009:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/6dd57bff3b0c8b9e/dfb339ea7e106b22
One of the affected issues, if you want to star it, is here:
SimpleDS does also include a two-level Cache implementation. We are
using the same approach of Hibernate: the first-level cache is bound
to the current thread and will be discarded after the response is
committed, and the second-level cache is relying on Memcache.
The tricky part was dealing with
I know that someone will arrive with a better implementation, but here
goes own little code snippet used to populate our test database. It
has survived five or six GAE upgrades, so glitches are expected :)
You must have two things in consideration: the appid and version must
match, and you should
You can use Jrebel with GAE:
http://www.zeroturnaround.com/jrebel/
You will have to combine both instrumentation agents in the launcher,
but it works fine.
On Jun 27, 6:22 pm, Rob Roland rob.rol...@gmail.com wrote:
Hi all,
If you've used Jetty via Maven before, you've probably used the reload
The datastore now supports both end cursors.
I have checked out the documentation and cannot find what this is
about. Anyone?
On Jul 1, 1:10 am, Ikai Lan i...@google.com wrote:
Hey everybody,
We've released the 1.3.5 SDK. Blog post here:
My 2 cents: if all your users are of type Person and it's a root
entity, you can also save some space by storing Key ids instead of Key
instances (you save the redundant type name etc).
On Jul 19, 5:53 am, Ikai L (Google) ika...@google.com wrote:
The best practice is probably to create list
Have you tried MVEL?
On Jul 22, 9:41 am, Matt Farnell mfarn...@gmail.com wrote:
Does anyone have any recommendations for an emailing template solution?
Ideally I'd like to be able to define my HTML emails like JSP and then just
substitute in the values.
I've come across Velocity and
I have tried to upgrade to GAE 1.3.5 and found that my usual maven
repository does not work anymore. So far the GAE jars can be found
here:
maven central: http://repo1.maven.org/maven2/ - up to 1.3.1
google-maven-repository: http://code.google.com/p/google-maven-repository/
- up to 1.2.1
Nothing?
Does anyone know of any maven server that includes the 1.3.5 jars?
On Jul 23, 11:31 am, Nacho Coloma icol...@gmail.com wrote:
I have tried to upgrade to GAE 1.3.5 and found that my usualmaven
repository does not work anymore. So far the GAE jars can be found
here:
mavencentral:http
Just a heads-up. I am getting a NPE while trying to deploy this with
1.3.6:
static-error-handlers
handler file=/error/default.html/
handler file=/error/over_quota.html error-code=over_quota/
handler file=/error/dos_api_denial.html error-
If works as expected.
Sorry, it should say It works as expected.
It's late :)
--
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-j...@googlegroups.com.
To unsubscribe from this
We are excited to announce the 1.0 release of SimpleDS. SimpleDS is a
simple persistence framework for Google AppEngine that provides an
alternative to JDO or JPA.
This release includes a lot of new features:
Cached queries
==
This is the star feature of this release. Starting with
AFAIK you have two different behaviors on purpose. The idea is to
allow anybody in your local environment, but require a proper OpenID
account for your site.
This means that you will have to test the OpenID behavior online or
invoking directly _ah/login_required
On Oct 10, 4:16 pm, Fabrizio
JUL has been reported as 60 times slower than other implementations
because of the way they log:
http://www.infoq.com/news/2007/08/logback
Just configuring properly log4j/logback to log to System.err or
System.out should be enough to see messages properly in the AppEngine
console. In logback,
Is there any option to contribute to this project? I am using hacks to
do the filtering, and it seems easy to implement.
I would love to discuss things first, but appengine-mapreduce seems
like a read-only project to me. It's fine but I would like to help it
move forward.
On Nov 8, 10:11 pm,
/appengine-mapreduce/source/browse/
On Wed, Nov 10, 2010 at 6:08 PM, Nacho Coloma icol...@gmail.com wrote:
Is there any option to contribute to this project? I am using hacks to
do the filtering, and it seems easy to implement.
I would love to discuss things first, but appengine-mapreduce seems
I'm not entirely sure I understand
the scope of the proposed patch. Are you thinking about adding filters
at the DatastoreRecordReader level? It's not entirely clear to me that
that provides a benefit over just applying the filter at the start of
the map() function. Totally willing to
or process all comments by user
X for example). This means that Filter may need encapsulated access to some
methods of AppEngineJobContext.request.
It seems that it can be implemented in a couple of hours. I will still wait
for 1.4.0, though.
On Nov 18, 7:01 am, Nacho Coloma icol...@gmail.com
, Vaclav Bartacek
vaclav.barta...@spolecne.cz wrote:
Hi,
the open-source Java GQL parser (based on ANTLR) you can found here:
http://code.google.com/p/audao/wiki/ExtendedGQLParser
Vaclav
On Nov 24, 7:46 pm, Nacho Coloma icol...@gmail.com wrote:
One other thought: instead of adding a GQL
This is just a heads-up for other people that are waiting for this.
With the new release you can include this in your web.xml (the
starting tag is important):
?xml version=1.0 encoding=UTF-8?
web-app
xmlns=http://java.sun.com/xml/ns/javaee;
Have you tried adding (modify to suit your own path):
-javaagent:/usr/local/java/appengine-java-sdk/lib/agent/appengine-
agent.jar
Apparently you can have two java agents at the same time.
I have this in my JRebel launcher, but maybe it's legacy from my JDO
days. I don't use GWT, so I cannot
If you have unscrupulous competitors with your Google Account
password, I'd think the fact that they might download your source is
the least of your problems. They could just deploy malicious code to
your site instead.
That can be fixed, but you can't do anything about the fact that they
It doesn't seem like it'd be too hard to add, however, but there are no
immediate plans to do this soon. I talked to Fred and this seems like
something he'd patch in if someone builds an implementation ... !
The Filter implementation discussed here [1] would include this
feature by default (it
Hey guys,
In its current form DeferredTasks can only be serialized using native
serialization, which makes the GAE console useless (I can peek at existing
tasks, but I am not that good at reading binary data). I would like to
serialize my tasks using JSON, which would of course be my own
Funny, because in the past CloudFlare was getting banned quickly for
unusually high traffic. I suppose they have been whitelisted since.
On Wednesday, April 3, 2013 6:05:43 PM UTC+2, Jeff Schnitzer wrote:
If you've been reading about my troubles with this issue in the past,
you're going to
Hey guys,
Just a quick heads-up: this last weekend I open sourced two projects for
GAE/J:
* Jackson4Gae https://github.com/icoloma/jackson4gae: a collection of
serializers and deserializers to transform AppEngine classes (Key, Cursor,
you know what I mean) to JSON using Jackson.
* Queue4Gae
Hi, I have just configured a certificate for our own custom domain (VIP)
and it is working fine, but Android browsers are rejecting to connect.
Investigating, it seems that I should include the full chain of
intermediate CAs to the uploaded PEM file, but that's not possible since
AppEngine
the certificate provider. Thank God for the
15-days refund policy.
Thanks for your support.
On 2 August 2012 04:03, Nacho Coloma icol...@gmail.com wrote:
Hi, I have just configured a certificate for our own custom domain (VIP)
and it is working fine, but Android browsers are rejecting
Hey guys,
SimpleDS is a Java persistence framework for GAE (think Objectify, but
different). This release includes the following:
*Serialize attributes as JSON*
Something similar to what NDB introduced lately, you can choose between
@Embedding a composite object or serializing it @AsJSON:
On Jul 30, 8:47 pm, Ikai L (Google) ika...@google.com wrote:
it sounded like he wanted to do it on
a per query basis - and there'd be all the problems with global mutable
state, concurrency, etc.
Just for the sake of completeness, this case is usually implemented
using a static ThreadLocal
77 matches
Mail list logo