Petals "Node 1" in standalone mode, deploy endpoint (Interface,Service,EP)
Petals "Node 2" in standalone mode, deploy same endpoint (Interface,Service,EP)
Stop nodes
Reconfigure topology: Node 1 is master, Node 2 is slave
Start Node 1, then Node 2
Doing so, you will obtain 2 EPs with same name (Interface,Service,EP).
Don't know which one is invoked... but it works if a client calls the EP.
Petals "Node 1" in standalone mode, deploy endpoint (Interface,Service,EP)
Petals "Node 2" in standalone mode, deploy same endpoint (Interface,Service,EP)
Stop nodes
Reconfigure topology: Node 1 is master, Node 2 is slave
Start Node 1, then Node 2
Doing so, you will obtain 2 EPs with same name (Interface,Service,EP).
Don't know which one is invoked... but it works if a client calls the EP.
Roland Naudin added a comment - Tue, 21 Dec 2010 - 11:07:23 +0100 It must be forbidden to deploy the same endpoint (endpointname/serviceName) twice in a Petals domain.
Pierre-Yves Gibello added a comment - Tue, 21 Dec 2010 - 11:28:33 +0100 Right, it was not intentional... but the registry accepted the 2 EPs (they were visible in the sample client's EP list).
Christophe DENEUX added a comment - Fri, 1 Apr 2011 - 11:26:02 +0200 Christophe, are you sure adding a constraint will solve the problem ? On the master, the constraint will avoid:
to insert the second EPs (EP of the slave) on the master
to insert a second EP (EP of the master) on the slave
and so, we will not have the same endpoint on each node.
Christophe DENEUX added a comment - Wed, 4 May 2011 - 18:14:19 +0200 Even if the registry is synchronized, we can deployed the same endpoint twice.
It seems that a check is missing.
Christophe DENEUX added a comment - Mon, 9 May 2011 - 15:42:57 +0200 Now in petals-entreprise-3.1.x, if the registry is synchronized, an error occurs when installing an endpoint twice.
It must be forbidden to deploy the same endpoint (endpointname/serviceName) twice in a Petals domain.