cancel
Showing results for 
Search instead for 
Did you mean: 

Two Extension from ycommercewebservice template

Former Member
0 Kudos

Hi ,

Suppose we have interactions with two external systems and we don't want to use the same extension for interaction.

Idea is to create two extensions from ycommercewebservice template where each extension will take care of interaction with one external system.

I tried to implement the same but got duplicate definition errors.Any way to resolve conflicts ?

Can both extensions exists in parallel ?

  de.hybris.bootstrap.beangenerator.BeanGenerationException: Duplicate definit
 ion of attribute (de.hybris.platform.commercefacades.order.data.CartModificationDataList#cartModificationList) in  <Firstinterfaces> it has be
 en already defined in <Secondinterfaces>

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

No, extensions in Hybris are not made to be duplicated. They need to be extended by additional extensions with their own namespace.

Former Member
0 Kudos

Hi Abishek,

Thanks for the response.

Cant two ycommercewebservice extension co-exist in the same Hybris instance ?

Former Member
0 Kudos

The general approach is to write reusable code behind a facade and have it required by different extensions. As the context of the extensions is same, the same class is used across different extensions.