JMS Database
The two JBoss nodes must point to the same JMS database so that no messages are lost. For example, if JBoss on SERVER1 goes down, the queues on SERVER2 must be able to connect to the JMS database where the unprocessed messages from SERVER1 are located. To ensure that this happens, make sure the *ds.xml file is pointing to the correct message persistence. The actual file name depends whether you are running SQL or Oracle.
For example, C:\Precision\WebUI\jboss\server\default\deploy\mssql2005-ds.xml points to the SQL database. As displayed below, this file contains the database name, the user name, and the password. These details should be the same on all JBoss nodes in the cluster.
<connection-url>jdbc:sqlserver://[SERVERNAME]:[PORT];DatabaseName=[DATABASENAME]</connection-url>
<driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
<user-name>[DATABASEUSER]</user-name>
<password>[DATABASEPASS]</password>