<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How does an EventBean act in a cluster</title><link>https://answers.axonivy.com/questions/720/how-does-an-eventbean-act-in-a-cluster</link><description>&lt;p&gt;We do some broadcast calls from plain Java, with an self written EventSubscriber for Event Start elements. This EventSubscriber catches an identifier and works fine in the Designer. It looks to works fine on the server as well. The EventSubscriber extends &lt;code&gt;AbstractProcessStartEventBean&lt;/code&gt; which extends &lt;code&gt;IProcessStartEventBean&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Is this also works correctly when we run the server as a cluster?
We expect that the event is starting just ones.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/720/how-does-an-eventbean-act-in-a-cluster" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 30 May 2014 08:15:42 -0400</lastBuildDate><item><title>Answer by Genzer Hawker</title><link>https://answers.axonivy.com/questions/720/how-does-an-eventbean-act-in-a-cluster/724</link><description>&lt;p&gt;Taken from &lt;a href="http://bit.ly/1tsXJJD"&gt;Ivy Document&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;How Process Start Event Beans work on
a Xpert.ivy Cluster Server&lt;/p&gt;
&lt;p&gt;A Xpert.ivy Cluster Server consists of
multiple server instances (nodes) that
are running on different machines.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Normally process start event beans are instantiated on every node but
only started on the master node. This
guarantees that for each Event Start
process element only one bean is
running, no matter what the total
number of nodes in the cluster server
is.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;However, if you need your process
start event bean to be started on all
cluster nodes, you may instruct the
server to do so. Just have your bean
class implement the (empty) marker
interface IMultiNodeCapable and the
above restriction will no longer
apply.&lt;/p&gt;
&lt;p&gt;Please be aware of the fact that
having multiple running instances of
the same bean may lead to race
conditions.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Your &lt;code&gt;EventSubscriber&lt;/code&gt; will work only on Master Node and instantiated once. If you have multiple &lt;code&gt;ProcessModelVersion&lt;/code&gt; in your system, then the Ivy Server will guarentee only the &lt;code&gt;EventSubscriber&lt;/code&gt; of the active PMV is running.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Genzer Hawker</dc:creator><pubDate>Fri, 30 May 2014 08:15:42 -0400</pubDate><guid>https://answers.axonivy.com/questions/720/how-does-an-eventbean-act-in-a-cluster/724</guid></item></channel></rss>