[JDEV] Strange server behaviour
Gerard BUNEL
gerard.bunel at ago.fr
Thu Jun 28 11:28:29 CDT 2001
Hello,
I need some help on server side development.
I've writen a module in replacement to the standard mod_presence
The objective of this module is to route presence messages to a service
wich is writen in Java
using jabberbeans and the CONNECT mode.
So I wrote function to route some mesages
void route_packet(mapi m) {
xmlnode node = xmlnode_dup(m->packet->x);
node = xmlnode_wrap(node, "route");
xmlnode_put_attrib(node, "to", packet_to);
deliver(dpacket_new(node), m->si->i);
}
The result is that sometimes the message is correctly routed, sometimes
it is not at all and sometimes it
seems to hang up partially the server (other messages are not sent)
Is there a problem in my function ?
Is there a safety way to do it ?
Thanks for your help
Gerard BUNEL
--
gerard.bunel at ago.fr - Atlantide - http://www.ago.fr/atlantide/
Technopole Brest Iroise BP 80802 - Site du Vernis - 29608 Brest cedex -
France
Tel. : +33 2 98 05 43 21 - Fax. : +33 2 98 05 20 34
e-mail: atlantide-brest at ago.fr
Centre Affaires Oberthur - 74D, rue de Paris - 35700 Rennes - France
Tel. : +33 2 99 84 15 84 - Fax : +33 2 99 84 15 85
e-mail: atlantide-rennes at ago.fr
More information about the JDev
mailing list