Custom packet sending from Spark to OpenFire

Hi All,

I need to be able to send some request to the OpenFire server that the Spark is connected to. The OpenFire Server received this request, finds some data from the database and sends it back to the Spark Client.

The request sent from Spark is a request for data and the reply from OpenFire is a list of conversationd Ids.

Any ideas?

Thanks.

Use standart smack Packet (org.jivesoftware.smack.packet.Packet) or pure XML.

Hi@ Konstantin,

Thanks. I have created the Packet object that I want to send from the Spark. How can I listen for this packet in the OpenFire Server end?

Take a look on this may be it will help you :

https://openfire-packet-listener.dev.java.net/

http://www.igniterealtime.org/community/docs/DOC-1220