[JDEV] Creating a presence server component?

Anantha Krishnan V vakrishnan at yifan.net
Thu Aug 8 02:01:52 CDT 2002


Philippe, do you mean the JabberBeans distribution is buggy? I have heard about the Muse API for Jabber. How does it compare with JabberBeans?

Thanks for taking time to help me out.

Regards,
Ananth.
  ----- Original Message ----- 
  From: Philippe Raxhon 
  To: jdev at jabber.org 
  Sent: Wednesday, August 07, 2002 2:35 PM
  Subject: Re: [JDEV] Creating a presence server component?


  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 --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20020808/f3ff0ac1/attachment-0002.htm>


More information about the JDev mailing list