Re: [appengine-java] DWR 3 doesn't work

2011-06-03 Thread Rusty Wright
Look at the entry for ItsNat: http://code.google.com/p/googleappengine/wiki/WillItPlayInJava On 2011-06-03 03:35, draks wrote: Hi, I saw that DWR works on GAE. But whezn I do my test, I've this error: java.lang.NoClassDefFoundError: javax.swing.event.EventListenerList is a restricted

Re: [appengine-java] Coding with Adobe Software

2011-05-24 Thread Rusty Wright
InDesign is a page layout program for printing, more or less. You probably could use it to mock up your web pages but it's drastic overkill when you're new to coding. Do your mock ups with static html, as others have pointed out. If you're looking for an html editor, I'd use something like

Re: [appengine-java] Java = Google app

2011-05-23 Thread Rusty Wright
Sorry, my post was slightly tongue in cheek; sometimes I can't resist sticking a twig into a hornet's nest. On 2011-05-23 08:26, Ugorji wrote: +1 all the way to Jeff's comments. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group.

Re: [appengine-java] Java = Google app

2011-05-22 Thread Rusty Wright
Become a fanatic and learn maven; in the long run it does make things easier. Free maven books here: http://www.sonatype.com/Support/Books On 2011-05-21 03:08, programmer wrote: How do I make my java code or jar file an app? -- You received this message because you are subscribed to the

Re: [appengine-java] Re: GAE - Java - JSON?

2011-05-20 Thread Rusty Wright
I'm using Stripes (an action based framework, similar to Struts 2 but *way* better) and GSON. Stripes is very flexible and powerful and very well thought out and designed. On 2011-05-20 06:43, Pop Vasile wrote: Thanks guys, great resources. I'm still a bit confused about the approach on GAE

Re: [appengine-java] Lightweight Best performing MVC framework - Recommendation

2011-01-02 Thread Rusty Wright
Stripes; easy, powerful, and flexible. On 2010-12-29 11:02, Ikai Lan (Google) wrote: Um ... those are like the opposite of lightweight. Here are some I like: Play Framework: probably the most underrated Java framework I've ever see http://www.playframework.org/ Slim3: built for App Engine.

Re: [appengine-java] Re: MD5 Hash

2010-06-12 Thread Rusty Wright
That looks like a compiler error. On 2010-06-10 11:42, Michael wrote: Any ideas on what is wrong then? On Jun 10, 1:03 pm, Nacho Colomaicol...@gmail.com wrote: That should not be your problem:http://code.google.com/appengine/docs/java/jrewhitelist.html I am using MD5 in AppEngine without

Re: [appengine-java] What Framework to use?

2010-05-21 Thread Rusty Wright
Stripes. http://www.stripesframework.org/display/stripes/Home On 2010-05-21 09:29, hurray! wrote: I am looking for a web framework to use on GAE that 1. Provides pretty URLs 2. Makes passing data to views easier. 3. Is productive. I tried Grails for a small app, but the startup time was too

Re: [appengine-java] Re: App Engine and Spring slow start up

2010-03-01 Thread Rusty Wright
Try using the old way with xml configuration for wiring your beans together. The word on the street is that Spring's component scanning takes a lot of time. luijar wrote: Nope, I am still seeing it. It's quite frustrating. I even tried to reduce Spring init time by removing schema validation

Re: [appengine-java] log4j init fails

2010-02-19 Thread Rusty Wright
I think you can simply put the log4j.properties file in the WEB-INF/classes dir and you don't need any appengine-web.xml stuff for it. Log4j looks for its configuration file on the classpath which means it looks in WEB-INF/classes (and also in all of the jars in the lib directory). AJ Chen

Re: [appengine-java] Re: JDO model issue

2010-02-08 Thread Rusty Wright
I agree with Jake; relationships are tricky. Likewise with his pointing out that having race be in two Results will be a problem; that won't fly. Another way would be to have a ListResult in Race, and add your Results to that. But you're still going to have parenting problems when you have

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
I also vote for slf4j. If you need a for example, here's my logback.xml file, which lives in the WEB-INF/classes directory: ?xml version=1.0 encoding=UTF-8? !-- pattern%date{-MM-dd HH:mm:ss.SSS z}, %5level: [%thread] %class.%method.%line: %message%n/pattern -- configuration debug=true

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
problems with the logging aren't being caused by tomcat's logging (but since gae isn't using tomcat that shouldn't be an issue here). Also, logback is more actively supported (and it's written by the same guy who wrote log4j). Rusty Wright wrote: I also vote for slf4j. If you need a for example

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
Oops; more stumbling. I think it's usually Commons Logging that causes problems with tomcat, and perhaps elsewhere, not log4j. slf4j is a Commons Logging alternative. Rusty Wright wrote: What I just wrote is probably confusing; I'm using slf4j with logback for logging, not log4j. You

Re: [appengine-java] Re: how to add field to entity

2010-01-27 Thread Rusty Wright
I think you can also use the java transient keyword to tell JDO/JPA to not persist it. Andrei wrote: Ok, i forgot to put @NotPersistent On Jan 26, 1:15 pm, Andrei gml...@gmail.com wrote: Thanks, i'll try What i do not understand, this value is not stored in db On Jan 26, 1:06 pm, John

Re: [appengine-java] Re: One-to-many querying for a child instance

2010-01-27 Thread Rusty Wright
Do you need a colon in front of nameParam? query.setFilter(name == :nameParam); Sydney wrote: The query returns no result. ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment ()); ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(.)) {

[appengine-java] problem with documentation

2010-01-27 Thread Rusty Wright
When I'm learning something new one of the things that slows me down is poor documentation. I think the app engine java documentation Storing Data could be improved if it used consistent terminology in the area of entity groups, which is a crucial part of understanding how the data store

Re: [appengine-java] Re: One-to-many querying for a child instance

2010-01-27 Thread Rusty Wright
an exception org.datanucleus.store.query.QueryCompilerSyntaxException: Explicit parameters defined for query, yet implicit parameter syntax (:nameParam) found On Jan 27, 4:39 pm, Rusty Wright rwright.li...@gmail.com wrote: Do you need a colon in front of nameParam? query.setFilter(name

Re: [appengine-java] Enforcing unique constraint

2010-01-18 Thread Rusty Wright
In your class, if you have a Collection of entities that you want to not have duplicates you can make it a Set, and be sure that you've provided a proper equals() and hashCode() for your entities; specifically, do not include the primary key because it starts out null when you instantiate the

Re: [appengine-java] Any examples for low level datastore? or suggest another way?

2010-01-14 Thread Rusty Wright
Joel Weight wrote a data store service that I thought was easy to understand. Reading his code made me realize that what's in the data store is basically the fields of the object, without the object itself; therefore to re-hydrate an object from the data store, you first instantiate/new the

Re: [appengine-java] Re: Maven

2010-01-11 Thread Rusty Wright
It looks like the folder http://www.mvnsearch.org/maven2/com/google/appengine/appengine-api-1.0-labs/1.3.0/ has finally been fixed (as of January 9). drone wrote: No, central repo has 1.2.0 and 1.2.1 only. 1.3.0 is available at

Re: [appengine-java] jpa query

2010-01-08 Thread Rusty Wright
Just out of curiosity, what happens when you do it with a parameter? Also note that I've simplified your query; I'm looking at the DataNucleus example for an implicit parameter (http://xrl.in/47e5). Query query = pm.newQuery(select from com.testing.model.Usertest.class where username =

Re: [appengine-java] jsp work directory

2010-01-08 Thread Rusty Wright
What do you mean by work directory? siliconeagle wrote: does anyone know where the jsp work directory is on the dev server? -- 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

Re: [appengine-java] Re: App Engine SDK 1.3.0 maven repo

2010-01-08 Thread Rusty Wright
, another typo:http://www.mvnsearch.org/maven2/com/google/appengine/orm/datanucleus-... It's a space in the version folder name :-( Please, there are a significant number ofmavenusers out here that would appreciate this... .../Andreas On 15 Dec, 20:11, Rusty Wright rwright.li...@gmail.com wrote

Re: [appengine-java] Adding boolean / int field to data model impossible ?

2010-01-07 Thread Rusty Wright
Use the object types instead of the primitive types; that is, use Boolean instead of boolean, and Integer instead of int. They can be null. Then in your getter for them, check to see if they're null and if so, set them to whatever default value you've chosen, and then return it, unboxed (for

Re: [appengine-java] Re: New Data Field NullPointer

2010-01-02 Thread Rusty Wright
As a workaround, avoid primitives; use, for example, Integer instead. Then in your getter, return its value as a primitive, and also check to see if it's null, and if so, set it to whatever default you prefer. public final class Zzz { Integer number; public int getNumber() {

Re: [appengine-java] How to query objects with criterias defined in child entities

2009-12-31 Thread Rusty Wright
Stand it on its head; instead of User having a Collection of Skill, Skill has a Collection of User Keys (ignoring the levels part). For the Level, add a layer of nesting; Skill has a Collection of Level, and each Level has a Collection of User Keys. reini77 wrote: Hi, I'm trying to

Re: [appengine-java] Re: JPA Uses Annotations Only

2009-12-31 Thread Rusty Wright
http://www.datanucleus.org/products/accessplatform_1_0/jdo/index.html vvernon wrote: Great, how do you set up the XML files when it's used on App Engine? On Dec 30, 11:31 am, datanucleus andy_jeffer...@yahoo.com wrote: DataNucleus supports all types of input ... JPA annotations, JPA XML,

Re: [appengine-java] New Data Field NullPointer

2009-12-31 Thread Rusty Wright
I forgot to add that missing fields are always (I think) returned as null by the datastore. Rusty Wright wrote: It's the GAE datastore. When you add a new field, say an int, it uses null for the missing field in the datastore, then when it tries to unbox it; i.e., ((Integer) null

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

2009-12-29 Thread Rusty Wright
the jdo-gae-context.xml is only used for integration tests. Yes, it duplicates the transactions defined in the service layer, but it's configured so that any transaction already started by the service layer will be inherited by the dao layer, so it won't start a new transaction. The

[appengine-java] data loads for tests

2009-12-29 Thread Rusty Wright
I'm working on a gizmo for making it easier to load data into the local data store (e.g., desktop) when doing tests. The file format is xml; a sample follows. I'm using Apache Xerces and SAX; this is my first adventure with parsing an xml file. Basically, the structure of the xml is that the

Re: [appengine-java] Re: Finding abandoned child entities

2009-12-18 Thread Rusty Wright
If you're using com.google.appengine.api.datastore.Key for your primary keys, it has a getParent() method which returns null when the object doesn't have a parent. Also, your code is fetching a List of Entity, and Entity also has a getParent() which returns null if there is no parent. m

Re: [appengine-java] two entities into the same entity group - unowned relationship

2009-12-18 Thread Rusty Wright
My understanding is that the only way objects can be in the same entity group with GAE is they have a parent/child relationship (or grandparent/grandchild etc.). aswath satrasala wrote: I have two classes with unowned relationship. I am making tenant key as a key field in the

Re: [appengine-java] embedding parent object in parent-child relation with jdo

2009-12-18 Thread Rusty Wright
Try making the parent's primary key be Key instead of String. Eugene Kuleshov wrote: I am using the app engine SDK 1.3.0 with the latest Google Eclipse plugin. Currently, in order to be able to run queries on attributes of the parent object I have to embed parent object into a child.

Re: [appengine-java] Chat Time transcript for December 16, 2009

2009-12-18 Thread Rusty Wright
Regarding the question about better performance by writing entities in different entity groups; that's not an option if you're using JDO is it, doesn't JDO require a transaction around writes? Jason (Google) wrote: This past Wednesday, the App Engine team hosted the latest session of its

Re: [appengine-java] How to retrieve the system generated key

2009-12-16 Thread Rusty Wright
I think you may need a transaction, http://xrl.in/411x PersistenceManager pm = pmf.getPersistenceManager(); Transaction tx = pm.currentTransaction(); try { tx.begin(); {users code to persist objects} tx.commit(); } finally { if (tx.isActive()) {

[appengine-java] App Engine SDK 1.3.0 maven repo

2009-12-15 Thread Rusty Wright
Here I am, yet another maven user whining about some new release not being correct in the maven repo. The appengine-api-1.0-labs directory has a 1.3.0 directory, but in it are jars named with 1.2.8:

Re: [appengine-java] Re: where I should put the Task Queue code?

2009-12-15 Thread Rusty Wright
the frustration im having!!! LOL On Dec 13, 9:42 pm, Rusty Wright rwright.li...@gmail.com wrote: What method gets called in your code when your app receives a GET request? Or a POST request? I think that's what you're looking for. Unfortunately the documentation for these frameworks sometimes tries

Re: [appengine-java] Lazy Loading, Spring MVC and PersistenceManager Closing

2009-12-14 Thread Rusty Wright
Something to investigate: http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/orm/jdo/support/OpenPersistenceManagerInViewFilter.html Shortened: http://xrl.in/408b Al wrote: Hi I just wanted to confirm that I am using the PersistenceManager in the correct manner... I

Re: [appengine-java] any header test for task queues (like X-AppEngine-Cron: true for crons)?

2009-12-14 Thread Rusty Wright
http://code.google.com/appengine/docs/java/taskqueue/overview.html Then search for the string x- And it documents the 3 headers. Prashant wrote: Hi, Requests from the Cron Service contains a HTTP header: X-AppEngine-Cron: true Is there any header added by Task Queue Service???

Re: [appengine-java] Re: eclipse plugin and maven?

2009-12-13 Thread Rusty Wright
Thanks; I looked at that as well. If I remember correctly it hasn't been updated since May of this year. Yoichi wrote: Google App Engine has a Maven Plugin project. http://code.google.com/p/maven-gae-plugin/ Unfortunately there is no manual and I can't figure out how to use it, what

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Rusty Wright
/hopefully reduce its startup time. Brian wrote: Before: / 200 9743ms 11464cpu_ms 264api_cpu_ms After: / 200 6894ms 7335cpu_ms 199api_cpu_ms Better, but not really good enough. On Dec 11, 4:22 pm, Rusty Wright rwright.li...@gmail.com wrote: http://googleappengine.blogspot.com/ See Dec 8

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-12 Thread Rusty Wright
rc3 runs on gae for me (finally). The error I was getting previously, NoClassDefFoundError: org/springframework/core/convert/support/DefaultConversionService was because I was using Spring Security 3.0.0.RC1; rc3 needs the latest Spring Security, 3.0.0.RC2. asianCoolz wrote: any update on

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-12 Thread Rusty Wright
I should say that Spring 3.0.0.RC3 needs the latest version of any and all Spring projects you may be including; it's not just Spring Security. Rusty Wright wrote: rc3 runs on gae for me (finally). The error I was getting previously, NoClassDefFoundError: org/springframework/core/convert

Re: [appengine-java] google guice @transactional at service layer

2009-12-12 Thread Rusty Wright
Very good question; I'd like to know the answer to that as well. I'm using Spring's @transaction stuff. I tweaked it slightly to make read-only and read/write annotations; @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Transactional( readOnly =

Re: [appengine-java] Re: eclipse plugin and maven?

2009-12-12 Thread Rusty Wright
Philippe Marschall wrote: On Dec 5, 7:45 pm, Rusty Wright rwright.li...@gmail.com wrote: Is it possible to use the GAE Eclipse plugin if you're using Maven? Maven uses a different directory structure so I'm guessing that's why the GAE plugin doesn't recognize the project as a GAE web app

Re: [appengine-java] Re: Logging in JUnit tests

2009-12-12 Thread Rusty Wright
I'm using slf4j and logback, and the slf4j adapters for jakarta commons logging etc., that re-route things through slf4j. Here's my maven dependency pom so you can see what I'm using. After that is my logback.xml file (everything goes to the console). If you're using maven, be sure and do a

Re: [appengine-java] Statistics and JUnit

2009-12-12 Thread Rusty Wright
I think the stats only work on google's servers, not your desktop (or test environment). David Fuelling wrote: I'm running some JUnit tests to excercise my data-layer classes using the TestEnvironment patter implementing ApiProxy.Environment (i.e., so I can test my code's datastore

Re: [appengine-java] Re: where I should put the Task Queue code?

2009-12-12 Thread Rusty Wright
The docs say The default queue will call the request handler at the URL /worker ... So it sounds to me that if you were, for example, using Spring MVC, and had a Spring controller with @Controller @RequestMapping(/worker) public final class WorkerController { @RequestMapping(method =

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Rusty Wright
JVM startup every warm up, are they? Seems they could load it into the JVM memory.. then page it out to disk or something. Somehow has to be a way to keep it scalable to many 1000s of users, while not taking 7 seconds to wake up On Dec 12, 8:20 pm, Rusty Wright rwright.li...@gmail.com wrote

Re: [appengine-java] Google App for Web Application

2009-12-11 Thread Rusty Wright
http://code.google.com/appengine/docs/ Click on Storing Data under Java in the left menu. Also click on Java in the Getting Started menu on the left. You don't create the table; there are no tables, although JPA will pretend that there are. Just start storing data. Watch the videos from the

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-11 Thread Rusty Wright
http://googleappengine.blogspot.com/ See Dec 8 entry, Request performance in Java. Brian wrote: I have 2 actions and something like 12 java classes total.. so don't think that is my problem. Nicolas: What is this pre-compilation you speak of? Anything under 5 would be good enough for

Re: [appengine-java] FetchType.Lazy produces JDODetachedFieldAccessException while FetchType.EAGER does not...

2009-12-10 Thread Rusty Wright
Are you mixing ORMs? @OneToOne is JPA and @Embedded is JDO? Perhaps you can combine them; if so, I didn't know that. Beyond that, try adding it to the default fetch group; @Persistent(embedded = true, defaultFetchGroup = true) public SetString getWords() David Fuelling wrote: I

Re: [appengine-java] Re: FinalizableReferenceQueue error

2009-12-10 Thread Rusty Wright
Are you sure the slowness is caused by whatever is generating this exception? fhtino wrote: Vince, ok, it's harmless, but the response is very slow. 5000ms or more instead of 200ms. In my case it's a problem. Any idea/solution? fabrizio On Dec 5, 7:07 pm, Vince Bonfanti

Re: [appengine-java] Re: eclipse plugin and maven?

2009-12-10 Thread Rusty Wright
, 7:45 pm, Rusty Wright rwright.li...@gmail.com wrote: Is it possible to use the GAE Eclipse plugin if you're using Maven? Maven uses a different directory structure so I'm guessing that's why the GAE plugin doesn't recognize the project as a GAE web app. -- You received this message

Re: [appengine-java] Re: Spring + Tiles : java.lang.NoClassDefFoundError: javax/el/ELContext

2009-12-08 Thread Rusty Wright
: loaded (conf ok) 7. I 12-07 05:33PM 31.005 javax.servlet.ServletContext log: Initializing Spring FrameworkServlet 'mobisociety' On Dec 6, 7:53 am, Rusty Wright rwright.li...@gmail.com wrote: What do you mean by no log? I often need to change the console web page's

Re: [appengine-java] possible to split web.xml ?

2009-12-08 Thread Rusty Wright
I'll bet you could if you were using maven. It has this thing where it filters the configuration files (e.g., web.xml) before it puts them in the war file. Read all about it in the free book, Maven: The Definitive Guide, http://www.sonatype.com/documentation/books Prashant wrote: Hi, I

[appengine-java] FinalizableReferenceQueue error

2009-12-05 Thread Rusty Wright
I always get this exception when my app does its first datastore query. I think it's causing me other problems. Is there anything I can do to fix this? com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue init: Failed to start reference finalizer thread. Reference

Re: [appengine-java] FinalizableReferenceQueue error

2009-12-05 Thread Rusty Wright
for FinalizableReferenceQueue). Vince On Sat, Dec 5, 2009 at 1:00 PM, Rusty Wright rwright.li...@gmail.com mailto:rwright.li...@gmail.com wrote: I always get this exception when my app does its first datastore query. I think it's causing me other problems. Is there anything I can do to fix

[appengine-java] eclipse plugin and maven?

2009-12-05 Thread Rusty Wright
Is it possible to use the GAE Eclipse plugin if you're using Maven? Maven uses a different directory structure so I'm guessing that's why the GAE plugin doesn't recognize the project as a GAE web app. -- You received this message because you are subscribed to the Google Groups Google App

Re: [appengine-java] Re: Spring + Tiles : java.lang.NoClassDefFoundError: javax/el/ELContext

2009-12-05 Thread Rusty Wright
What do you mean by no log? I often need to change the console web page's filter level to debug to see some error messages. Wong wrote: Points to add I'm using Spring 3.0.0 RC1 !-- Resolves logical view names returned by Controllers to Tiles; a view name to resolve is

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-01 Thread Rusty Wright
Is there anything helpful in the error log? You can view it on the dashboard; https://appengine.google.com/ Rafael Reuber wrote: Hi Toby, The error only happens when I try to access the application through the GAE. It's funny, In my computer it work! The GAE throws erro, when I

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

2009-11-29 Thread Rusty Wright
Mine are hand written. asianCoolz wrote: may i know are you generating the domain jdo pojo or handwritten? -- 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

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

2009-11-27 Thread Rusty Wright
What happens if instead you do response.sendRedirect(response.encodeRedirectURL(blah.jsp)); Don wrote: Hi, Trivial question for the gurus here, if i do: response.redirect(bla.jsp) I get WARNING: Can not serve /bla.jsp directly. You need to include it in static-files in your

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

2009-11-27 Thread Rusty Wright
Here's what I use in my index.jsp to redirect to a url mapped to an action bean/controller; i.e., I use the jstl redirect tag instead of response.redirect(): ?xml version=1.0 encoding=ISO-8859-1 ? %-- isElIgnored=false needed for GAE --% %@ page language=java

Re: [appengine-java] Re: problem with using session.getAttribute()

2009-11-24 Thread Rusty Wright
Did you enable sessions? http://code.google.com/appengine/docs/java/config/appconfig.html See the section near the end, Enabling Sessions. Steph wrote: I also have the same issue when retrieving session objects from a servlet filter, and running in the local sandbox. On Nov 21, 10:11 pm,

Re: Solved : Re: [appengine-java] Re: XML to Object libraries and Vice Versa

2009-11-24 Thread Rusty Wright
classes, but on GAE server you need it. So download those jars and keep them in your lib folder. I dont miss JAXB any more :) Thanks, Ravi. On Sun, Nov 22, 2009 at 8:13 PM, Rusty Wright rwright.li...@gmail.com mailto:rwright.li...@gmail.com wrote: Here are some bookmarks I

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

2009-11-24 Thread Rusty Wright
The filesystem is read only on app engine; would trying to create a file, in WEB-INF for example, work? I'm wondering if there are corner cases I'm not thinking of where that might fail and falsely report that you're on app engine; for example, if you were doing integration tests under Hudson.

Re: [appengine-java] Ancestor queries in JPQL? / Getting Key of parameter value does not have a parent

2009-11-23 Thread Rusty Wright
, and the JDO StoreCallback interface, which I didn't know about. Ikai L (Google) wrote: I'm happy to add this to the official docs if it isn't clear. I think this makes sense under the JPA section or the section about ancestor queries. On Sun, Nov 22, 2009 at 11:24 PM, Rusty Wright rwright.li

Re: [appengine-java] JDO x JPA

2009-11-23 Thread Rusty Wright
If you look at Max's examples and test code he does everything in both JDO and JPA, so it seems to me that it's a coin toss. I went with JDO because I heard that it's not as strongly oriented to relational sql databases. Rafael Reuber wrote: Hi there, What's the better suport for

Re: [appengine-java] Help:I can't make a object persistent completely.

2009-11-23 Thread Rusty Wright
Try @Persistent(defaultFetchGroup = true) on anything that's not listed in the Core Value Types table on http://code.google.com/appengine/docs/java/datastore/dataclasses.html Jolam wrote: This is the object: ___ @PersistenceCapable(identityType =

Re: [appengine-java] Re: A web service with security (java)

2009-11-22 Thread Rusty Wright
There's also Spring Security (aka Acegi). Andrey wrote: Now I can (partly) answer the question by myself :) 1) In the simplest situation it's easy to develop a stateless web service (the userName and userPassword can be passed straight into the request url). 2) To simplify the

Re: [appengine-java] IOException on uploading app

2009-11-19 Thread Rusty Wright
I had a problem with newlines inside things in the web.xml. For example, this wouldn't work: display-name sample006-gae /display-name It needed to be display-namesample006-gae/display-name david jones wrote: heya, i'm quite (well, very) new to the google app engine

Re: [appengine-java] Re: case sensitivity

2009-11-17 Thread Rusty Wright
Resistance is futile. Kris wrote: Thanks Rusty, I've already searched there and have seen the suggestions. I have been having a hard time believing that there is no way to do this when using google app engine but am more or less convinced at this point. On Nov 16, 6:06 pm, Rusty Wright

Re: [appengine-java] Relationship Problems...

2009-11-17 Thread Rusty Wright
You could have a class UserProject class UserProject { private Key userKey; private Key projectKey; } Then make User.projects a ListProject and fill it with their projects right after you fetch the User (and coat it with Collections.unmodifiableList() as a reminder that it should be

Re: [appengine-java] Re: Concurrency In Transaction

2009-11-17 Thread Rusty Wright
Is there some way to pause before retrying the database transaction? If you don't, then it seems to me that the processes that are banging into each other are going to keep failing. I'd like to add a pause for a random amount of time in the catch block. leszek wrote:

Re: [appengine-java] Re: Concurrency In Transaction

2009-11-17 Thread Rusty Wright
: {}, Integer.valueOf(retryCount), ExceptionUtils.getFullStackTrace(exception)); } throw (exception); } ted stockwell wrote: On Nov 17, 2:59 pm, Rusty Wright rwright.li...@gmail.com wrote: Is there some way to pause before retrying

Re: [appengine-java] How to resize images with high quality?

2009-11-17 Thread Rusty Wright
Can you convert its format with the images service? Gif is 8 bits per pixel so if it's resizing it in that format I can understand why it would end up ugly (when it's merging pixels it's choosing the result color from the existing limited 256 color palette). If you can convert its format, try

Re: [appengine-java] Re: Concurrency In Transaction

2009-11-17 Thread Rusty Wright
I think my try/catch is missing a catch at the end: catch (final Throwable ex) { exception = ex; break; // fail } Rusty Wright wrote: Ah, thanks. So if I knew how many servers my cloud is made of then I should use that number for my

Re: [appengine-java] case sensitivity

2009-11-16 Thread Rusty Wright
The recommended approach is to store the userName in all lower case, as an additional field/column, and then do the toLowerCase on the incoming parameter user name when you do the query and use that field/column that was stored in lower case. Kris wrote: Is there any way to perform a JDO

Re: [appengine-java] Re: case sensitivity

2009-11-16 Thread Rusty Wright
to search for. On Nov 16, 11:36 am, Rusty Wright rwright.li...@gmail.com wrote: The recommended approach is to store the userName in all lower case, as an additional field/column, and then do the toLowerCase on the incoming parameter user name when you do the query and use that field/column

Re: [appengine-java] JDO not saved (commit) when using spring @ModelAttribute

2009-11-16 Thread Rusty Wright
Forgot to add; here's how I used it in my web.xml: filter filter-name OpenPersistenceManagerInViewFilter /filter-name filter-class org.springframework.orm.jdo.support.OpenPersistenceManagerInViewFilter /filter-class /filter

Re: [appengine-java] Re: A newbie question about logging using java.util.logging

2009-11-13 Thread Rusty Wright
=INFO That is - I changed the default logging level to FINEST. I dont like this solution - it's not a clean solution and does not remind me the log4j usage I'm used to. I would still appreciate if someone can help me fully understand this. On Nov 13, 1:54 am, Rusty Wright rwright.li...@gmail.com

[appengine-java] Re: Jdo: detaching objects vs. merging transient objects

2009-11-10 Thread Rusty Wright
I'm finding that it's nearly impossible to work with the detaching objects style. I can't tell for sure what's happening other than when I add a PersistenceCapable object to another PersistenceCapable object's collection (i.e., the first one will be the child of the second one) that I get an

[appengine-java] Re: Struts 2.1.8 access denied exception

2009-11-10 Thread Rusty Wright
Could be this http://groups.google.com/group/google-appengine-java/search?group=google-appengine-javaq=strutsqt_g=Search+this+group Eric Martin wrote: OS: Windows XP IDE: Eclipse w/GAE plugin I'm playing around with GAE and wanted to test it out with Struts2. I've followed the various

[appengine-java] Re: Maven

2009-11-10 Thread Rusty Wright
I use the following pom to make a dependency pom. After you create a project with nothing but this pom.xml in it you then do mvn install. Then you can use it in your main pom with: dependency groupIdorg.objecteffects/groupId

[appengine-java] Re: Delete without getting, using JDO

2009-11-07 Thread Rusty Wright
Have a look at the Query class; you can use the id/key in the query. http://xrl.in/3m1e http://xrl.in/3m1f Peter Recore wrote: Is there a way to delete an entity without having to fetch it from the datastore first? Ideally, there would be a deleteObjectById analogue to getObjectById on

[appengine-java] Re: Relation Index Entities: Best practice for getting the keys of the parent

2009-11-05 Thread Rusty Wright
I'm a newbie so I don't know if this would be a good way to do it, but what about using the extension that sets the parent's key in a field in the child: @Persistent(defaultFetchGroup = true) @Extension(vendorName = datanucleus, key = gae.parent-pk, value = true) private Key

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-05 Thread Rusty Wright
at 1:09 AM, Rusty Wright rwright.li...@gmail.com wrote: I think this is an important point. The light bulb went off over my head after watching this video. This is what he calls a property list. For me it was also a good example of how to think about denormalizing, which comes up repeatedly

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-05 Thread Rusty Wright
loads, not transactions from a UI. On Nov 5, 2:19 am, Rusty Wright rwright.li...@gmail.com wrote: I'm of the school of thought that says natural keys are never a good idea. Whatever natural key you're thinking of using, just make it a property on the class. One of the things they keep

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-04 Thread Rusty Wright
Thinking out loud here: When you use that encoded string format you can use it wherever you'd use Key. The apparent advantage of using the encoded string format is that your dto isn't exposing GAE's Key. With the encoded string your service layer can be oblivious about GAE's Key, without

[appengine-java] Re: Issue with com.google.appengine.api.datastore.Text?

2009-11-03 Thread Rusty Wright
wrote: Thanks, It is working. Is this an issue? Or is it specific to Text On Nov 3, 11:00 am, Rusty Wright rwright.li...@gmail.com wrote: What happens if you change @Persistent to @Persistent(defaultFetchGroup = true) ? Tito George wrote: Enviornment: Local I have a Text field in one

[appengine-java] Re: using maven with jpa

2009-11-03 Thread Rusty Wright
I don't know if this will help (maybe it's the datanucleus-core dependency with a scope of runtime), but here's my pom for jdo. This is a dependency pom; it encapsulates the dependencies for app engine datanucleus jdo. Put it in a directory by itself, create a src dir (not sure if that part

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-03 Thread Rusty Wright
I don't know if this will help, but I finally figured out how to do parent queries using the parent's primary key. At the moment I don't see what advantage there is if you're storing a reference to the parent object in the child and using mappedBy in the parent, but here's what I have, in

[appengine-java] Re: managing root / parent objects

2009-11-03 Thread Rusty Wright
datastore with cloned objects. - Jason On Sat, Oct 31, 2009 at 4:21 PM, Rusty Wright rwright.li...@gmail.com mailto:rwright.li...@gmail.com wrote: Yes, that's the point. My thinking is that (correct me if I'm wrong) if I store the object's key, when I fetch the outer

[appengine-java] Re: NullPointerException when adding relationship keys

2009-11-02 Thread Rusty Wright
, 9:11 pm, Rusty Wright rwright.li...@gmail.com wrote: Linkstore doesn't have a no-arg constructor does it? If so, then selectedTags could be null. You could change its declaration to @Persistent(defaultFetchGroup = true) private SetKey selectedTags = new HashSetKey(0

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2009-11-02 Thread Rusty Wright
That is very nice. This isn't meant to rain on Twig's parade, but if you're going the JDO route you can also use generics to simplify things via a generic dao; abstract class AbstractJdoDaoE extends JdoDaoSupport { protected final transient Logger log = LoggerFactory.getLogger(getClass());

[appengine-java] Re: struts 2.1.8 met AccessControlException with app engine's local server

2009-11-02 Thread Rusty Wright
With Google App Engine your app can't write to the disk (by using files), it can only write to the Google data store. You can read files that were in your war, but not write anything. Perhaps Struts was trying to do some disk writing? With Stripes (a superior alternative to Struts in my

[appengine-java] Re: double your pleasure, double your fun

2009-11-02 Thread Rusty Wright
, persistedPlatformPc.getWaitlistEntries().size()); This seems a little strange to me because I could swear that with Hibernate the original object was updated. But maybe I'm misremembering that. Rusty Wright wrote: with Wrigley's Doublemint gum. In my case we're halving it at minimum. I added mappedBy to my

[appengine-java] Re: Error while uploading app to GAE

2009-11-02 Thread Rusty Wright
I don't know if this would be the problem but your dtd says 2.3 and 2_3 while the web-app tag says version=2.5. Mine looks like this: ?xml version=1.0 encoding=ISO-8859-1? web-app id=WebApp_ID version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;

  1   2   >