-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Search configuration via JMX (JBoss)
PostPosted: Sat Aug 25, 2007 4:14 am 
Newbie

Joined: Thu Nov 24, 2005 6:23 pm
Posts: 7
Is there a way to configure Hibernate Search using the JBoss JMX service configuration (jboss-service.xml)?

I deploy my Hibernate app as a managed service (.har file) under JBoss 4.0.5.GA and as such the hibernate.cfg.xml file is not used. JBoss automatically configures the SessionFactory and places it in the JNDI tree on startup, based on the configuration supplied in the hibernate-service.xml file.

I have not been able to find any information on configuring Hibernate Search via the hibernate-service.xml file.

I need to be able to set the hibernate.search.default.directory_provider_url and hibernate.search.default.indexBase properties, and to configure the post-update, post-insert and post-delete event listeners (I am not using Hibernate Annotations or EntityManager).

At the moment the best I've been able to come up with is to set the directory_provider_url and indexBase properties via a hibernate.properties file, and manually add the 3 event listeners to the session when I open it. I think this is a hack and I don't like it. (I'm also getting some other errors now, and I don't know if they're related to this or something else - work in progress :P).

Is it possible to configure the event listeners in a hibernate.properties file instead? That would be a bit better than manually adding them (although not by much).

I am using:
Hibernate 3.2.4.GA
Hibernate Search 3.0.0.Beta4
JBoss 4.0.5.GA


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 28, 2007 3:18 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
for the properties, you can use the setProperty available on the MBean, but unfortunately, configuring the event listeners is not exposed though the MBean API

BTW directory_provider_url is not a regular property AFAIR.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.