-->
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.  [ 3 posts ] 
Author Message
 Post subject: IndexBase in JNDI instead of persistence.xml
PostPosted: Mon Dec 20, 2010 10:04 am 
Newbie

Joined: Thu Dec 16, 2010 1:03 pm
Posts: 4
Hello,
a stupid question which i have no answer:
I want to set the value of variable "hibernate.search.default.indexBase" in my JNDI configuration instead of persistence.xml.
It's possible ?
thanks

NB : I'm sorry for my english language


Top
 Profile  
 
 Post subject: Re: IndexBase in JNDI instead of persistence.xml
PostPosted: Mon Dec 20, 2010 12:06 pm 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
No, not at the moment.
I guess if you build your configuration programmatically you should be able to store some properties in JNDI. Then when the Hibernate (Search) configuration gets build you would have to retrieve them from JNDI and pass them to the configuration object. Of course this only works if you bootstrap Hibernate yourself.

--Hardy


Top
 Profile  
 
 Post subject: Re: IndexBase in JNDI instead of persistence.xml
PostPosted: Mon Dec 20, 2010 1:04 pm 
Newbie

Joined: Thu Dec 16, 2010 1:03 pm
Posts: 4
Hello,

it works by extending the FSDIrectoryProvider with an environment variable but I lose the hidden properties.
Though its impact ..

Thank you for the reply.
have fun,

Adrien


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.