Results 1 to 3 of 3

Thread: Hibernate IoC

  1. #1

    Default 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. #2

    Default 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

    http://forum.hibernate.org/viewtopic...225494#2225494

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

  3. #3

    Default doh

    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?

Similar Threads

  1. Replies: 5
    Last Post: Dec 27th, 2005, 07:00 AM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  4. Replies: 9
    Last Post: Sep 25th, 2004, 12:35 PM
  5. Replies: 7
    Last Post: Aug 21st, 2004, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •