title: Accesing an Embedded Derby Database within Weblogic 10g
body: <p>I have a project call Derby where I have my embedded Derby Database.</p>
  
  <p>My deployment involves multiple projects all packed within an EAR for Weblogic to use. In this EAR I put my Derby project configured for embedded access.</p>
  
  <p>My problem is that the string that I use to access the Derby database references a path in disc. Which is clearly wrong since the EAR is in memory when deployed in weblogic.</p>
  
  <p>Doing a little research I know there is a way to create a datasource to access the derby database in "Network Mode". But that escapes from what I need to do, which is access through embedded mode.</p>
  
  <p>The deployment is built by an ANT script. It compiles and separates the Derby Project in two jars (Java classes that access the Derby Database and the Database itself).</p>
  
  <p>And the question is... How do I access the Derby database within the EAR deployed in my Weblogic?</p>