Package org.jboss.jca.common.metadata.jbossra

Examples of org.jboss.jca.common.metadata.jbossra.JbossRa


    * @return The metadata
    * @exception Exception Thrown if an error occurs
    */
   public JbossRa getJBossMetaData(File root) throws Exception
   {
      JbossRa result = null;

      File metadataFile = new File(root, "/META-INF/jboss-ra.xml");

      if (metadataFile.exists())
      {
         InputStream input = null;
         String url = metadataFile.getAbsolutePath();
         try
         {
            long start = System.currentTimeMillis();

            input = new FileInputStream(metadataFile);
            result = (new JbossRaParser()).parse(input);

            log.debugf("Total parse for $s took %d ms", url, (System.currentTimeMillis() - start));

            log.tracef("successufully deployed $s", result.toString());
         }
         catch (Exception e)
         {
            log.error("Error during parsing: " + url, e);
            throw e;
View Full Code Here

TOP

Related Classes of org.jboss.jca.common.metadata.jbossra.JbossRa

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.