Help

Another CR for Hibernate Search 4.1 is ready! Even being in candidate release phase, we introduced something more than the usual minor bugfixes, as the following improvements are too nice to delay and technically not very risky.

Depending on Hibernate 4.1

Hibernate Search was updated to work with Hibernate ORM 4.1, as it was still using 4.0.

Rethinking the JGroups integration

The JGroups Channel is the communication transport used when connecting multiple nodes in cluster using JGroups; before 4.1.0.CR3, Hibernate Search would expect you to configure a Channel for each clustered index, but having to configure multiple JGroups Channel is tedious: for example, each channel should use a different set of network ports.

The Channel is now a service shared across all indexes: every index configured to use JGroups will share the same Channel instance. This simplifies configuration, network administration and speeds up initialization.

Configuration details are described in the JGroups configuration paragraph.

If you were using JGroups before, please see the Migration Guide.

JGroups channel injection

It is now possible to have Hibernate Search use an existing JGroups Channel, injecting the instance in the configuration. This was primarily introduced for other frameworks integrating our search engine, such as CapeDwarf, so they can control the Channel lifecycle and make use of alternative initialization options. Remember however: Search installs it's own message Receiver, it's not going to share the channel with other services!

import org.hibernate.search.backend.impl.jgroups.JGroupsChannelProvider;

org.jgroups.JChannel channel = ...//initialize or lookup the channel directly
Map<String,String> properties = new HashMap<String,String>();
properties.put( JGroupsChannelProvider.CHANNEL_INJECT, channel );
properties.put( //...other options
EntityManagerFactory emf = Persistence.createEntityManagerFactory( "userPU", properties );

Plans for next...

We're working as well on making the master/slave an automatic election process, but that's too big of a change for a CR, so consider it just a teaser for upcoming 4.2 ! Of course, you can help starting to test it today if you're willing to participate in the coding and try the bleeding edge.

9 comments:
 
24. Jun 2014, 11:46 CET | Link

It is very important and necessary to everyone to understand the Forex trading basics. From tips for choosing the right broker to understanding the trading basics principles, the best in forex trading basics are written below As our success in the Forex trading largely depends on the brokerage services, we must take our decision after comparing different types of Forex brokers. These days we will find many websites that help you to forex broker comparison

ReplyQuote
27. Jul 2014, 14:53 CET | Link

iherb coupon can give you wealth. Money, Gold, fame can be other sorts of assets. But without a proper health you cannot enjoy or relish the flavor of these materialistic things. Hence, you need to have a sound health.iherb coupon

 
31. Jul 2014, 13:13 CET | Link

The world is changing fast. people are also being changed.day by day we are becoming more dependant on degital system.yoU make me think of this really.You have a nice way of sharing your thoughts. дизайн интерьера Москва

 
31. Jul 2014, 14:33 CET | Link
Sonsa

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. find out more about the Venus Factor

 
02. Aug 2014, 09:55 CET | Link

Hey there thanks for showing me this. I must say that your blogpost was the most enjoying read I've seen in a long time. Greetings from how to be rich how to be rich how to be rich how to be rich

 
02. Aug 2014, 10:19 CET | Link

Hey there thanks for showing me this. I must say that your blogpost was the most enjoying read I've seen in a long time. Greetings from how to be rich

 
29. Aug 2014, 06:05 CET | Link
obat herbal miom

I have been very encouraged to find this website. I desired to thanks with this special study. I certainly savored every it and I've you bookmarked to look at fresh things you publish. obat herbal miom

 
29. Aug 2014, 12:46 CET | Link

The world is changing fast. people are also being changed.day by day we are becoming more dependant on degital system.yoU make me think of this really.You have a nice way of sharing your thoughts. Buy Backlinks high pagerank backlinks

30. Aug 2014, 13:57 CET | Link

Active Renewable is a Canadian natural gas marketer committed to providing competitive natural gas pricing to the British Columbia market. As part of our commitment, Active Renewable offers fixed natural gas pricing for the term of the agreement. Car navigation

Post Comment