我的ATG安装启用了Rest MVC,并在ActorChainRestRegistry.properties中注册了一些actor链。
在查看Oracle ATG Rest API文档后,我找到了对atg.commerce.sitemap.CatalogSitemapGenerator的引用,我希望能够使用它。
我注意到ActorChainRestRegistry中的其他条目在其actor链中列出了一个Actor,但我似乎无法弄清楚这些是在哪里定义的。
简而言之,我如何将atg.commerce.sitemap.CatalogSitemapGenerator实现为REST API端点?
答案 0 :(得分:1)
配置路径中的某处定义 BlehActor.properties 和 BlehActor.xml (当然,将 Bleh 替换为您的演员名称。
这应匹配ActorChainRestRegistry.properties中URL中的actor名称
在属性文件中基本定义:
$class=atg.service.actor.ActorChainService
definitionFile=/your/config/location/BlehActor.xml
BlehActor.xml是您的链定义。