4 Replies Latest reply on Jun 20, 2008 2:02 PM by edavis

    Mysql replication and JBOSS

    tricky

      I have mysql replication stuff installed master slave (where insert,update uses master and select's are on slave) does anyone know how to setup *-ds.xml file to work with mysql replication driver ? or maybe peristence.xml ?

        • 1. Re: Mysql replication and JBOSS
          vickyk

           

          "tricky" wrote:
          I have mysql replication stuff installed master slave (where insert,update uses master and select's are on slave) does anyone know how to setup *-ds.xml file to work with mysql replication driver ? or maybe peristence.xml ?

          Have you searched the required property in mysql driver's documentation ?

          • 2. Re: Mysql replication and JBOSS
            tricky

            I did "setReadOnly" but it cannot be set - using netbeans. When i set it manually in xml it doesn't work and EnitytManager always makes selects from master database

            • 3. Re: Mysql replication and JBOSS
              vickyk

               

              "tricky" wrote:
              I did "setReadOnly" but it cannot be set - using netbeans. When i set it manually in xml it doesn't work and EnitytManager always makes selects from master database

              I don't think setReadOnly would be the property which would set the replication feature , I was expecting the driver property containing such info .
              Where did you findout that setting the readOnly will be helpful ?


              • 4. Re: Mysql replication and JBOSS
                edavis

                Did you managed to get it working? I need the same