Re: [appengine-java] Good wurfl example for mobile detection on app engine?

2010-10-05 Thread Jean-Claude Moissinac
It works
I have an application which uses WURFL
I have to put a guide online
But, in the meantime, I can confirm a fact: WURFL is  a good way to do
mobile detection in GAE

--
Jean-Claude Moissinac


On Tue, Oct 5, 2010 at 6:52 AM, Gal Dolber  wrote:
> Hi, I used it long time ago, but not in appengine.
> You need to import the database and tweak a bit the java api.
> But it should work ok
> Best
>
> On Mon, Oct 4, 2010 at 7:16 PM, Shaun  wrote:
>>
>> Does any know of a good example and/or library to do WURFL mobile
>> detection on App Engine or is there a better way to do it? Based on
>> the users device I would like to serve a different interface
>>
>> Thanks!
>>
>> Shaun
>>
>> --
>> 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 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.
>>
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
> --
> 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 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.
>

-- 
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 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] Is DatastoreService thread safe ?

2010-10-05 Thread Maxim Veksler
Hi,

Can I do something like this:

public class LowLevelDataStore {
private static DatastoreService datastore;
 private static FetchOptions LIMIT_1 = FetchOptions.Builder.withLimit(1);
static {
 datastore = DatastoreServiceFactory.getDatastoreService(withReadPolicy(new
ReadPolicy(Consistency.EVENTUAL)));
}

public static Iterable getFOO(...) {
Query query... =
 new Query("...")
.addFilter("...", FilterOperator.EQUAL, ...)
 .addSort("...", SortDirection.ASCENDING);
 return datastore.prepare(query...).asIterable();
 }
}

Assuming I won't be using transactions ?
Assuming I will be using transactions?

Couldn't find any clues in the javadoc / googling does not give meaningful
results as well.


Thank you,
Maxim.

-- 
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 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.



Re: [appengine-java] Re: Tell data store not to selected index properties on bulkupload

2010-10-05 Thread Maxim Veksler
Hi Peter,

I used bulkloader.yaml. I can't find the non indexing configuration in the
docs http://code.google.com/appengine/docs/python/tools/uploadingdata.html

Should
I just go back and user the "deprecated" method (python configuration?).

What about the existing data? Should I reupload the same entries to after I
configure no indexing to make the index go poof ?


Thank you for the help,
Maxim.

On Mon, Oct 4, 2010 at 10:03 PM, Peter Ondruska wrote:

> Just define entity properties with indexed=False, e.g.
>
> class Authorization(db.Model):
>  domain = db.StringProperty(required=True)
>  code = db.StringProperty(required=True, indexed=False)   # 
>  update = db.DateTimeProperty(required=True, auto_now_add=True)
>
> and then bulkload
>
> On Oct 4, 6:26 pm, Maxim Veksler  wrote:
> > Hello,
> >
> > I would like to disable indexing for properties I know I won't be using
> for
> > query filtering to save storage space.
> >
> > I have used bulkuploader to push ~500mb of data into the datastore. These
> > Entities contain lot's of properties which won't be used for filtering,
> for
> > ex. "CountryName"
> > I would like to exclude these properties from the indexing, and purge the
> > existing index.
> >
> > Not sure about how datastore works, so I'll ask all my questions at once:
> >
> > Can I disable indexing for properties or does single property indexes
> always
> > created without me being able to control it?
> > Can tell app engine to truncate existing index and not recreate it (to
> > reclaim the disk space) ?
> > Can I retrospectively upload an index.yaml file (I did not had this file
> > before) to delete the unneeded indexes created?
> > Will this index.yaml configuration will take effect on my next bulkupload
> > operation as well?
> >
> > Thanks for helping,
> > Maxim.
> >
> > [1]
> http://code.google.com/appengine/docs/java/configyaml/indexconfig.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
> google-appengine-j...@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.
>
>

-- 
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 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: Is DatastoreService thread safe ?

2010-10-05 Thread Didier Durand
Hello,

See 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b

and 
http://groups.google.com/group/google-appengine-java/tree/browse_frm/month/2010-04/8de23dea7100c586

didier

On Oct 5, 2:38 pm, Maxim Veksler  wrote:
> Hi,
>
> Can I do something like this:
>
> public class LowLevelDataStore {
> private static DatastoreService datastore;
>  private static FetchOptions LIMIT_1 = FetchOptions.Builder.withLimit(1);
> static {
>  datastore = DatastoreServiceFactory.getDatastoreService(withReadPolicy(new
> ReadPolicy(Consistency.EVENTUAL)));
>
> }
>
> public static Iterable getFOO(...) {
> Query query... =
>  new Query("...")
> .addFilter("...", FilterOperator.EQUAL, ...)
>  .addSort("...", SortDirection.ASCENDING);
>  return datastore.prepare(query...).asIterable();
>  }
>
> }
>
> Assuming I won't be using transactions ?
> Assuming I will be using transactions?
>
> Couldn't find any clues in the javadoc / googling does not give meaningful
> results as well.
>
> Thank you,
> Maxim.

-- 
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 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.



Re: [appengine-java] Re: Is DatastoreService thread safe ?

2010-10-05 Thread Maxim Veksler
Thank you.

On Tue, Oct 5, 2010 at 3:55 PM, Didier Durand wrote:

> Hello,
>
> See
> http://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b
>
> and
> http://groups.google.com/group/google-appengine-java/tree/browse_frm/month/2010-04/8de23dea7100c586
>
> didier
>
> On Oct 5, 2:38 pm, Maxim Veksler  wrote:
> > Hi,
> >
> > Can I do something like this:
> >
> > public class LowLevelDataStore {
> > private static DatastoreService datastore;
> >  private static FetchOptions LIMIT_1 = FetchOptions.Builder.withLimit(1);
> > static {
> >  datastore =
> DatastoreServiceFactory.getDatastoreService(withReadPolicy(new
> > ReadPolicy(Consistency.EVENTUAL)));
> >
> > }
> >
> > public static Iterable getFOO(...) {
> > Query query... =
> >  new Query("...")
> > .addFilter("...", FilterOperator.EQUAL, ...)
> >  .addSort("...", SortDirection.ASCENDING);
> >  return datastore.prepare(query...).asIterable();
> >  }
> >
> > }
> >
> > Assuming I won't be using transactions ?
> > Assuming I will be using transactions?
> >
> > Couldn't find any clues in the javadoc / googling does not give
> meaningful
> > results as well.
> >
> > Thank you,
> > Maxim.
>
> --
> 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 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.
>
>

-- 
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 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.



Re: [appengine-java] Re: Tell data store not to selected index properties on bulkupload

2010-10-05 Thread John Patterson


On 5 Oct 2010, at 19:44, Maxim Veksler wrote:


Hi Peter,

I used bulkloader.yaml. I can't find the non indexing configuration  
in the docs http://code.google.com/appengine/docs/python/tools/uploadingdata.html


Should I just go back and user the "deprecated" method (python  
configuration?).


What about the existing data? Should I reupload the same entries to  
after I configure no indexing to make the index go poof ?


The implicit single property indexes can only be added or removed by  
re-putting the entities replacing the existing ones.  Keep in mind  
that any property used in a composite index must also be indexed  
(single property index).  Existing composite indexes will stay in the  
datastore until you run "appcfg.py vacuum_indexes".  This features is  
not available in the Java SDK appcfg.sh script. 
 


--
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 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.



Re: [appengine-java] User Personal page

2010-10-05 Thread Ikai Lan (Google)
You'll want to read  the documentation here:

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

Yes, you can use a session, but it's up to you to learn about the different
options available. A good resource for learning how to write code for App
Engine is to browse the projects on our Open Source page:

http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Mon, Oct 4, 2010 at 9:12 AM, x_maras  wrote:

> Hi,
>
> I'm new to the cloud and not an experienced developer.
> For a course I have to make a web application using the GAE and I will also
> use JAVA for it.
>
> I did a few tutorials but I still have questions that don't let me start
> with my project.
>
> In my application I want people to be able to login (I have figured out how
> to do it) and I also want to have different data presentation depending to
> each user (this I don't know how to do it)
> I have experience of php and mysql but it is my first time that I 'm
> working with Datastore.
>
> So I would like to know what can separate each user connected with a google
> account.
> Could I have something like the PHP session for checking if a user is
> logged in?
> How I could also make relationship in datastore objects like relating 2 sql
> tables for example.
>
> I would be grateful if someone could give me this information or provide me
> some links where I could find answers.
>
>  --
> 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 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.
>

-- 
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 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.



Re: [appengine-java] Re: Select query using LIKE

2010-10-05 Thread Ikai Lan (Google)
startsWith() translates to a GREATER_THAN_OR_EQUAL query underneath the
hood. BigTable allows for range scans, so this ends up being translated to
an index scan for all properties with a value >= the target.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Mon, Oct 4, 2010 at 2:58 PM, effpe  wrote:

> This test worked for me
>
> Query query = pm.newQuery(Employee.class);
> query.setFilter("lastName.startsWith(lastNameParam)");
> query.setOrdering("lastName, firstName, hireDate desc");
> query.declareParameters("String lastNameParam");
> List results = (List) query.execute(lastname);
> if (results.size()>0) {
>  for (Employee e : results) { //e
> }
>
> the .startsWith(...) was in effect the same as .matches(...) because I was
> NOT allowed to have wildchars as a prefix anyway
>
>
>  --
> 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 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.
>

-- 
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 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.



Re: [appengine-java] Will I be able to get more apps if needed?

2010-10-05 Thread Ikai Lan (Google)
Yes. When you think you need them, please fill out the Billing Support form:

http://code.google.com/support/bin/request.py?contact_type=AppEngineBillingSupport

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Mon, Oct 4, 2010 at 8:52 PM, Gal Dolber  wrote:

>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>  --
> 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 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.
>

-- 
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 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: Getting a LOT of mysterious 500 responses

2010-10-05 Thread tomkarren
We have been seeing a lot of this in our app as well.  Very
frustrating.

On Oct 4, 10:40 pm, Keith Lea  wrote:
> Hi, on our tiny little web servicehttp://findbugs-cloud.appspot.com,
> we're getting a whole lot of 500 responses, with a mysterious message.
> It started a few months ago and has slowly but steadily gotten worse
> since. Since a 500 response makes our continuous build fail, it's
> getting irritating...
>
> Request was aborted after waiting too long to attempt to service your
> request. This may happen sporadically when the App Engine serving
> cluster is under unexpectedly high or uneven load. If you see this
> message frequently, please contact the App Engine team.
>
> Also irritating is that these only show up as "warnings" so sometimes I
> don't even notice they're happening.
>
> Any idea what's going on? Are we just on a bad cluster? Can we get
> moved somehow?

-- 
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 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] Stranger behaviour with query using AND

2010-10-05 Thread roberto_sc
The following query:

Query jquery = em.createQuery("SELECT o FROM Player o WHERE o.name
= \"Zarolho\" AND o.age = 33");

returns 1 result for me.

But doing this:
Query jquery = em.createQuery("SELECT o FROM Player o WHERE o.name = ?1
AND o.age = ?2");

jquery.setParameter(2, 33);
jquery.setParameter(1, "Zarolho");

returns nothing. And more strangely:

Query jquery = em.createQuery("SELECT o FROM Player o WHERE o.age = ?2
AND o.name = ?1");

jquery.setParameter(2, 33);
jquery.setParameter(1, "Zarolho");

returns the instance!

I just switch the positions for the fields and it works! Same string,
same code, only the position has changed. Please help, I'm stucked on
this for a long time.

-- 
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 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] Reporting error 204

2010-10-05 Thread Domas Savickas
Hello,
I'm running application on AppEngine and I get following error message
in my log on every request:

A serious problem was encountered with the process that handled this
request, causing it to exit. This is likely to cause a new process to
be used for the next request to your application. If
you see this message frequently, you should contact the App Engine
team. (Error code 204)

What should I do?

Domas Savickas

-- 
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 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] Using OneToOne relationship

2010-10-05 Thread Cesar
Usuario.class
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Usuario {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key usuarioId;
@Persistent
private String usuario;
@Persistent
private String clave;
@Persistent
private Persona persona;
//..
}

Persona.class
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Persona {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long personaId;
@Persistent
private String nombre;
@Persistent
private String apellido;
@Persistent
private String direccion;
@Persistent
private String correo;
@Persistent
private String telefono;
@Persistent
private String foto;
@Persistent(mappedBy = "persona")
private Usuario usuario;
 //...
}

When I have to save I don't Know which one go first??
That is one problem


I managed to save , First Persona then Usuario then, but when I do a
query to Usuario does not bring the Persona object is within


Please someone can help me??

-- 
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 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.



Re: [appengine-java] Re: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-05 Thread nico
swapplace isn't a good example, it is too simple
NM

On Mon, Oct 4, 2010 at 5:19 AM, Ian Marshall wrote:

> Mmmm: my link has been Googlised. If interested, try
>
>  http://www.SwapPlace.co.uk
>
> instead.
>
>
> On Oct 4, 9:11 am, Ian Marshall  wrote:
> > I disagree. I use Wicket and JDO on GAE/J; it works fine for me,
> > including no serialisation problems.
> >
> > As a working example, I am satisfied with my Wicket/JDO/GAE/J proof-of-
> > concept web application at
> >
> >  www.SwapPlace.co.uk.
> >
> > I am using the lessons learnt for my commercial web site development,
> > which is coming along nicely too.
> >
> > On Oct 3, 9:43 pm, nico  wrote:
> >
> > > Hey! don't use wicket + GAE!!! you will have lot of serialization
> problems
> > > and your project will FAIL! you will lose time and money!
> > > bug:http://code.google.com/p/googleappengine/issues/detail?id=2500
> >
> > > Bye!
> > > NM
>
> --
> 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 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.
>
>


-- 
Nicolás Meléndez
Java Software Developer

Cell: +54 9 1157535454

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez

-- 
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 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: Good wurfl example for mobile detection on app engine?

2010-10-05 Thread Shaun
Excellent thanks for the help!

On Oct 5, 1:09 am, Jean-Claude Moissinac  wrote:
> It works
> I have an application which uses WURFL
> I have to put a guide online
> But, in the meantime, I can confirm a fact: WURFL is  a good way to do
> mobile detection in GAE
>
> --
> Jean-Claude Moissinac
>
>
>
> On Tue, Oct 5, 2010 at 6:52 AM, Gal Dolber  wrote:
> > Hi, I used it long time ago, but not in appengine.
> > You need to import the database and tweak a bit the java api.
> > But it should work ok
> > Best
>
> > On Mon, Oct 4, 2010 at 7:16 PM,Shaun wrote:
>
> >> Does any know of a good example and/or library to do WURFL mobile
> >> detection on App Engine or is there a better way to do it? Based on
> >> the users device I would like to serve a different interface
>
> >> Thanks!
>
> >>Shaun
>
> >> --
> >> 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 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.
>
> > --
> > Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> >http://code.google.com/p/guit/
>
> > --
> > 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 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.

-- 
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 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.



Re: [appengine-java] Re: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-05 Thread John Patterson
Wicket works fine on GAE as long as you make sure your page instances  
do not contain non-Serializable instances - using detachable models  
follows this rule.


Here is this base class I use to set up a Wicket / Engine App

public abstract class EngineApplication extends WebApplication
{
@Override
protected void init()
{
		getResourceSettings().setResourceWatcher(new  
OnDemandModificationWatcher());

super.init();
}

protected ISessionStore newSessionStore()
{
return new HttpSessionStore(this);
}

@Override
protected WebRequest newWebRequest(HttpServletRequest servletRequest)
{
if (isDevelopmentEnvironment())
{
			((OnDemandModificationWatcher)  
getResourceSettings().getResourceWatcher(true)).start();

}
return super.newWebRequest(servletRequest);
}

public static boolean isDevelopmentEnvironment()
{   
		return  
System 
.getProperty 
("com.google.appengine.runtime.environment").equals("Development");

}

@Override
public String getConfigurationType()
{
if (isDevelopmentEnvironment())
{
return "development";
}
else
{
return "deployment";
}
}

}


On 6 Oct 2010, at 08:02, nico wrote:



swapplace isn't a good example, it is too simple
NM

On Mon, Oct 4, 2010 at 5:19 AM, Ian Marshall  
 wrote:

Mmmm: my link has been Googlised. If interested, try

 http://www.SwapPlace.co.uk

instead.


On Oct 4, 9:11 am, Ian Marshall  wrote:
> I disagree. I use Wicket and JDO on GAE/J; it works fine for me,
> including no serialisation problems.
>
> As a working example, I am satisfied with my Wicket/JDO/GAE/J  
proof-of-

> concept web application at
>
>  www.SwapPlace.co.uk.
>
> I am using the lessons learnt for my commercial web site  
development,

> which is coming along nicely too.
>
> On Oct 3, 9:43 pm, nico  wrote:
>
> > Hey! don't use wicket + GAE!!! you will have lot of  
serialization problems

> > and your project will FAIL! you will lose time and money!
> > bug:http://code.google.com/p/googleappengine/issues/detail?id=2500
>
> > Bye!
> > NM

--
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 
.





--
Nicolás Meléndez
Java Software Developer

Cell: +54 9 1157535454

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for   
housing, sale, services, local community, curses,jobs, and events -  
GAE/J + Wicket + YUI)


1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J  
+ Applets + Wicket)


2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez

--
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 
.


--
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 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.