Package nexj.core.rpc.file

Examples of nexj.core.rpc.file.FileConnectionFactory


   /**
    * @see nexj.core.persistence.file.FileStorageConnectionFactory#getConnection(nexj.core.persistence.file.FileAdapter)
    */
   public FileConnection getConnection(FileAdapter adapter)
   {
      FileConnectionFactory factory;
     
      synchronized (this)
      {
         factory = m_factory;
      }
     
      try
      {
         return factory.getConnection();
      }
      catch (ResourceException ex)
      {
         if (s_logger.isDebugEnabled())
         {
            s_logger.debug("Rebinding to the stale factory \"" + m_sFactoryName + "\"");
         }
        
         try
         {
            synchronized (this)
            {
               // Check not already rebound
               if (factory == m_factory)
               {
                  initFactory();
               }
              
               factory = m_factory;
            }
           
            return factory.getConnection();
         }
         catch (NamingException nx)
         {
            if (s_logger.isDebugEnabled())
            {
View Full Code Here


   /**
    * @see nexj.core.persistence.file.FileStorageConnectionFactory#getConnection(nexj.core.persistence.file.FileAdapter)
    */
   public FileConnection getConnection(FileAdapter adapter)
   {
      FileConnectionFactory factory = makeFactory(adapter);

      try
      {
         return factory.getConnection();
      }
      catch (ResourceException ex)
      {
         throw ObjUtil.rethrow(ex);
      }
View Full Code Here

TOP

Related Classes of nexj.core.rpc.file.FileConnectionFactory

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.