Hi Objectuser,

Thanks for the suggestions.

Pointcut is correct (I think so - keep second guessing myself though
trying to implement this). I changed the domain to something generic
when posting the example.

Can you please confirm the following is correct, ie that you inject
the proxy into the transaction manager.

<bean id="txManager"
class="org.springframework.orm.jdo.JdoTransactionManager">
        <property name="persistenceManagerFactory"
ref="persistenceManagerFactoryProxy" />
</bean>

The Spring 2.5 reference documentation in section 12.3.4 (http://
static.springsource.org/spring/docs/2.5.x/reference/orm.html#orm-jdo)
has only the persistence manager factory. But it looks to me like it
not in the context of using the proxy for transaction management. Some
operations will work if I only inject the persistenceManagerFactory
but then some will not (however all fail for testcases)

I cannot get a testcase to work using spring managed transactions.
Interestingly if I inject just the persistenceManagerFactory into the
txManager bean some operations work but no testcase will work. Setting
up testcases for the datastore is a real pain and I have followed the
directions as per the google doco.

Will try taking out the close methods and see if that makes a
difference.

Will keep bashing my head against this appengine wall.

Cheers,
Carl.


On Mar 31, 2:10 pm, objectuser <[email protected]> wrote:
> Check your pointcut ... is com.myapp.dao... correct?
>
> If that's correct, then I don't see anything amiss; it looks really
> good.  Are you even able to setup a test where it works?  Or are you
> doing it from a test?
>
> Oh, and check the use of pm.close().  That should be taken care of bySpringI 
> think.  I don't do it in my app anyway.
>
> If those don't work, then I'll looks again.
>

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