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 bean tied to a transaction
manager somehow like the one below? Does having the proxy prevent the
AOP engine from throwing the exception?
Thanks!
?xml version=1.0 encoding=UTF-8?
beans xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:p=http://
www.springframework.org/schema/p
xmlns:aop=http://www.springframework.org/schema/aop;
xmlns:context=http://www.springframework.org/schema/context;
xmlns:jee=http://www.springframework.org/schema/jee;
xmlns:tx=http://www.springframework.org/schema/tx;
xsi:schemaLocation=
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd;
bean id=persistenceManagerFactory
class=org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean
property name=persistenceManagerFactoryName
value=transactions-
optional /
/bean
bean id=persistenceManagerFactoryProxy
class=org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy
property name=targetPersistenceManagerFactory
ref=persistenceManagerFactory /
property name=allowCreate value=false /
/bean
bean id=transactionManager
class=org.springframework.orm.jdo.JdoTransactionManager
property name=persistenceManagerFactory
ref=persistenceManagerFactory /
/bean
/beans
On Mar 28, 11:10 pm, Thomas mylee...@gmail.com wrote:
Please refer tohttp://code.google.com/p/googleappengine/issues/detail?id=1381
comment #20
--
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.