Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I need to start Hazelcast within Tomcat without separate war-file. So put hazelcast.jar into lib folder, hazelczast.xml somewhere... What next? Or it is not possible?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
202 views
Welcome To Ask or Share your Answers For Others

1 Answer

First step was ok, just place Hazelcast lib and configuration inside the libs folder of Tomcat. Next thing, if you don't want a separate WAR file, is to build a small Valve class that starts up / shuts down the Hazelcast node. The question is: What do you want to achieve with this, since for a practical use you will likely have to access the Hazelcast instance itself (which should be possible to place it as an attribute inside the HttpRequest).

Chris


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...