Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In a JBI component working on Servicemix 3, I have this code on its Bootstrap class :
public void init(InstallationContext context) throws JBIException
{ Logger mLogger = context.getContext().getLogger(this.getClass().getName(),null); mLogger.info("Bootstrap instance init"); }When I install this component on Servicemix 4, I get the error :
<loc-message>This operation is not available at installation time</loc-message>
[jbi-install-component] <stack-trace><![CDATA[java.lang.IllegalStateException: This operation is not available at installation time
[jbi-install-component]
[jbi-install-component] at org.apache.servicemix.jbi.deployer.impl.InstallationContextImpl.getLogger(InstallationContextImpl.java:284)
[jbi-install-component]
[jbi-install-component] at integra.common.BootstrapTemplate.init(BootstrapTemplate.java:19)
[jbi-install-component]
[jbi-install-component] at org.apache.servicemix.jbi.deployer.impl.ComponentInstaller.initBootstrap(ComponentInstaller.java:335)
[jbi-install-component]
[jbi-install-component] at org.apache.servicemix.jbi.deployer.impl.ComponentInstaller.init(ComponentInstaller.java:121)
[jbi-install-component]
[jbi-install-component] at org.apache.servicemix.jbi.deployer.impl.InstallationService.doLoadNewInstaller(InstallationService.java:219)
[jbi-install-component]
[jbi-install-component] at org.apache.servicemix.jbi.deployer.impl.InstallationService.install(InstallationService.java:165)
[jbi-install-component]
[jbi-install-component] at org.apache.servicemix.jbi.deployer.impl.AdminCommandsImpl.installComponent(AdminCommandsImpl.java:56)
is it a bug ? if not, what kind of Logger do we have access at the BootStrap level ?