[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 transaction manager and aop and it worked on gae host
 after applying the workaround. My spring version is 2.0.8 but I think
 it could also work on spring 2.5.

 Thomas

-- 
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: Workaround for Spring transactions throw GenericSignatureFormatError

2010-03-30 Thread Thomas
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 transaction manager and aop and it worked on gae host
after applying the workaround. My spring version is 2.0.8 but I think
it could also work on spring 2.5.

Thomas

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