Hi, I'm trying to write a sample app with spring and JDO.
>From what I've read, I've written the following config
    <bean id="springpmf" 
class="org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean">
        <property name="persistenceManagerFactoryName" value="keepeye" />
    </bean>
  <tx:annotation-driven />
    <bean id="pmfproxy" 
class="org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy">
        <property name="targetPersistenceManagerFactory" ref="springpmf" />
        <property name="allowCreate" value="false" />
    </bean>

    <bean id="transactionManager" 
class="org.springframework.orm.jdo.JdoTransactionManager">
        <property name="persistenceManagerFactory" 
ref="pmfproxy"></property>
    </bean>
    <bean id="dao" class="wowpop.service.DAO">
        <property name="pmf" ref="pmfproxy"></property>
    </bean>
Now when run the app throws an exception

rg.springframework.transaction.CannotCreateTransactionException: 
Could not open JDO PersistenceManager for transaction; nested exception is 
java.lang.IllegalStateException: 
No JDO PersistenceManager bound to thread, and configuration does not allow 
creation of non-transactional one here

Can someone help?

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to