Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2150

use-ccm flag gets over written after server started

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 7.1.0.Beta1
    • 7.1.0.Alpha1
    • JCA
    • None
    • Hide

      Edit standalone.xml and add use-ccm="false" to your data source definition.
      Start the server (you will notice the attribute is missing after the start).
      Shut down the server (you will notice its back, but now true again).

      Show
      Edit standalone.xml and add use-ccm="false" to your data source definition. Start the server (you will notice the attribute is missing after the start). Shut down the server (you will notice its back, but now true again).

      In doing some performance testing, I wanted to remove the Cached Connection Manager (CCM) from the data source I configured. Since you cannot edit this attribute through the console (as of yet), I hand edited the XML file to add use-ccm="false" as follows:

      <datasource jndi-name="java:/MySqlDS" pool-name="MySqlDS" enabled="true" jta="true" use-java-context="true" use-ccm="false">

      After starting the server, I noticed that the use-ccm value disappears when the server is running, and the above line looks like this:

      <datasource jndi-name="java:/MySqlDS" pool-name="MySqlDS" enabled="true" jta="true" use-java-context="true">

      After shutting down the server, I noticed that the use-ccm attribute was back, but was now true again, as follows:

      <datasource jndi-name="java:/MySqlDS" pool-name="MySqlDS" enabled="true" jta="true" use-java-context="true" use-ccm="true">

      So, this is obviously broken. I'm not even sure if when I set it to false, that it actually is running that way. At this point, since its missing from the configuration after startup, and is written back as true, I believe its probably running with a value of true as well, which is obviously not what I want.

              smaestri@redhat.com Stefano Maestri
              rhn-engineering-anmiller Andrig Miller (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: