[JDEV] Creating a presence server component?

Sylvain Roberdeau sylvain.roberdeau at terravirtual.net
Sun Aug 11 05:48:49 CDT 2002


Hi,

     sorry if I was not clear :)
    I hope to create an "element" for Jabber server which can intercept
<presence>, <message> and <iq> and apply some specific process. For example, log
all data with a specific structure, file repartition, SNMP messages, MRTG...
    I haven't a good grip on C to build all with this language and I want to
split process in a separate Jabberd (to avoid overload)
    The only way if find it's to build a JSM Module which send specific message
to a service (write in Java, Perl, Python,...)
    Jabberd ->JSM module -> Service
    The constraint is to create a specific message structure between JSM Module
and Service (maybe with <x> namespace).

    I was looking for an other way :  build a specific service which can receive
all blocks in a separate server. I don't kown if it's possible and I guess there
are some limitations (presence = avalaible or unavalaible, none other by
example).

    If somebody knows an other solution than the first...

Sylvain

Philippe Raxhon a écrit :

> Hi Sylvain and Anantha,
>
> First of all, Sylvain,when using a presence bcc, it can't hurt the JSM
> module "mod_presence", it's a blinded carbon copy. But could you be more
> specific when you say:
> /"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 occur with the JSM module
> "mod_presence"./"
>
> Anantha, the main issue I had writing a component using jabberbeans is
> that the code in the latest snapshot is broken for the accept component.
> I had to make modifications to jabberbeans before having a working
> component. I never made modifications to the <browse> or <register>
> sections, my component was for external use only and was not intended to
> interact with the server or the users, not sending anything back.
>
> I don't forget you and I think the code is on a box I don't use anymore
> but I still can access. I'm pretty sure I can find it. Give me one or
> two days, it's quite hectic for the moment.
>
> Cheers
>
> Philippe
>
> Anantha Krishnan V wrote:
>
> > Philippe, I followed your chat with Sylvain. I am trying to write an
> > accept component using JabberBeans too. If you find your code, could I
> > have a copy of it too? Especially the changes made in the <browse> and
> > <register> sections of the jabber.xml config file.
> >
> > Thanks and Regards,
> > Ananth.
> >
> >     ----- Original Message -----
> >     *From:* Philippe Raxhon <mailto:raxhonp at easynet.be>
> >     *To:* jdev at jabber.org <mailto:jdev at jabber.org>
> >     *Sent:* Tuesday, August 06, 2002 3:24 PM
> >     *Subject:* Re: [JDEV] Creating a presence server component?
> >
> >     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 <mailto:jdev at jabber.org>
> >     >>>http://mailman.jabber.org/listinfo/jdev
> >     >>>
> >     >>>
> >     >>>
> >     >>>
> >     >>>
> >     >>_______________________________________________
> >     >>jdev mailing list
> >     >>jdev at jabber.org <mailto:jdev at jabber.org>
> >     >>http://mailman.jabber.org/listinfo/jde
> >     >>
> >     >v
> >     >
> >     >
> >
> >
> >
> >     _______________________________________________
> >     jdev mailing list
> >     jdev at jabber.org <mailto:jdev at jabber.org>
> >     http://mailman.jabber.org/listinfo/jdev
> >
>
> _______________________________________________
> 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/20020811/ded9e14a/attachment-0002.vcf>


More information about the JDev mailing list