Package org.jboss.soa.esb

Examples of org.jboss.soa.esb.ConfigurationException


                    {
                        log.info("Deleting '" + vfsDeployment.getSimpleName() + "'");
                        deploymentFile.delete();
                    }
                }
                throw new ConfigurationException("Error deploying '" + vfsDeployment.getName() + "'.", throwable);
            }
        }
        this.state = CREATED;
    }
View Full Code Here


                    }
                }
            }
        }
       
        throw new ConfigurationException("Invalid ESB Configuration: No <bus> configuration matching busid reference value [" + busid + "].");
    }
View Full Code Here

                }

                // Make sure each Service config has a message aware listener...
                // http://jira.jboss.com/jira/browse/JBESB-648
                if(!exposesInVMListener(service) && !isGateway && !listenerAdded) {
                    throw new ConfigurationException("Service '" + service.getCategory() + ":" + service.getName() + "' does not define a Message-Aware (is-gateway='false') nor InVm Listener.");
                }
            }
        }
       
        return gateways;
View Full Code Here

                numScheduleProviders++;
            }
        }

        if(numScheduleProviders > 1) {
            throw new ConfigurationException("Configuration contains " + numScheduleProviders + " <schedule-provider> configurations.  Only one of this provider type can exist per configuration.");
        }
    }
View Full Code Here

     */
    public Bus getBus(String busid) throws ConfigurationException {
        Bus bus = getOptionalBus(busid);

        if(bus == null) {
            throw new ConfigurationException("Invalid ESB Configuration: No <bus> configuration matching busid reference value [" + busid + "].");
        }

        return bus;
    }
View Full Code Here

                }

                // Make sure each Service config has a message aware listener...
                // http://jira.jboss.com/jira/browse/JBESB-648
                if(!exposesInVMListener(service) && !isGateway && !listenerAdded) {
                    throw new ConfigurationException("Service configuration for Service '" + service.getCategory() + ":" + service.getName() + "' doesn't define a Message-Aware Listener (i.e. is-gateway='false').");
                }
            }
        }

        return gateways;
View Full Code Here

                numScheduleProviders++;
            }
        }

        if(numScheduleProviders > 1) {
            throw new ConfigurationException("Configuration contains " + numScheduleProviders + " <schedule-provider> configurations.  Only one of this provider type can exist per configuration.");
        }
    }
View Full Code Here

        listenerNode.setAttribute("name", listener.getName());

    try {
      bus = (SqlBus) model.getBus(listener.getBusidref());
    } catch (ClassCastException e) {
      throw new ConfigurationException("Invalid busid reference [" + listener.getBusidref() + "] on listener [" + listener.getName() + "].  A <sql-listener> must reference a <sql-bus>.");
    }
    try {
      provider = (SqlProvider) model.getProvider(bus);
    } catch (ClassCastException e) {
      throw new ConfigurationException("Invalid bus config [" + listener.getBusidref() + "].  Should be contained within a <sql-provider> instance.  Unexpected exception - this should have caused a validation error!");
    }
   
    if (provider.getDatasource() != null) {
      if ((provider.getUsername() != null)
          || (provider.getDriver() != null)) { 
        throw new ConfigurationException ("Invalid sql-provider configuration : a datasource and a username/password/driver "
            + "combination cannot both be defined.   Use only one (datasource or JDBC connection info)."
            + "Datasource : [" + provider.getDatasource() + "] JDBC URL [" + provider.getUrl() + "]");
      }     
    } else if (provider.getUrl() == null) {
      throw new ConfigurationException ("Invalid sql-provider configuration : a datasource or a URL/username/password/driver "
          + "combination must be defined.   Use only one (datasource or JDBC connection info).  "
          + "URL was null.")
    } else if (provider.getUsername() == null) {
      throw new ConfigurationException ("Invalid sql-provider configuration :  a datasource or a URL/username/password/driver "
          + "combination must be defined.   Use only one (datasource or JDBC connection info).   "
          + "Username was null.")
    } else if (provider.getDriver() == null) {
      throw new ConfigurationException ("Invalid sql-provider configuration : either a datasource or a URL/username/password/driver "
          + "combination must be defined.   Use only one (datasource or JDBC connection info).   "
          + "Driver was null.");   
    }
   
    SqlMessageFilter messageFilter = listener.getSqlMessageFilter();
    if(messageFilter == null) {
      messageFilter = bus.getSqlMessageFilter();
      if(messageFilter == null) {
        throw new ConfigurationException("No <sql-destination> defined on either <sql-listener> [" + listener.getName() + "] or <sql-bus> [" + bus.getBusid() + "].");
      }
    }
        listenerNode.setAttribute("pollLatencySeconds", String.valueOf(listener.getPollFrequencySeconds()));
        if (provider.isSetTransacted()) {
            listenerNode.setAttribute(ListenerTagNames.TRANSACTED_TAG, Boolean.toString(provider.getTransacted())) ;
View Full Code Here

        encoding = config.getAttribute("encoding", "UTF-8");
        reportPath = config.getAttribute("reportPath");
        try {
            smooks = SmooksResource.createSmooksResource(splitterConfig);
        } catch (Exception e) {
            throw new ConfigurationException("Failed to create smooks resource", e) ;
        }
    }
View Full Code Here

        }
       
        // Get the default message flow properties (can be overriden by the message properties)...
    defaultMessageFromType = KeyValuePair.getValue(FROM_TYPE, properties);
    if(defaultMessageFromType != null && defaultMessageFromType.trim().equals("")) {
      throw new ConfigurationException("Empty '" + FROM_TYPE + "' config attribute supplied.");
    }
    defaultMessageToType = KeyValuePair.getValue(TO_TYPE, properties);
    if(defaultMessageToType != null && defaultMessageToType.trim().equals("")) {
      throw new ConfigurationException("Empty '" + TO_TYPE + "' config attribute supplied.");
    }
    defaultMessageFrom = KeyValuePair.getValue(FROM, properties);
    if(defaultMessageFrom != null && defaultMessageFrom.trim().equals("")) {
      throw new ConfigurationException("Empty '" + FROM + "' config attribute supplied.");
    }
    defaultMessageTo = KeyValuePair.getValue(TO, properties);
    if(defaultMessageTo != null && defaultMessageTo.trim().equals("")) {
      throw new ConfigurationException("Empty '" + TO + "' config attribute supplied.");
    }

        actionConfig = propertiesTree;
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.ConfigurationException

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.