Skip navigation
2138 Views 1 Reply Latest reply: Nov 20, 2007 9:51 AM by Aznidin RSS
Bronze 8 posts since
Sep 13, 2007
Currently Being Moderated

Nov 20, 2007 6:33 AM

Load modules by configuration

 

Hi all,

 

 

 

 

 

XMPPServer is a graceful class where the openfire's modules have been loaded by static statements as:

 

 

loadModule(IQBindHandler.class.getName());

 

 

 

 

 

I need to disable some of them for instance IQPEPHandler but it isn't possibile because the load module call is hard coded.

 

 

I think it would be an improvement to mode module setup to xml configuration in this way:

 

 




List modules = JiveGlobals.getXMLProperties("modules"); 


for(String module: modules)


   loadModule(module);

 

 

 

 

 

What do you think about?

 

 

Thanks,

 

 

Giancarlo Frison

 

 

  • Aznidin KeyContributor 509 posts since
    Jul 5, 2006
    Currently Being Moderated
    Nov 20, 2007 9:51 AM (in response to Giancarlo Frison)
    Re: Load modules by configuration

    I remember that JabberD listed it's modules in the config file, allowing admins to select. However, JabberD warned about disabling the pre-config list because it might cause unexpected behavior as well as breaking the XMPP spec. Nevertheless, it's not a bad idea to have some control over optional modules.

More Like This

  • Retrieving data ...

Bookmarked By (0)