[JDEV] Creating a presence server component?
Sylvain Roberdeau
sylvain.roberdeau at terravirtual.net
Tue Aug 6 13:20:30 CDT 2002
Thanks for these info,
I found the <bcc>..</bcc> trick But before use it, I want a standard way
to proceed in order to process <message> <iq> in a next step.
If I create a component with a <presence> element support, I wonder
whether if a conflict will occurw with the JSM module "mod_presence".
Documentation is not very clear about it.
Aside from this consideration I'm curious about a way to proceed with a
Java code. Just in case you find your old code, can you send it to me please?
Sylvain
Philippe Raxhon a écrit :
> Sorry not to be very detailed in my explanation, but I did something
> like this months ago:
>
> 1. I added a accept component to the jabber server:
>
> <service id="slogger">
> <host>slogger.myserver.tld</host>
> <accept>
> <ip>localhost</ip>
> <port>5999</port>
> <secret>secret</secret>
> </accept>
> </service>
>
> 2. I configured the server to bcc the presence packets to my component.
>
> <jsm xmlns="jabber:config:jsm">
> ...
> <presence>
> <bcc>slogger</bcc>
> </presence>
>
> </jsm>
>
> 3. I wrote, using jabberbeans, thus in Java, a simple accept component
> showing the presence of the users. I should still have the source but I
> dodn't find it for the moment ;-(
>
> It's an option, but I'm sure there are other solutions. Tell me if you
> are interested by this one, I will dig in my src dir to find the code of
> the component.
>
> Philippe
>
> Sylvain Roberdeau wrote:
>
> >Langage isn't a contraint for a start. I can use Perl, C, C++,...
> >But the main information I'm looking for is the way to do this.
> >All example I find in Perl, need a registration from user... but I guess
> >it's not an obligation. But such component need to register a namespace
> >which can conflict with other element.
> >An other way, it's to build a jsm component but for a first step (an
> >expiremental step) it's quite heavy.
> >Can you indicate me the best way please?
> >
> >Sylvain
> >
> >
> >
> >
> >Philippe Raxhon a écrit :
> >
> >
> >
> >>Hi Silvain,
> >>
> >>What langage do you want to use? It will make a difference on what is
> >>available for now. Depending on how it's implemented, running a
> >>component that only listens on presence can't hurt any other
> >>module/component, but it could require some modification in the jabber
> >>configuration file.
> >>
> >>Sylvain Roberdeau wrote:
> >>
> >>
> >>
> >>>Hi,
> >>>
> >>> I'm reading sample code, docs, but I'm not sure to understand if it
> >>>s possible to create a module or a component only to receive user's
> >>>presence.
> >>> This is a test project for me to produce a realtime MRTG service to
> >>>count activity of a Jabber Server.
> >>>
> >>> And other basic XML tag (message, iq,...)?
> >>> I wonder whether it's possible to receive these data without to
> >>>disrupt other module or components.
> >>> I'm looking for example or sample code...
> >>>
> >>>Thank you
> >>>
> >>>Sylvain
> >>>
> >>>_______________________________________________
> >>>jdev mailing list
> >>>jdev at jabber.org
> >>>http://mailman.jabber.org/listinfo/jdev
> >>>
> >>>
> >>>
> >>>
> >>>
> >>_______________________________________________
> >>jdev mailing list
> >>jdev at jabber.org
> >>http://mailman.jabber.org/listinfo/jde
> >>
> >v
> >
> >
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylvain.roberdeau.vcf
Type: text/x-vcard
Size: 466 bytes
Desc: Carte pour Roberdeau Sylvain
URL: <https://www.jabber.org/jdev/attachments/20020806/45045943/attachment-0002.vcf>
More information about the JDev
mailing list