I am trying to update Mongo DB at one of my service using spring data.

Though i am able to save normal objects simultaneously in Mysql and MongoDb using cross store http://www.littlelostmanuals.com/201...ngodb-and.html

I am unable to save only in MongoDB and unable to exclude Mysql updation .In my Service Layer i get a handle of repository which extends MongoRepository and i do a repsoitory.save(mongoDocument)



xml file entries

<mongo:repositories base-package="com.mycompany.mongo" mongo-template-ref="mongoTemplate" />
<mongo:mongo host="localhost" port="27017"/>
<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.Mongo Template">
<constructor-arg ref="mongo"/>
<constructor-arg value="mydb"/>

</bean>
<bean class="org.springframework.data.mongodb.core.Mongo ExceptionTranslator" />

and

<bean class="org.springframework.data.persistence.docume nt.mongodb.MongoDocumentBacking" factory-method="aspectOf">
<property name="changeSetPersister" ref="mongoChangeSetPersister" />
</bean>

<bean id="mongoChangeSetPersister" class="org.springframework.data.persistence.docume nt.mongodb.MongoChangeSetPersister">
<property name="mongoTemplate" ref="mongoTemplate" />
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>

I Also found a bug in cross store which says there are issues in weaving third party code https://jira.springsource.org/browse/DATAMONGO-287, Does this bug relates to the problem i am facing?