Expand my Community achievements bar.

New CommerceFactory not registering as a Service in Web Console Services

Avatar

Level 1

Hi,

I have created an AEM project using aem:project:archetype:11

I am trying to add a new commerce provider but that is not getting registered as a Service in Web Console Services.

The core bundle has been successfully installed as seen from console/system/bundles.

If anyone can help, that would be appreciated.

@Component

@Service

@Properties({@org.apache.felix.scr.annotations.Property(name="service.description", value={"Factory for reference implementation commerce service"}), @org.apache.felix.scr.annotations.Property(name="commerceProvider", value={"testProvider"}, propertyPrivate=true)})

public class TestCommerceServiceFactory extends AbstractJcrCommerceServiceFactory{

public TestCommerceServiceFactory() {}

public CommerceService getCommerceService(Resource res)

{

return new TestCommerceServiceImpl(getServiceContext(), res);

}

}

0 Replies