[jdev] Custom message types

Remko Tronçon remko at el-tramo.be
Fri Dec 12 17:45:53 CST 2008


> Other than chat, groupchat, normal, and headline, is it possible to
> define my own message types? I'd like to transfer some custom data
> that don't fall into any of these categories and I don't want the
> client user interface to present to the user. Is this
> possible/allowed?

It's not allowed to use a custom 'type' attribute.

However, if you don't add a <body/> to your message containing your
custom payload, clients should ignore it:

<message to="bla at example.com">
  <mycustomdata xmlns="http://bla.com">abcde</mycustomdata>
</message>

cheers,
Remko



More information about the JDev mailing list