title: Real singleton service on tomcat's and Spring
body: <p>We have following server infrastracture:</p>
  
  <pre><code>2 GUI (handle just user GUI request) Tomcat nodes separate jvms 
  2 processing (background processing) Tomcat nodes separate jvms
  </code></pre>
  
  <p>All nodes have spring + oracle as backend (all node have the same databse) </p>
  
  <p>We need to implement TCP listener (based on fix protocol that will receive messages). Important part here is that it could be 
  runed only on one server node. Because protocol doesn't support multiple connections.</p>
  
  <p>In other words we need to create this tcp listener only on one server node (processing node from above).  <strong>So question here how we can achieve this?</strong> 
  I think we need some kind of communication mechanism between nodes. We can simple create some database table and register services creation/destroy lifecycle there. 
  And recheck status before bean creation. But it souns like "reinventing the wheel".Maybe you know some existing ways or tools to do this?</p>