You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2013/03/28 09:40:08 UTC
svn commit: r1461982 -
/isis/site/trunk/content/core/services/publishing-service.md
Author: danhaywood
Date: Thu Mar 28 08:40:07 2013
New Revision: 1461982
URL: http://svn.apache.org/r1461982
Log:
isis site - pages on our various services
Modified:
isis/site/trunk/content/core/services/publishing-service.md
Modified: isis/site/trunk/content/core/services/publishing-service.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/core/services/publishing-service.md?rev=1461982&r1=1461981&r2=1461982&view=diff
==============================================================================
--- isis/site/trunk/content/core/services/publishing-service.md (original)
+++ isis/site/trunk/content/core/services/publishing-service.md Thu Mar 28 08:40:07 2013
@@ -3,8 +3,6 @@ Title: Publishing Service [1.2.0-SNAPSHO
The Publishing Service enables Isis to publish both changes to domain objects, and also action invocations to third parties. A typical use case is to publish onto a pub/sub bus such as [ServiceMix](http://servicemix.apache.org/) or [ActiveMQ](http://activemq.apache.org/) to keep other systems up to date.
-> Publishing of action invocations is supported by all objectstores. Publishing of changed objects is currently only supported by the [JDO objectstore](../../components/objectstores/jdo/about.html).
-
Publishing requires at minimum two things:
* domain classes annotated with `PublishedAction` or `PublishedObject`
@@ -17,6 +15,8 @@ Publishing requires at minimum two thing
Over and above this, the service does provide considerable flexibility for fine-tuning the serialized form and the contents (payload) of the event.
+> Publishing of action invocations is supported by all objectstores. Publishing of changed objects is currently only supported by the [JDO objectstore](../../components/objectstores/jdo/about.html).
+
### Annotating the Domain Model
To indicate that an action should be published, use the `PublishedAction` annotation. For example:
@@ -41,8 +41,6 @@ Similarly, to indicate that any changes
Either or both of these annotations can be used.
-> At the time of writing, only the [JDO Objectstore](../../components/objectstores/jdo/about.html) supports the publishing of objects. (Published actions are supported by all object stores).
-
As described further down in this article, it is possible to fine-tune the payload. However, simply using the above annotations will suffice in many cases.
### Configuring the Publishing Service