hazelcast

Spring Boot with Hazelcast and Tomcat

喜你入骨 提交于 2019-12-29 06:25:54
问题 How do you use Hazelcast as a http session store with embedded Tomcat with Spring Boot and Spring Security? I see there is a EmbeddedServletContainerCustomizer and SpringAwareWebFilter but I don't understand how to use it. 回答1: As described in Hazelcast's documentation, you need to configure Hazelcast's SpringAwareWebFilter and SessionListener . You can do so in Spring Boot by declaring a FilterRegistrationBean and a ServletListenerRegistrationBean respectively: @Bean public

Using exactly the same code, a high frequency hazelcast ringbuffer client not updating but low frequency client is

↘锁芯ラ 提交于 2019-12-25 14:12:49
问题 I have the following code which is used to listen to various ringbuffers. Some are high frequency price data and some are low frequency trade data: public static void main(String[] args) { HazelcastInstance client = Hazelcast.newHazelcastInstance(); Ringbuffer<String> databuffer = client.getRingbuffer("data"); long sequence = databuffer.headSequence(); while(true) { String d = null; try { d = databuffer.readOne(sequence); System.out.println(d); } catch (InterruptedException e) { StringWriter

Openshift V2 - Custom Cartridge Permission denied opening port

拟墨画扇 提交于 2019-12-25 09:36:16
问题 I'm trying to listen on a port in open shift, but I'm getting Permission denied. I am using a fork of the Wildfly 8.2.1 Cartridge: 2016-12-31 13:24:06,016 INFO [com.hazelcast.instance.DefaultAddressPicker] (MSC service thread 1-8) [LOCAL] [name] [3.5.4] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [127.0.0.1] 2016-12-31 13:24:06,074 SEVERE [com.hazelcast.instance.DefaultAddressPicker] (MSC service thread 1-8) [LOCAL] [name] [3.5.4] ServerSocket bind has

Consume message only once from Topic per listeners running in cluster

丶灬走出姿态 提交于 2019-12-25 07:46:29
问题 I'm implementing an Domain Event infrastructure, but the project doesn't allow any messaging infra(financial services client) so found an alternative in Hazelcast Topics and ExecutorService, But the problem is when running in cluster the message shall be delivered to listeners which is going to be running in cluster, so for a cluster of 2, we have same listener running in 2 jvm, and message consume twice and acted upon, suppose the Domain event is supposed to perform some non idempotent

Is it possible to have basic wan replication for hazelcast open-source edition?

别说谁变了你拦得住时间么 提交于 2019-12-25 05:47:07
问题 I'm aware that on hazelcast editions comparison page: https://hazelcast.com/pricing/ it is clearly specified that WAN replication is only for enterprise edition. But, on the other hand, this hazelcast documentation is divided into two parts: https://docs.hazelcast.org/docs/latest/manual/html-single/#wan Only the second part is explicit about enterprise edition, making one assume that the first part refers to non enterprise edition. I also noticed that the parameters are a bit diferent between

Is it possible to have basic wan replication for hazelcast open-source edition?

给你一囗甜甜゛ 提交于 2019-12-25 05:46:02
问题 I'm aware that on hazelcast editions comparison page: https://hazelcast.com/pricing/ it is clearly specified that WAN replication is only for enterprise edition. But, on the other hand, this hazelcast documentation is divided into two parts: https://docs.hazelcast.org/docs/latest/manual/html-single/#wan Only the second part is explicit about enterprise edition, making one assume that the first part refers to non enterprise edition. I also noticed that the parameters are a bit diferent between

Hazelcast - Ensure entry event is processed by a single handler

前提是你 提交于 2019-12-25 04:19:25
问题 I have a Hazelcast cluster with multiple nodes, each consisting of identical instances of a "Daemon" server process. These daemons are Java applications with embedded Hazelcast caches as well as logic that forms the core of my platform. I need to distribute certain events on the platform to listeners across the cluster which can reside in any (or all) of the connected nodes. From my reading of the documentation it seems to me that if I attach an EntryEventListener to the maps on daemon

Have hazelcast predicate return sorted collection

不问归期 提交于 2019-12-25 03:32:37
问题 is there a way to get a sorted collection from a hazelcast predicate? i have found that hazelcast offers a pagingpredicate for this purpose but i am not interested in the paging behavior (at least for now). even if one does use this pagingpredicate, does it make sure that the whole collection is sorted and not just the items in a particular page? and also if there is any way to disable the paging completely? i am interested in getting the results in sorted form and not in sorting the

Creating a new Jet custom Partitioner

若如初见. 提交于 2019-12-25 01:44:52
问题 My use case requires to read messages from a Kafka topics and process the messages in the natural order as they were published into the Kafka. The Kafka producer is responsible to publish each group of messages sorted in a single kafka topic-partition, and I need to process each group of message in the same Vertex-Processor in the same order. The image above represents the basic idea. There a few KafkaSource-Processors reading from Kafka. And one edge connected to a vertex to decode the kafka

Hazelcast creates 3 nodes/members when configured as Hibernate L2 cache

醉酒当歌 提交于 2019-12-24 22:01:17
问题 Hazelcast creates 3 nodes/members when configured as Hibernate L2 cache. Why? How do I control this? I am using Hazelcast 3.2.6 with default configuration and Grails 2.2.3. 回答1: You can set up an instanceName for all Hazelcast instances used in the Hibernate configurations. Then all will reuse the same HazelcastInstance (referred to by the name). To set the instance name please use the following property in the Hibernate config all set to the same value: hibernate.cache.hazelcast.instance