]
Kabir Khan updated WFLY-4661:
-----------------------------
Fix Version/s: 10.0.0.Final
I am bulk closing old issues that were resolved with no fix version. There are quite many
of these so I am not checking the history properly. From the lastModified date of this
issue it looks like it was done for 10.0.0.Final (I am not caring about alpha/beta etc.
for this exercise). If that is incorrect please adjust as needed.
Provide Support for Clustered Singleton MDBs
--------------------------------------------
Key: WFLY-4661
URL:
https://issues.jboss.org/browse/WFLY-4661
Project: WildFly
Issue Type: Feature Request
Components: Clustering, JMS
Affects Versions: 10.0.0.Alpha1
Reporter: Flavia Rainone
Assignee: Flavia Rainone
Priority: Minor
Fix For: 10.0.0.Final
Provide Support for Clustered Singleton MDBs.
Provide annotation and configuration support to mark such MDB deployments Clustered
Singleton MDBs.
When "Clustered Singleton MDBs" are deployed in a cluster; only one node
(server) is active to consume messages serially. When the node fails; another the active
node's "Clustered Singleton MDBs" starts consuming the messages.
To mark an MDB as clustered singleton, one can either use the clustered-singleton xml
element, like this:
<jboss:ejb-jar
xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:c="urn:clustering:1.1"
xmlns:d="urn:delivery-active:1.1"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
version="3.1"
impl-version="2.0">
<c:clustering>
<ejb-name>HelloWorldQueueMDB</ejb-name>
<c:clustered-singleton>true</c:clustered-singleton>
</c:clustering>
</jboss:ejb-jar>
Or one can use the @org.jboss.ejb3.annotation.ClusteredSingleton in your MDB class.
This feature requires no extra configuration at the server, apart from running the
service in a cluster.