Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: MassIndexer incompatible with hibernate multi-tenancy?
PostPosted: Wed Aug 22, 2012 8:38 am 
Newbie

Joined: Wed Aug 22, 2012 8:32 am
Posts: 2
Hi, I have a multi-tenant hibernate app that works well, even with hibernate search. The only problem is that I cannot use MassIndexer to reindex my data. It seems that it internally opens its own sessions but ignores the multi-tenancy.

To obtain the session in my application I do this:
sessionFactory.withOptions().tenantIdentifier(tenantId).openSession()

But upon calling FullTextSessions's createIndexer I am getting this:
org.hibernate.HibernateException: SessionFactory configured for multi-tenancy, but no tenant identifier specified

Is there a way around this? Or am I doing something wrong?


Top
 Profile  
 
 Post subject: Re: MassIndexer incompatible with hibernate multi-tenancy?
PostPosted: Fri Aug 24, 2012 9:28 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

no I think you are right - this is an issue. Can you create an issue for it - https://hibernate.onjira.com/browse/HSEARCH


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.