These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JNDI cache provider
PostPosted: Wed Oct 20, 2004 2:36 pm 
Newbie

Joined: Mon Feb 02, 2004 4:18 pm
Posts: 16
I posted this in the JBoss & cache forum, but I don't think its the correct place as it's an architecture questions more.

I'm using Spring to wire an application together, but intead of linking Hibernate and TreeCache thru JMX, I'd prefer to pass the cache provider to Hibernate using JNDI. The reason is that I'd prefer to wire everything using Spring rather than depending on JMX to provide a similar function.

In my Spring config, I'd like to be able to swap between datasources and cache providers depending on the platform. Is there any else in the same boat as myself?

I was thinking of writing an implementation that would perform the JNDI resolution and then delegates the methods from the interface. Then I could still use the current implementation (setting the cache.provider_class property to xxx.MyCacheProviderDelegate), but the calls would be delegated to the correct implementation.

Any ideas folks?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.