Hi,
I have created custom transport handler in AEM 6.0 by implementing Transporthandler
@Component(immediate = true, metatype = false)
@Service(TransportHandler.class)
When i replicate something, my custom transport handler is not invoked. How can do I force CQ to use our custom TransportHandler implementation instead of the standard one ?
Solved! Go to Solution.
Views
Replies
Total Likes
You are essentially writing a new service for AEM. You have to tell AEM to use this service. YOu can use service ranking:
Service Ranking
OSGi Framework Service Ranking value is used to indicate the order used for calling this service. This is an int value where higher values designate higher precedence.
Default value is 0.
https://docs.adobe.com/docs/en/cq/5-6-1/deploying/osgi_configuration_settings.html
Views
Replies
Total Likes
See this older community thread:
Views
Replies
Total Likes
Can you post your full source code?
If you follow the link provided by Scott, you will see a link to https://forums.adobe.com/message/4785913 which explains how to implement this.
Regards,
Opkar
Views
Replies
Total Likes
here is the article that talks about custom handler:
http://www.tothenew.com/blog/custom-transport-handler-in-cq5aem/
have you implemented those two methods?
Views
Replies
Total Likes
I have implemented both the methods, but still my custom class is not invoked
Views
Replies
Total Likes
Did you configure AEM to use your custom one?
Views
Replies
Total Likes
What configurations we need to in AEM to use custom transport handler? Documentation didnt say anything about it. Even i cannot provide ranking.
Views
Replies
Total Likes
You are essentially writing a new service for AEM. You have to tell AEM to use this service. YOu can use service ranking:
Service Ranking
OSGi Framework Service Ranking value is used to indicate the order used for calling this service. This is an int value where higher values designate higher precedence.
Default value is 0.
https://docs.adobe.com/docs/en/cq/5-6-1/deploying/osgi_configuration_settings.html
Views
Replies
Total Likes
Hi Scott,
As suggested, added the service ranking(1000) for my custom transport handler, but still no luck. It is not being called. OOTB transport handler is called(com.day.cq.replication.impl.transport.Http). even OOTB doesnt have service ranking.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies