title: How to get current EAR location programmatically with JBoss
body: <p>Does anyone know how to get programmatically the absolute path in the filesystem for an EAR deployed in JBoss, from Java code within that same EAR?</p>
  
  <p>I need this because I want to copy some files that are inside the EAR to another part of the filesystem, on deploy-time.</p>
  
  <p>Thank you everyone!</p>