powered by Jive Software

Send msg to groupchat

Dear all:

I need to send message to groupchat.

I try to use “sessionManager.sendServerMessage” (JID: confID@conference.myserverip)

It doesn’t work.

Anyone would help me how to do.

thx.

I wrote a servlet to send msg to groupchat.

I send message to groupchat and try to use sessionManager.sendServerMessage, then openfire broadcast this message(because “!userManager.isRegisteredUser”)

I modify void sendServerMessage(in SessionManager.java) as follow:

===================================================

if (!userManager.isRegisteredUser(address)){

packet.setType(Message.Type.groupchat);

routingTable.routePacket(address, packet, false);
}

===================================================

It doesn’t work. Server will return message as follow:

===================================================

subject test ===================================================

Anyone have good idea to deal???