Openfire 3.8.2 source code debugging

Source: Internet
Author: User

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 ..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.