| Using Spring 2.5, Tomcat 6.0.18, Hibernate Search Annotations. (version 3.1.x)
 I am trying to programatically set some Hibernate Search properties. (Reason is to be able to use a single build process to build my war for both master and slave nodes).
 For example, depending on the local ip address of the node, I would initialize the directory provider to either the slave or master directory provider.
 I am using Spring 2.5 and was originally declaring my Hibernate sessionFactory as a bean of type AnnotationSessionFactoryBean.
 Now I am trying to set the properties programatically by extending AnnotationSessionFactoryBean and overriding the setHibernateProperties method.   All of this gets executed when I start the app, however the DirectoryProvider initialization process does not seem to run as normal.
 
 I'm wondering if I am violating some order by setting the properties programatically when the sessionFactory is initialized.
 I realize this is probably a little confusing but can provide more information if anyone has any knowledge in this area that they can share.
 
 
 |