on 08-12-2016 12:36 PM
Hi All,
We stumble upon an issue having a JCo integration setup. As we followed the guides on wiki/help, we still have issue initializing our beans, resulting in Hybris failing to startup.
This is how our spring definition looks like:
<bean id="calendarService" class="somepackage.implbean" scope="sapSession" parent="sapCoreBackendObjectJCo"/>
This is how our bean definition looks like:
@BackendType("CRM")
public class CalendarServiceImpl extends BackendBusinessObjectBaseJCo implements CalendarService {
We have all necessary extensions defined in local.extensions and the extensioninfo. However, this service bean never gets initiated and is used as a property reference for another bean (eg. Cronjob). and thus Hybris fails to startup.
Anyone an idea? Are we missing something?
Thanks! Wesley
you cant directly inject this bean to other bean as calendarService is session scope. use genericfactory to inject this bean into other beans. Example : see this oob implementation DefaultBolOrderFacade and see this method protected Search getSearch() { return genericFactory.getBean(SapordermgmtbolConstants.ALIAS_BO_SEARCH); } dont inject it in xml file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.