I have created 2 open fire instances in two different work stations, in which cluster is enabled on those 2 nodes and It’s perfectly configured with 2 nodes as it showing and I have created 2 users in the one group.
** Problem:**
-
I put one entry in the /etc/hosts from machine1 --> workstation1(node1 is running) domain.com
-
I put one entry in the /etc/hosts from machine2 --> workstation2(node2 is running) domain.com
Means of the above 2 points, machine1 is connecting to node1 workstation and machine2 is connecting to node2 workstation.
I can able to see in clustering page, one client is connecting from node1 and other client is connecting from node2. I can able to see other client is online.and able to chat also.
I am able create MultiUserchat class , and able to join, when I get packet in callaback function In that packet when I try to print the Packet value using the below statement
@Override
public void processPacket(Packet packet) {
try {
Presence presence = (Presence) packet;
System.out.println("packet is came "+StringUtils.parseServer(presence.getFrom())); // Result is conference.domain.com
** if(**StringUtils.parseServer(presence.getFrom()).startsWith(“conference”)){
return;
}
}
Because of that result starting with conference, I am returning with out doing any thing. Is their any etc configurations required.
.
** Please solve my problem, **