[jdev] Re: Adding external module to in-router chain
Stephen Marquard
scm at marquard.net
Thu Oct 21 07:21:24 CDT 2004
Carsten Madsen wrote:
> Is it possible to add an external component/module to the in-router
> chain of the sm.xml file and if so how?
>
> I assume the alternative is to clone mod_privacy/filter.c etc. and make
> an "internal" module. I need to intercept/filter all messages and reject
> those that do not pass through the installed filters a'la mod_validate
> except filtering will take place on the <body> content. I can not find a
> way to make jabber2d pass all messages on to an external component?
AFAIK external components have their own domain name and can register to
receive all messages (e.g. for logging), but I don't think you can use
an external component to filter messages as you describe.
I came across this intriguing perl module for adding embedded perl modules:
http://search.cpan.org/~piers/Jabber-mod_perl/
"Jabber::mod_perl is an embedded interpreter in the session manager of
jabberd2 (sm daemon). This allows the user to insert arbitrary perl code
(in the form of loaded modules) in to the processing chain of the
session manager, in a similar fashion to mod_perl for Apache.
Additionally, Jabber::mod_perl is available as a separate component
building framework built into jadperl. jadperl enables you to create
your own components in Perl, using a multiple, stacked handler
environment, that is based on NADs, and sx (giving you SSL, and SASL etc.)."
but I'm not sure if it's being maintained.
Regards
Stephen
More information about the JDev
mailing list