You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Rodrigo Ramirez <dh...@motorola.com> on 2012/11/02 00:38:23 UTC

How to extent MessageHandler

Hi there,

Does any one has an example showing how to extend vysper MessageHandler
class and how it include it in the installation so it is actually used to
process messages.

My application's clients are cameras that receive and execute CGI messages
from the XMPP server, so a simple example, kind of a hello world, similar
to the MyLdapAuthentication example showing how to receive and send
messages to a client will be greatly appreciated.

Thanks,

Rodrigo

Re: How to extent MessageHandler

Posted by Bernd Fondermann <be...@gmail.com>.
On Fri, Nov 2, 2012 at 12:38 AM, Rodrigo Ramirez <dh...@motorola.com> wrote:
> Hi there,
>
> Does any one has an example showing how to extend vysper MessageHandler
> class and how it include it in the installation so it is actually used to
> process messages.
>
> My application's clients are cameras that receive and execute CGI messages
> from the XMPP server, so a simple example, kind of a hello world, similar
> to the MyLdapAuthentication example showing how to receive and send
> messages to a client will be greatly appreciated.

Such applications are often implemented by having a lot of "worker
XMPP clients" like cameras clients in your case and one special
"controller XMPP client" the worker clients talk to.
Then, you would just send plain messages to/from these clients leaving
the server with the role of a "communication hub".

However, the following package has all the sample code how to extend
handling on the server-side:
http://svn.apache.org/repos/asf/mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/modules/extension/xep0199_xmppping/

  Bernd

>
> Thanks,
>
> Rodrigo