I am trying to implement cache in mule CE using MongoDB, found this-@PontusUllgren answer, so I ma trying on replacing EhCache with MongoDB. This is the bean:
<spring:bean id="MyCache" class="test.someclass" init-method="initialize">
<spring:property name="host" value="localhost"/>
<spring:property name="port" value="27017"/>
<spring:property name="database" value="test"/>
<spring:property name="username" value="test"/>
<spring:property name="writeConcern" value="DATABASE_DEFAULT"/>
<spring:property name="entryTTL" value="600000" />
<spring:property name="maxEntries" value="-1" />
<spring:property name="expirationInterval" value="1000" />
</spring:bean>
and this is the <custom-interceptor/>
:
<custom-interceptor doc:name="PayloadCache" class="test.someclass">
<spring:property name="cache" ref="MyCache"/>
</custom-interceptor>
So my question is what should replace with the test.someclass
java class?
EDIT:
I have added to my flow the mongodb connector configuration:
<mongo:config name="Mongo_DB" username="test" database="test" doc:name="Mongo DB"/>
than passed it to the custom-interceptor:
<custom-interceptor doc:name="PayloadCache" class="test.someclass">
<spring:property name="cache" ref="Mongo_DB"/>
</custom-interceptor>
but again, where will I get the someclass from?