Hello,
I want to customize the activate command in activation module to send a http 
request to an external web application after the publish is finished.

I wrote a simple Java program extending info.magnolia.commands.MgnlCommand 
class for sending the request, exported it as a jar, and put the jar in both 
WEB-INF/lib directories in both author and public instances. In groovy console, 
it works when I call the command as follows:
mgnl> cm = info.magnolia.commands.CommandsManager.getInstance()
===> 
info.magnolia.commands.CommandsManager@2c28e3d0
mgnl> cmd = cm.getCommand('default-notify')
===> 
com.gt.cmsutils.Notifier@1fdf3c22
mgnl> cmd.execute(ctx)
===> 
true

I also customized the activate command definition in activation module (see 
http://img42.com/JcBqx).

When I publish a change, the change is propagated to the public instance 
successfully, but the my custom command is not executed.

Any suggestions?

Thanks.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=be4d579f-ade0-463e-bfc1-23b71b77d465


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to