Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-8607

Defining custom jboss.server.data.dir outside of the JBoss server dir

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • TBD EAP 5
    • EAP_EWP 5.1.2
    • JBoss Enterprise Application Platform (EAP 5.1.2)

    • Hide

      In "jboss-service.xml" file use:

      <data-directory>file:${jboss.server.data.dir}/xmbean-attrs</data-directory>

      however, the folder /xmbean-attrs should be created/exist is the external location.

      Show
      In "jboss-service.xml" file use: <data-directory> file:$ {jboss.server.data.dir}/xmbean-attrs</data-directory> however, the folder /xmbean-attrs should be created/exist is the external location.
    • Needs More Info
    • NEW

    Description

      The temporary folder/files (/log, /tmp, /work) could be at a different location (for eg- /home/TempJBoss/TempLogs). But, defining a custom location for the /data directory, outside of the JBoss server dir is not possible.
      Even if using the system property I define -Djboss.server.data.dir=/home/TempJBoss/TempData , there will always be a /data/xmbean-attrs/ directory which gets created in /jboss-as/server/<server_name>/

      Looking at the XMBean Persistence in file "jboss-service.xml" shows :

      ....
      <attribute name="AttributePersistenceManagerConfig">

      <data-directory>data/xmbean-attrs</data-directory>

      </attribute>
      ....

      The <data-directory> location can be changed but it is always relative to server home dir.
      ....
      <attribute name="AttributePersistenceManagerConfig">

      <data-directory>../data/xmbean-attrs</data-directory>

      </attribute>
      ....

      However defining an external location (/home/TempJBoss/TempLogs/data/xmbean-attrs) or ${jboss.server.data.dir}/xmbean-attrs does not works.

      Attachments

        Activity

          People

            fnasser Fernando Nasser
            anuragdebnath Anurag Debnath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: