Esempio n. 1
0
  /*
   * (non-Javadoc)
   *
   * @see org.mule.providers.AbstractConnector#create()
   */
  public void doInitialise() throws InitialisationException {
    super.doInitialise();
    if (queueEvents) {
      if (queueProfile == null) {
        queueProfile = MuleManager.getConfiguration().getQueueProfile();
      }
    }

    try {
      adapterClass = ClassUtils.loadClass(serviceDescriptor.getMessageAdapter(), getClass());
    } catch (ClassNotFoundException e) {
      throw new InitialisationException(
          new Message(
              Messages.FAILED_LOAD_X, "Message Adapter: " + serviceDescriptor.getMessageAdapter()),
          e);
    }
  }
Esempio n. 2
0
 public void doInitialise() throws InitialisationException {
   super.doInitialise();
   try {
     if (scheduler == null) {
       if (factory == null) {
         Object[] args = null;
         if (factoryProperties != null) {
           args = new Object[] {factoryProperties};
         }
         factory = (SchedulerFactory) ClassHelper.instanciateClass(factoryClassName, args);
       }
       scheduler = factory.getScheduler();
     }
   } catch (Exception e) {
     throw new InitialisationException(
         new Message(Messages.INITIALISATION_FAILURE_X, "Quartz provider"), e);
   }
 }