*Note: I apologize if this should go in the search forum, It seems like a hibernate issue but the parameters I am trying to configure are for search*
I'm currently trying to configure a master/slave setup for a JMS hibernate search index setup. I am going to be using three machines in this task (1 master, 2 slaves). Due to the way we deploy our apps to the server I need to use a the same configuration across all three machines. I am assuming that I can use a programatic configuration to use some flag logic to set the configuration on each machine.
My issue is that we are currently using spring and xml to set the up the session factory and I am unable to add programatic logic to it.
Here is the way it is currently configured:
Code:
<bean
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
id="productSessionFactory">
<property name="dataSource">
<ref local="productDataSource"/>
</property>
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
<property name="entityInterceptor" ref="builderInterceptor"/>
<property name="eventListeners">
<map key-type="java.lang.String" value-type="java.lang.Object">
<entry key="save" value-ref="saveEventListener"/>
</map>
</property>
</bean>
Is there any way I can use programatic configuration in addition to this to set the master/slave setup?
Thanks for the help!