I’d like to know what exactly is needed for the bytes parameter to install a module programmtically. Is this array the number of bytes the module is limited to to run or the number of bytes allocated to it for startup.
public void setup(GatewayContext context) {
try {
this.m_context = context;
} catch (Exception e) {
m_logger.fatal(“Error setting up module.”, e);
}
}
modulesCreatedProviders = m_context.getModuleManager().getModules();
// m_context.getModuleManager().installModule(this.toString(), );
for (Object providerObj : modulesCreatedProviders) {
m_context.getModuleManager().restartModule(providerObj.toString());
m_context.getModuleManager().uninstallModule(providerObj.toString());
byte startup[] = new byte[500];
m_context.getModuleManager().installModule(providerObj.toString(), startup);