1 Reply Latest reply on Nov 29, 2006 10:24 AM by brian.stansberry

    JMS clustering and the backing Database

    meme

      Hi there,

      I've got an System with two servers on each of them I've got a JBoss and a postgresql database. The both Jboss-servers are clustered.
      The postgres-databases are replicated by c-jdbc.

      Now we need also jms (and of course clustered). As described in the documentation I've changed the default-datasource from hsqldb to the postgres-database. But can I replicate them also with c-jdbc?
      Which node writes to the database if the node receive an message?
      Are both writing to their own database? Or is it possible to replicate them?

      The documentation wasn't very helpfully on this issue.

      Thanks for your help.

      Marc

        • 1. Re: JMS clustering and the backing Database
          brian.stansberry

          The JMS server talks to the database via JDBC, and c-jdbc basically is a JDBC compliant driver, so that should work.

          Re: which node writes to the database, clustered JBossMQ uses an HASingleton concept with failover of the JMS server. That is, the JMS server is only running on one node at a time; if that node fails the JMS server is started on another node. All nodes should be configured to work with the same underlying database.