powered by Jive Software

(A)SMACK deactivate acknowledges in messages

I’m using Asmack 0.8.9 for communicating with openfire.

I’m using the BOSHConnection object for establishing a connection and everything works fine until i want to send a custom message.

I want to send a custom packet over this connection.

boshconnection.sendPacket(packet); //packet is org.jivesoftware.smack.packet;

I get something like this:

<body ack='76257246291152' rid='76257246291174' sid='7a823168' xmlns='[http://jabber.org/protocol/httpbind](http://jabber.org/protocol/httpbind)'> <message to="1ce8c6a3-4c94-4ff9-860c-e285217d8897@" xmlns="jabber:client"><body> this body is empty for your imagination </body></message></body> .....

I want to deactivate the “ack=…” field out of the body. Can somebody tell me how this is possible via SMACK/ASMACK ?

I solved this problem will post a answer soon.

Why was it a problem at all? Acknowledgements usually don’t harm.

1 Like