Announcement Announcement Module
No announcement yet.
Hibernate IoC Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate IoC

    I've been reading thru the hibernate config code (and google) to see if I could configure Hibernate at a lower level with Spring. I'd like to be able to configure a cache provider in spring (jndi reference to jbosscache) and pass that cache provider to hibernate rather than a string property that contains the name of a class that requires a no-arg constructor.

    I did think of creating a class that would implement the interface and delegate the calls to a class loaded from spring, but it means referencing my beanfactory from another location.

    Has anyone else tried this? Does anyone else see the benefit?

  • #2
    possible solution

    Quite a few people have read this (and none answered :@ !), but I've been looking into it and have started a thread on the hibernate forum for anyone interested

    You'll notice that it's about as popular there too


    • #3

      Forgot to say, to achieve this with the minimum number of changes I've had to add a method to LocalSessionFactoryBean to take a map and add the values to the existing hibernateProperties. could/should this be added to existing class as extension seems like over kill?