[appengine-java] Re: Turning off logging for spring security when running in App Engine java

2012-01-28 Thread objectuser
What logging API does Spring use? I'm wondering if you just need to update your logging.properties with: .level=WARNING Or whatever is appropriate. You have to use Java logging to fine tune logging. More here http://code.google.com/appengine/docs/java/runtime.html#Logging. -- You

[appengine-java] Re: When will https support will be available for custom domains?

2012-01-28 Thread objectuser
There are some other threads that touch on this, both in this group and the Google App Engine group. You might find more info by searching here and there. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on

[appengine-java] Re: Learning JDO for AppEngine

2012-01-08 Thread objectuser
Are you wanting to learn JDO because you're interested in JDO in particular, or are you wanting to learn it just for GAE? If the latter, I'm wondering if you might be interested in other APIs that might be a bit better suited for GAE. -- You received this message because you are subscribed

[appengine-java] My Project: Forum Hosting

2012-01-05 Thread objectuser
My project is a forum hosting service. I have it up in demo mode at: http://support.fuzedtest.appspot.com/ The demo is limited by the free quota, but you can still create and manage your own forum, register for a forum, etc. This won't be the final location: it will be abandoned once the

Re: [appengine-java] My Project: Forum Hosting

2012-01-05 Thread objectuser
I think I'm used to strong passwords. I should probably loosen that up a bit. :) Thanks for the feedback. I used Shiro because it's pretty well documented and flexible. Spring has Spring Security, but there's no default equivalent for Guice. Also Shiro seems more comprehensive than Spring

[appengine-java] Re: Spring AOP behaving inconsistently on Google infrastructure.

2011-12-08 Thread objectuser
That's pretty crazy. Do you know what you're using for AOP? I'm using Guice, which using AOP alliance stuff, and it works consistently. Does Spring use AspectJ? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this

[appengine-java] Re: Spring AOP behaving inconsistently on Google infrastructure.

2011-12-08 Thread objectuser
Can you make it only use the AOP alliance libs? I am totally guessing, so maybe that's pointless. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?

2011-08-22 Thread objectuser
I decided to give Objectify a try because I think any significant reduction in startup time could be quite valuable. It appears my startup time is now around 8s. So maybe 2s less, but I don't have any objective data. It's certainly not around 2s total. Alas. On the plus side, Objectify

[appengine-java] Does the SDK in WEB-INF/lib Get Deployed?

2011-08-17 Thread objectuser
I'm wondering if JARs like appengine-api-1.0-sdk-1.5.2.jar in WEB-INF/lib get uploaded when I deploy from Eclipse. Are these items needed in the Google environment? I'm asking because I'm wondering if removing (if viable) would reduce my startup time, which seems to come in anywhere from 10s

Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?

2011-08-17 Thread objectuser
I'm just generally trying to look to see if there's anything I can trim. My app seems to need to spin up a new instance a lot (the instance seems to stay up for only a minute or so if I'm not using it), and so there are a lot of 10s delays for requests. I don't really have a ton of libraries,

Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?

2011-08-17 Thread objectuser
I do use JDO (not JPA) and Guice (and not Spring). I also use GWT, GIN and Shiro. So I have maybe 5 primary libraries, along with the SDK. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

Re: [appengine-java] Eclipse GAE with OSX Lion

2011-08-16 Thread objectuser
I've not had any problems with Lion either. Working fine. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/lIAdDf8NweQJ. To post to

[appengine-java] Re: secure appengine urls with security constraints

2011-08-15 Thread objectuser
To require https, you can do this: security-constraint web-resource-collection url-pattern/mobile/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint

Re: [appengine-java] GWT + GAE Deployment

2011-08-03 Thread objectuser
What settings are those? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/1m7bPo0q3ysJ. To post to this group, send email to

[appengine-java] Re: HashMap within an Embedded Class

2011-07-17 Thread objectuser
I think this is pretty much busted. Within top-level entity, it's fine. In and embedded entity, I get the error in the OP. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

[appengine-java] Re: HashMap within an Embedded Class

2011-07-16 Thread objectuser
I'm still trying to figure it out, but I appear to have the same problem. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

Re: [appengine-java] Apache Shiro on Google App Engine

2011-07-15 Thread objectuser
As far as I know, there's nothing that prevents the conditionals throughout the code. Fortunately, with GWT, you're basically coding in Java, so all of the patterns you're used to for reducing the number of conditionals in your code should apply in the same way (basically, polymorphism through

Re: [appengine-java] Apache Shiro on Google App Engine

2011-07-14 Thread objectuser
Well, on the client (browser), there's no security at all. Security (that is, protecting your site from the user), is impossible. If you just mean disabling buttons or changing parts of the page, then you can just pass back permissions to do that. It doesn't guarantee anything, of course.

[appengine-java] Apache Shiro on Google App Engine

2011-07-12 Thread objectuser
If anyone is interested, I've posted a short guide to using Apache Shiro on Google App Engine: http://objectuser.wordpress.com/2011/06/30/apache-shiro-on-google-app-engine/ It focuses on my current stack, which includes Google Guice. I also use GWT, but that should mostly be irrelevant. --

Re: [appengine-java] Re: JDO: how to add a child without the collection

2011-07-07 Thread objectuser
You're right. I confused the two: I said unowned while actually describing inverting the relationship. Do I get half a point? ;) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

[appengine-java] Re: JDO: how to add a child without the collection

2011-07-04 Thread objectuser
For something large like that, I think you'll want to make your relationship from User to LoginHistory an unowned relationship. That simply means that LoginHistory will store an ID that points to User instead of User having a collection of LoginHistory objects. The Google docs have more on

[appengine-java] Re: JDO: 1-N relationships

2011-06-25 Thread objectuser
As long as both the user and tracks are in the same entity group, you can do just that. Whether that's a good idea or not depends on how those users and tracks will be used. If only one user is going to be messing with the tracks, then you should be fine. If many users need to update those

[appengine-java] Re: Advanced Access Control

2011-06-19 Thread objectuser
I've never used Spring Security by itself. It used to be its own project, so it might not be too bad. As far as I know, there are still issues with using Spring in GAE, but maybe those have been solved, and they may not apply to using Spring Security by itself. I'm currently using Apache Shiro.

[appengine-java] Re: Advanced Access Control

2011-06-19 Thread objectuser
of? It is always very important to me to make sure a system is somewhat standardized before I use it. Thanks. On Sun, Jun 19, 2011 at 2:57 PM, objectuser kevin.k.le...@gmail.com wrote: I've never used Spring Security by itself.  It used to be its own project, so it might not be too

[appengine-java] Re: App Engine 1.5.1?

2011-06-18 Thread objectuser
Seems like it. I get the same thing, have since yesterday some time. On Jun 18, 3:43 am, Eurig Jones eurigjo...@gmail.com wrote: My dev server is telling me I should upgrade my app to 1.5.1 on startup, but I see no final release of 1.5.1 available yet, only a pre- release! Is this an error

[appengine-java] Nested Embedded Classes with JDO

2011-06-11 Thread objectuser
I have an embedded class that embeds another class. In order to remove conflicts with the embedding class, I use the @Embedded annotation like this: class X { @Embedded(members = { @Persistent(name = prop1, columns = @Column(name = yProp1)), @Persistent(name = prop2, columns =

[appengine-java] Re: JSF session beans on GAE

2010-04-10 Thread objectuser
I see JSP session beans are not supported but nothing similar on JSF. I've not had many problems with JSF 2.0 ... seems to work fine with the setup mentioned on that page. On Apr 9, 10:41 am, Uldall christian.uld...@gmail.com wrote: The Will it play in App Engine page states that JSF session

[appengine-java] Re: DataStore query without transaction - Spring 2.5 + JPA

2010-04-10 Thread objectuser
I've not used Open*InView support in AppEngine (don't like the pattern myself ;). However, if all that is to get around the problem of the transaction limitations like you state just below, then there are a couple of options: - Declare the DAO methods as transaction-new; that way they won't clash

[appengine-java] Re: Spring 2.5 Transactions - anyone got this working?

2010-03-31 Thread objectuser
. I don't do it in my app anyway. If those don't work, then I'll looks again. On Mar 30, 3:04 pm, Carl Ballantyne carlballant...@gmail.com wrote: Hi objectuser, Thanks for the links - very helpful. I have had a look and studied them. I am trying to get your example to work but am getting

[appengine-java] Re: Workaround for Spring transactions throw GenericSignatureFormatError

2010-03-31 Thread objectuser
Thanks, Thomas. It certainly seems like it's worth a shot! On Mar 30, 11:23 pm, Thomas mylee...@gmail.com wrote: Hi kevin:     Yes, my workaround is just a proxy which route every pmf requests back to the original instance return by JDOHelper.getPersistenceManagerFactory.     I used jdo

[appengine-java] Re: Workaround for Spring transactions throw GenericSignatureFormatError

2010-03-29 Thread objectuser
Hey, Thomas, Thanks very much for working on this! I think a lot of people want Spring transactions to work in GAE. What does your fix do? Or why does it work? It looks like you're just creating a proxy that passes the invocation along. For example, my jdo-context.xml is below. Is your new

[appengine-java] Re: Spring 2.5 Transactions - anyone got this working?

2010-03-28 Thread objectuser
I think you're going to be disappointed. Spring transactions work in the SDK but not on the GAE host. Here's how to set them up if you still want to do it (this currently still works for me in the SDK 1.3.2): http://objectuser.wordpress.com/2009/06/30/spring-jdo-in-google-app-engine/ But

[appengine-java] Re: Help with modeling JDO persistent classes

2010-03-12 Thread objectuser
One way to do this would be to duplicate A.name on the associated Bs. class A { Long id; String name; ... } class B { Long id; Long Aid; Long Aname; ... } Then you'd be able to do your select on just the B entity group and it would work. On Mar 10, 2:59 am, kattus

[appengine-java] Re: Do I need unowned relationships to accomplish this...?

2010-03-12 Thread objectuser
How about something like this? class User { Long id; ... } class Deck { Long id; Long userId; ... } class Card { Long id; Long deckId; ... } Then inserting a card into the deck is a simple insert and finding all cards in a deck is a single query. The same for adding a deck to

[appengine-java] Re: Best practices for datastore and JDO?

2010-03-06 Thread objectuser
I think the gap here is that a RDBMS (PostgreSQL) and the App Engine Datastore are totally different. In fact, I think the latter influences your design much more than the former. The sorts of joins you used to be able to do in your DB to efficiently retrieve data don't work in the GAE

[appengine-java] Re: Should I use JPA or JDO for DataStore?

2010-03-06 Thread objectuser
Since you're a student, and if you have the time, I'd recommend learning JDO for the following reasons: 1. You already know JPA. Might as well learn something new. :) 2. JDO, imo, fits the GAE datastore much better (I think there are quite a few discussions around here as to why). Enjoy! On Mar

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread objectuser
You rock. I'll give it a try. Thanks! On Sep 24, 3:25 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi objectuser, yes, currently I have a project to share this kind of code and an online demo with source code. Advice class (RetryAdvice.java):  (I have an advice for cache too - see

[appengine-java] Re: Type Owned by Two Different Types?

2009-09-23 Thread objectuser
22, 9:40 am, objectuser kevin.k.le...@gmail.com wrote: Thanks, Marton.  That's very unfortunate.  The limitations still surprise me.  Is that documented somewhere?  Need to go back and reread that stuff I guess. I'll see if I can come up with a simple test case for the collection. On Sep 22, 3

[appengine-java] Re: will it make any difference if i do not provide a separate class (PMF) for PersistentManagerFactory

2009-09-23 Thread objectuser
I think the key is to not create them all the time. So don't make a new one for each transaction. Make one and keep it around. On Sep 23, 10:19 am, Prashant antsh...@gmail.com wrote: Hi, Will it make any difference to the performance of the app if I do not write a separate class (PMF, as

[appengine-java] Re: Type Owned by Two Different Types?

2009-09-22 Thread objectuser
property a particular instance of Child1 has been assigned to originally. I could not reproduce your problem with the list of children. Could you send some code that fails for you? Marton On Sep 22, 3:31 am, objectuser kevin.k.le...@gmail.com wrote: After some more testing this is what I

[appengine-java] Re: Type Owned by Two Different Types?

2009-09-21 Thread objectuser
Thanks! I'd certainly rather it be something I'm doing wrong. I think you have represented my exact scenario there. I'll continue looking at my code. On Sep 21, 9:49 am, leszek leszek.ptokar...@gmail.com wrote: That's very interesting because it works for me:

[appengine-java] Re: JDO : How to make an unowned reference to an entity if we don't know its key yet ?

2009-09-19 Thread objectuser
Because your relationships are unowned (so the objects are in different entity groups, right?), you wouldn't be able to save them all in the same transaction anyway. So you're right: you'll have to save them, which means multiple transactions, and if one of them fails you'll have inconsistent

[appengine-java] Re: Owned One-to-One Relationship and Owned One-to-Many Relationship aren't compatible

2009-09-19 Thread objectuser
Jason, is it also true that you can't have two one-to-one relationships of the same kind? I'm able to save such a relationship, but when I fetch it, I get the same child in both values. I need to debug further (would not be surprised if it's just something I'm doing wrong), but wondering if

[appengine-java] Re: Many to Many

2009-09-14 Thread objectuser
Right, I'd read the docs like Ian mentioned. The big caveat as with anything in GAE is that the queries you intend to perform will drive your model. There's more than one way to model a many to many, so you need to make sure that the model you choose supports the queries you need. On Sep 14,

[appengine-java] Re: Snow Leopard Trouble

2009-09-03 Thread objectuser
And everything worked fine before the upgrade? I'm not using GWT, but upgraded to Snow Leopard with no resulting issues for GAE. On Aug 31, 1:51 am, yasuyuki eyasuy...@gmail.com wrote: Hi. I use Eclipse 3.4.2 and GAE/J Plugin. I update my Mac to Mac OS 10.6 Snow Leopard, I caught an error

[appengine-java] Re: jsp.error.beans.property.conversion

2009-09-03 Thread objectuser
I think one difference might be your use of JSPs. I'm using JSF 2.0 but with XHTML. But that's just a guess. Did you follow the instructions here?

[appengine-java] Re: Relationships

2009-08-26 Thread objectuser
)         at org.datanucleus.jdo.JDOPersistenceManager.makePersistent (JDOPersistenceManager.java:694)         .. thanks in advance On 25 août, 17:14, objectuser kevin.k.le...@gmail.com wrote: Can you tell us what the error is?  And maybe some snippits of code showing the relevant parts of your model and how it's mapped? On Aug 25, 8:08 am

[appengine-java] Re: Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread objectuser
Hey, Vince, That's really cool. Does that address the need of the OP though? I may just not be understanding it fully ... Thanks! On Aug 26, 11:15 am, Vince Bonfanti vbonfa...@gmail.com wrote: I've implemented a set of distributed locks for GAE that I posted a message about previously

[appengine-java] Re: Service logic conflicts with transaction policy for entity groups

2009-08-26 Thread objectuser
I see what you're saying ... you're addressing the integrity issues around concurrent modifications. As is, what if someone makes an inconsistent modification to A while I'm trying to update B ... I was thinking of it in terms of, what if modify entity A works and modify entity B fails. Good

[appengine-java] Re: Any example for JPA One-To-Many relationship

2009-08-25 Thread objectuser
It's not really any different in JPA and JDO, so the docs should cover what you want. http://code.google.com/appengine/docs/java/datastore/relationships.html I also wrote a few things that used JPA if it's useful (under the Modeling section): http://objectuser.wordpress.com/google-app-engine/

[appengine-java] Re: Object manager has been closed (GAE with Spring)

2009-08-24 Thread objectuser
24, 4:44 am, objectuser kevin.k.le...@gmail.com wrote: Do you get it when you're trying to walk the graph on an object?  If you add that property to the defaultFetchGroup does it fix it? I'm not sure I got that. What I do with the test, I call on a DAO object that uses JdoTemplate

[appengine-java] Re: Object manager has been closed (GAE with Spring)

2009-08-24 Thread objectuser
, objectuser kevin.k.le...@gmail.com wrote: +1 to Wagner for a better way of determining the issue. :) Yeah, that pretty much says it. If I'm not mistaken, JdoTemplate takes the persistence manager from the OpenPersistenceManagerInViewFilter, or any existing transaction. I'll check

[appengine-java] Re: Local transactions do not rollback

2009-08-21 Thread objectuser
That's crazy, John. Is all the data still there or only some of it? Also, how is your transaction being demarcated? On Aug 21, 1:41 am, jd jdpatter...@gmail.com wrote: Hi, I am using the local sdk datastore to save several thousand of objects and when an exception occurs the data is not

[appengine-java] Re: query performance

2009-08-21 Thread objectuser
I agree with Iain: it depends on how many items are in the lists. But for large lists, I don't think it would work out very well. Are the values in listA and listB stored? That might give you more options. On Aug 20, 8:15 pm, Ray Li ray.lee@gmail.com wrote: Hi, I have a query filter on

[appengine-java] Re: Granite Data Services Blog

2009-08-17 Thread objectuser
The last line made me laugh! I think some of the GraniteDS team has published an app on GAE and actually made the source available. Have you search for that? On Aug 17, 1:17 am, Capsicum annuum huayun...@gmail.com wrote: I want to build a flex project with GAE, and i want to use JDO Detach.