Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure Hazelcast cluster address #4636

Closed
attiand opened this issue Mar 4, 2020 · 3 comments
Closed

How to configure Hazelcast cluster address #4636

attiand opened this issue Mar 4, 2020 · 3 comments
Labels

Comments

@attiand
Copy link
Contributor

attiand commented Mar 4, 2020

Jetty version

jetty:9.4.26-jre11-slim (Docker image)

Java version

34b2e7432e9f:/var/lib/jetty$ java --version
openjdk 11.0.6 2020-01-14
OpenJDK Runtime Environment 18.9 (build 11.0.6+10)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10, mixed mode)

Question
I try to use the session-store-hazelcast-remote module and I seem to have it working with a single hazelcast server on 127.0.0.1. The problem is that I can’t figure out how to configure the url to hazelcast. The docs mentions jetty.session.hazelcast.configurationLocation but it seems to have no effect.

I guess for it to work it must be referenced in jetty hazelcast/src/main/config/etc/sessions/hazelcast/remote.xml

@olamy
Copy link
Member

olamy commented Mar 8, 2020

This sounds to be an issue.
In the file hazelcast/src/main/config/etc/sessions/hazelcast/remote.xml can you try adding
<Set name="configurationLocation"><Property name="jetty.session.hazelcast.configurationLocation" default="127.0.0.1" /></Set>
Bug created here #4647

@attiand
Copy link
Contributor Author

attiand commented Mar 8, 2020

Yes, I have already tried that. I got the address issue solved with the XML configuration, however then I think I ran into this issue: #3571. So I tried to configure the SessionDataSerializer in the XML as it is done in the default configuration org.eclipse.jetty.hazelcast.session.HazelcastSessionDataStoreFactory. But then I runned into class loading problems.

The only way I managed to resolve the problem was to add the address configuration in a modified version of org.eclipse.jetty.hazelcast.session.HazelcastSessionDataStoreFactor.

@olamy
Copy link
Member

olamy commented Mar 8, 2020

@attiand can you give us more details on your modified version of HazelcastSessionDataStoreFactory? Or maybe provide a pr so we can fix it for everyone?
Thanks

attiand pushed a commit to attiand/jetty.project that referenced this issue Mar 9, 2020
Signed-off-by: Mattias Andersson <mattias.andersson@umu.se>
attiand pushed a commit to attiand/jetty.project that referenced this issue Mar 9, 2020
Signed-off-by: Mattias Andersson <andermaj@gmail.com>
attiand pushed a commit to attiand/jetty.project that referenced this issue Mar 9, 2020
Signed-off-by: Mattias Andersson <andermaj@gmail.com>
@olamy olamy closed this as completed Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants