Hi Hiranya,
EventBrokerBuilderDS is written as same as other declarative services[1],
This may be due to a problem in log4j logging.
Thanks
Shammi
[1]
/**
* @scr.component name="eventbrokerbuilder.component" immediate="true"
* @scr.reference name="registry.service"
* interface="org.wso2.carbon.registry.core.service.RegistryService"
cardinality="1..1"
* policy="dynamic" bind="setRegistryService" unbind="unsetRegistryService"
* @scr.reference name="qpid.service"
* interface="org.wso2.carbon.qpid.service.QpidService" cardinality="1..1"
* policy="dynamic" bind="setQpidService" unbind="unsetQpidService"
* @scr.reference name="realm.service"
interface="org.wso2.carbon.user.core.service.RealmService"
* cardinality="1..1" policy="dynamic" bind="setRealmService"
unbind="unsetRealmService"
* @scr.reference name="configurationcontext.service"
* interface="org.wso2.carbon.utils.ConfigurationContextService"
cardinality="1..1"
* policy="dynamic" bind="setConfigurationContextService"
unbind="unsetConfigurationContextService"
*/
protected void activate(ComponentContext context) {
try {
EventBroker eventBroker =
EventBrokerBuilder.createEventBroker();
context.getBundleContext().registerService(EventBroker.class.getName(),
eventBroker, null);
registerAxis2ConfigurationContextObserver(context);
log.info("Successfully registered the event broker");
EventBrokerHolder.getInstance().setEventBroker(eventBroker);
} catch (Throwable e) {
log.error("Can not create the event broker", e);
}
}
On Wed, Apr 20, 2011 at 10:12 AM, Hiranya Jayathilaka <[email protected]>wrote:
> [2011-04-20 10:11:21,813] INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2
> Carbon started in 55 sec
> [2011-04-20 10:11:22,291] INFO
> {org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS} -
> Successfully registered the event broker
>
> Any idea why this happens?
>
>
> Thanks
> --
> Hiranya Jayathilaka
> Senior Software Engineer;
> WSO2 Inc.; http://wso2.org
> E-mail: [email protected]; Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
--
Best Regards,*
Shammi Jayasinghe*
Senior Software Engineer; WSO2, Inc.; http://wso2.com,
mobile: +94 71 4493085
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev