4 Replies Latest reply on Jul 25, 2005 5:41 PM by Szymon Dembek

    Directory paths parsed wrongly under Windows

    Szymon Dembek Newbie

      I'm playing a bit with Embedded Derby database.

      Almost everything seems fine, but I have some problems when deploying a XA datasource:

      <xa-datasource>
      <jndi-name>jdbc/xa-datasource</jndi-name>
      <track-connection-by-tx/>
      <xa-datasource-class>org.apache.derby.jdbc.EmbeddedXADataSource</xa-datasource-class>
      
      <xa-datasource-property name="DatabaseName">directory:${jboss.server.data.dir}${/}derby${/}derbyDB</xa-datasource-property>
      
      <transaction-isolation>TRANSACTION_REPEATABLE_READ</transaction-isolation>
      
      <user-name>sa</user-name>
      <password></password>
      
      <min-pool-size>5</min-pool-size>
      <max-pool-size>20</max-pool-size>
      </xa-datasource>
      


      The problem is with the db path I have to pass to the XADataSource (DatabaseName xa-datasource-property)

      When I pass it in the form as above, the path is wiped off the backslashes. The workaround is to supply full system path (no jboss.server.data.dir variables) with double backslashes or single slashes, for example

      c:\jboss....

      or

      c:\\jboss...


      But it is very inconvienient to write the whole system path in conf XML, I'd like to use jboss.server.data.dir variable.

      Is it a bug or is there possibly a way to pass the path correctly using jboss system variables?

      Thanks

      --
      Demboos