I recently heard that the new cluster hazelcast is used in 3.8.2, So I downloaded and debugged it.
JDK, eclipse, and ant will not be installed,
Step 1: First click eclipse's new, then select Java project, and import the openfire_src you just downloaded in location.
Step 2: there will be three errors: Cluster, hazelcast, and sip. The first error is that three packages are missing. See the attachment.
Step 3: Download the attachment jar package, decompress it, copy it to src/plugins/clustering/lib, right-click and choose add path... to import it to the environment.
Step 4: Because the cluster plug-in and the hazelcast plug-in have the same source code, compare the source code on both sides, and then delete the class that hazelcast wants to be the same in the cluster source code. At the same time, the source code of the SIP plug-in is caused by not fully implementing the interface method and not handling exceptions. You can use eclipse to fix the problem and there is no error at this time.
Step 5: Delete the plug. xml file of the cluster plug-in, right-click the openfire_src project, select build path, and select Configuration build path... Go to add folder, select src/build/lib/Dist, src/i18n, src/resources/jar, and click OK.
Step 6: compile with ant
Step 7: Right-click Java application, click New, and configure the startup Item. There are three items to be configured: Main class under main, enter serverstart for search, select, org. jivesoftware. openfire. starter. serverstart, click Apply, and select arguments. in VM arguments, enter-dopenfirehome = "$ {workspace_loc: openfire_src}/target/openfire". Third, select common, in the face of run, debug, click Apply, and then click Run, then it runs,
Finally, enter 127.0.0.1: 9090 on the page to view the openfire Management page. There are a lot of configurations on the Web. This article is my own notes, which are relatively abstract ..