# Get Hazelcast Running with Payara 5.2021.4 in AWS/ECS environment

**URL:** https://forum.payara.fish/t/get-hazelcast-running-with-payara-5-2021-4-in-aws-ecs-environment/92
**Category:** Technical Discussion
**Created:** [October 15, 2021, 10:11pm UTC](https://forum.payara.fish/t/get-hazelcast-running-with-payara-5-2021-4-in-aws-ecs-environment/92 "2021-10-15T22:11:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![UlrichC](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@UlrichC](https://forum.payara.fish/u/UlrichC)
#### Post date: [October 15, 2021, 10:11pm UTC](https://forum.payara.fish/t/get-hazelcast-running-with-payara-5-2021-4-in-aws-ecs-environment/92/1 "2021-10-15T22:11:34Z")

</div>

Hi,

there is a nice tutorial about running Hazelcast on AWS/ECS with Spring ;-( ([Thank You - Hazelcast](https://hazelcast.com/thank-you/?resource_id=754808)). I now tried a whole day to get this running with Payara, too.  
I opened ports 4900, 4901, 5701, add the hazelcast.yaml (as mentioned in the video) to the resource/META-INF directory of my WAR-application (where also the beans.xml lies). I also put the hazelcast-aws.jar into the “/modules/”-directory of hazelcast, so that it is in the classpath and available at start-time of Payara. I also put the dependency to hazelcast-all 4.2 into the application, but all this does not seem to have any effect

The only output I get when starting the ECS-Tasks with Payara is the following (concerning Hazelcast), which is, by the way, the same without the hazzle I did:

Registered fish.payara.ha.hazelcast.store.HazelcastBackingStoreFactoryProxy for persistence-type = hazelcast in BackingStoreFactoryRegistry|#]  
[#|2021-10-15T22:01:45.348+0000e[1;92m|INFO|e[0mPayara 5.2021.4|e[1;94mfish.payara.nucleus.hazelcast.HazelcastCore|e[0m\_ThreadID=17;\_ThreadName=RunLevelControllerThread-1634335290556;\_TimeMillis=1634335305348;\_LevelValue=800;|  
Hazelcast Instance Bound to JNDI at payara/Hazelcast|#]  
[#|2021-10-15T22:01:45.352+0000e[1;92m|INFO|e[0mPayara 5.2021.4|e[1;94mfish.payara.nucleus.hazelcast.HazelcastCore|e[0m\_ThreadID=17;\_ThreadName=RunLevelControllerThread-1634335290556;\_TimeMillis=1634335305352;\_LevelValue=800;|  
[#|2021-10-15T22:01:45.354+0000e[1;92m|INFO|e[0mPayara 5.2021.4|e[1;94mfish.payara.nucleus.hazelcast.HazelcastCore|e[0m\_ThreadID=17;\_ThreadName=RunLevelControllerThread-1634335290556;\_TimeMillis=1634335305354;\_LevelValue=800;|

I cannot believe, that this is such a complicated problem comparing to the easy Spring tutorial, where this is set up in minutes…

Thank you very much for any hint/advice/tutorial/example  
Ulrich

---

<div class="post-metadata">

### Author: ![rudy.de.busscher](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/rudy.de.busscher/32/26_2.png) [@rudy.de.busscher](https://forum.payara.fish/u/rudy.de.busscher)
#### Post date: [October 18, 2021, 10:20am UTC](https://forum.payara.fish/t/get-hazelcast-running-with-payara-5-2021-4-in-aws-ecs-environment/92/2 "2021-10-18T10:20:50Z")

</div>

Hi,

See [here](https://docs.payara.fish/community/docs/documentation/payara-server/hazelcast/configuration.html#setting-hazelcast-configuration-file) to set a configuration XML file within the domain (the config file must be within the domain and not within the application)

Regards  
Rudy

---

<div class="post-metadata">

### Author: ![UlrichC](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@UlrichC](https://forum.payara.fish/u/UlrichC)
#### Post date: [October 18, 2021, 10:45am UTC](https://forum.payara.fish/t/get-hazelcast-running-with-payara-5-2021-4-in-aws-ecs-environment/92/3 "2021-10-18T10:45:23Z")

</div>

Hi, thank you very much for your responds. Is the YAML-file just OK or do I have to “convert” it to the XML-version?

---

<div class="post-metadata">

### Author: ![rudy.de.busscher](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/rudy.de.busscher/32/26_2.png) [@rudy.de.busscher](https://forum.payara.fish/u/rudy.de.busscher)
#### Post date: [October 19, 2021, 7:08pm UTC](https://forum.payara.fish/t/get-hazelcast-running-with-payara-5-2021-4-in-aws-ecs-environment/92/4 "2021-10-19T19:08:32Z")

</div>

We pass the file to the `com.hazelcast.internal.config.ConfigLoader#load()` method which appears to only accept XML formatted files.

---

<div class="post-metadata">

### Author: ![fturizo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/fturizo/32/27_2.png) [@fturizo](https://forum.payara.fish/u/fturizo)
#### Post date: [March 25, 2022, 10:36pm UTC](https://forum.payara.fish/t/get-hazelcast-running-with-payara-5-2021-4-in-aws-ecs-environment/92/5 "2022-03-25T22:36:39Z")

</div>


