Package net.timewalker.ffmq3

Examples of net.timewalker.ffmq3.FFMQException


  public void addBridgeDefinition( BridgeDefinition bridgeDef ) throws JMSException
  {
      bridgeDef.check();
     
      if (!bridgeNames.add(bridgeDef.getName()))
          throw new FFMQException("Bridge name already exists : "+bridgeDef.getName(), "BRIDGE_ALREADY_EXIST");
         
      bridgeDefinitionList.add(bridgeDef);
  }
View Full Code Here


    {
        if (!bridgeDescriptor.exists())
            return null;
       
        if (!bridgeDescriptor.canRead())
            throw new FFMQException("Cannot access bridge definition descriptor : "+bridgeDescriptor.getAbsolutePath(),"FS_ERROR");
       
        return (BridgeDefinition)new XMLDescriptorReader().read(bridgeDescriptor, BridgeDescriptorHandler.class);
    }
View Full Code Here

          ErrorTools.log(e, log);
          return "Error processing administration command : "+e.getMessage();
        }
        catch (Exception e)
        {
          ErrorTools.log(new FFMQException("Cannot process admin message","INVALID_ADMIN_MESSAGE",e), log);
            return "Error processing administration command : "+e.getMessage();
        }
    }
View Full Code Here

            connectorServer = JMXConnectorServerFactory.newJMXConnectorServer(url, env, mBeanServer);
            connectorServer.start();
        }
        catch (Exception e)
        {
            throw new FFMQException("Could not initialize JMX agent","JMX_ERROR",e);
        }
    }
View Full Code Here

    {
      this.mBeanServer.registerMBean(mBean, name);
    }
    catch (Exception e)
    {
      throw new FFMQException("Cannot register MBean", "JMX_ERROR", e);
    }
  }
View Full Code Here

      {
          this.mBeanServer.unregisterMBean(name);
      }
      catch (Exception e)
      {
          throw new FFMQException("Cannot unregister MBean","JMX_ERROR",e);
      }
  }
View Full Code Here

  }
 
  private void checkProperties() throws JMSException
  {
    if (engineName == null || engineName.length() == 0)
      throw new FFMQException("Bean property 'engineName' is required","INVALID_BEAN_CONFIG");
    if (configLocation == null)
      throw new FFMQException("Bean property 'configLocation' is required","INVALID_BEAN_CONFIG");
  }
View Full Code Here

           
            return new Settings(settings);
        }
        catch (Exception e)
        {
            throw new FFMQException("Cannot load engine settings","INVALID_BEAN_CONFIG",e);
        }
  }
View Full Code Here

        {
            throw e;
        }
        catch (Exception e)
        {
          throw new FFMQException("Could not initialize server socket","NETWORK_ERROR",e);
        }
  }
View Full Code Here

            else
                return new ServerSocket(port,tcpBackLog,localAddr);
        }
        catch (Exception e)
        {
            throw new FFMQException("Cannot create server socket","NETWORK_ERROR",e);
        }
    }
View Full Code Here

TOP

Related Classes of net.timewalker.ffmq3.FFMQException

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.