Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-4104

Documentation Website: XA DataSource Configuration: Bug in MySQL Sample Code

Attach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

Details

    Description

      The TomEE documentation website, XA DataSource Configuration page, MySQL sample code is missing a required </Resource> closing tag.

      The first MySQL resource currently reads:

          <Resource id="demo/jdbc/XADataSource" type="DataSource">
            XaDataSource demo/jdbc/XADataSourceXA
            JdbcDriver  com.mysql.cj.jdbc.Driver
            JdbcUrl jdbc:mysql://192.168.37.202:3306/movie
            username root
            password my-secret-pw
            JtaManaged true
            InitialSize 10
            MaxActive 128
            MaxIdle 25
            MinIdle 10
            AccessToUnderlyingConnectionAllowed true
            TestOnBorrow false
            TestWhileIdle true
            TimeBetweenEvictionRuns 1 minute
            MaxWaitTime 0 seconds
            ValidationQuery select 1
      

       
      It should be:

          <Resource id="demo/jdbc/XADataSource" type="DataSource">
            XaDataSource demo/jdbc/XADataSourceXA
            JdbcDriver  com.mysql.cj.jdbc.Driver
            JdbcUrl jdbc:mysql://192.168.37.202:3306/movie
            username root
            password my-secret-pw
            JtaManaged true
            InitialSize 10
            MaxActive 128
            MaxIdle 25
            MinIdle 10
            AccessToUnderlyingConnectionAllowed true
            TestOnBorrow false
            TestWhileIdle true
            TimeBetweenEvictionRuns 1 minute
            MaxWaitTime 0 seconds
            ValidationQuery select 1
          </Resource>
      

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            stoxford James Parsons
            stoxford James Parsons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Slack

                  Issue deployment