Hi Jun,

you can trigger events using the server-side Javascript (Rhino) replication 
[1]. You can use different behaviour for put (save) and delete. It's possible 
to call methods from other Java classes or create your own jar, add it to your 
replsitory and call your own function from the server side Javascript.

The syntax to import class org.onehippo.MyObject is
importClass(Packages.org.onehippo.MyObject);
then use it as:
var myObject = new MyObject();
myObject.myMethod("someArgument");

[1] 
http://www.hippocms.org/display/CMS/6.+Hippo+Repository+Configure+Replication

Jasha

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Tue 18-11-2008 01:39
To: [email protected]
Subject: [HippoCMS-dev] trigger external event upon save/publish/delete
 
Hi guys,

I would like to trigger some external event upon Hippo save/publish.
What would be the best approach?

 

I looked into postprocessing for the type templates, but they are just
xslt transformations.  After I read through the recent JMS Queue for
Hippo thread, I am planning to have a client listening to the Hippo JMS
topic.  Even though, I would still like to find out if there are other
ways for me to trigger external events, I would like to do something as
simple as poking a url.

 

Suggestions? Ideas?

 

Thanks a lot!

Jun 

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html


********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to