hazelcast

Automatically register XA Resource Spring Boot

匆匆过客 提交于 2019-12-11 13:34:57
问题 I'm trying to implement XA transactions in my Spring Boot app across Hazelcast and JPA persisting to PostgreSQL. Putting the Atomikos Spring Boot starter in my pom.xml got it to load the JtaTransactionManager to be used with the @Transactional annotations, but the Hazelcast XA Resource is not being enlisted with the transaction. How do I get Spring Boot to automatically enlist my XA Resources with the JTA UserTransaction as part of the AOP transaction interceptor that's using the

How to run hazelcast session replication using vaadin4spring?

感情迁移 提交于 2019-12-11 12:52:40
问题 I am writing a simple demo application using hazelcast session replication based on the shared security example mentioned in here https://github.com/peholmst/vaadin4spring. The problem is that if i am starting the application it stays on the login site with "communication error". With vaadin debug on, it shows me "Response didn't contain a server id. Please verify that the server is up-to-date and that the response data has not been modified in transmission." In the IDE no stack trace is

accessing IMap from EntryProcessor

时光总嘲笑我的痴心妄想 提交于 2019-12-11 12:25:21
问题 Can IMap or other Hazelcast distributed data structures like AtomicLong be accessed from within process() method of an EntryProcessor? I'm getting following exception: java.util.concurrent.ExecutionException: java.lang.IllegalThreadStateException: Thread[hz.Alcatraz-ANP-Sys-HAZLE-2.actiance.local.partition-operation.thread-5,5,Alcatraz-ANP-Sys-HAZLE-2.actiance.local] cannot make remote call: com.hazelcast.concurrent.lock.operations.LockOperation@3229190f at java.util.concurrent.FutureTask

changing load mode for hazelcast map

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 11:17:44
问题 I am trying to change the load mode for a Hazelcast 3.2 map. This is what I have tried via the code (not sure if its available via the XML config file which would be preferable for me). private InitialLoadMode initialLoadMode = InitialLoadMode.EAGER; final Config config= new Config(); final MapConfig mapConfig = config.getMapConfig("*"); final MapStoreConfig mapStoreConfig = mapConfig.getMapStoreConfig(); mapStoreConfig.setInitialLoadMode(initialLoadMode); //mapStoreConfig.InitialLoadMode

Hazelcast Spring Session SubZero(Kryo) EntryBackupProcessorImpl NullPointerException issue

被刻印的时光 ゝ 提交于 2019-12-11 10:01:40
问题 I am using hazelcast-3.11.2 and SubZero-0.9 as global serializer. I am trying to configure Spring Session using this example. When I have more than one node in cluster - I get next exception when trying to get session id: 2019-03-20 15:01:59.088 ERROR 13635 --- [ration.thread-3] c.h.m.i.operation.EntryBackupOperation : [x.x.x.x]:5701 [hazelcast-group] [3.11.2] null java.lang.NullPointerException: null at com.hazelcast.map.AbstractEntryProcessor$EntryBackupProcessorImpl.processBackup

hazelcast client module for node.js [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-11 09:48:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . In my Node.js application I wanted to connect the Hazelcast node instance and access the Queue/Hashmap of Hazelcast Node. Is there any node.js module available to do this . Thanks in advance. 回答1: Thought this question was asked over a year ago, some things have changed. Hazelcast Node.js client in fact does

Hazelcast map listener with replay

可紊 提交于 2019-12-11 09:33:20
问题 I have multiple nodes participating in the Hazelcast cluster. One node receives events from an outside system and puts objects into an IMap. I have other nodes that need all of the entries in the map plus any new entries going forward. (For example, one use case for these secondary nodes is to present a live view of the data to a user). One such approach would be: map.addEntryListener(new MyListener()); for (Object value : map.values()) { ... } However, I may see the same object twice, if

Hazelcast IMap - Concurrent updates to the same key, different value

夙愿已清 提交于 2019-12-11 05:28:25
问题 Without testing, because I'm stuck on a train and running out of battery... I need to determine whether or not Hazelcast's IMap concurrent updates are thread safe updating the same key but different values of that key. For example: Let's say I have 2 different threads updating the same IMap key... For all intents and purposes, this map looks like the following: key: {value1: 1, value2: 2} One thread says, "I am updating value1 to 3" the other thread says (at the same time) "I am updating

Hazelcast - What is the best cluster topology to serve multiple applications in client/server mode?

柔情痞子 提交于 2019-12-11 05:09:56
问题 Almost all of our applications are using Hazelcast cluster in embedded topology. Due to high load on the applications, we are occasionally having memory and cpu problems. Because of this we are planning to change our topology from embedded to client/server mode. The question is, should we set up a new cluster for each application? Or should a single cluster serve all the client applications? I know that multiple hazelcast instances can be started in jvm (http://docs.hazelcast.org/docs/3.5

Size of Predicate results in Hazelcast

﹥>﹥吖頭↗ 提交于 2019-12-11 05:06:45
问题 What is the best way of finding size of a predicate results in hazelcast IMap? There is no direct size support in MapProxyImpl.java and size() will be calculated on returned collection which in undesired in this case. Do you have any recommendations ? Thanks. 回答1: You're probably looking for an IMap::size(Predicate) overload which is not yet available, anyhow it sounds like a nice feature. Would you like to create a feature request for that? To solve the problem at the moment, I guess the