Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-234

Blueprint service registration does not validate interfaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-esb-7.0.0
    • fuse-esb-7.0.0
    • None
    • None
    • % %

    Description

      I have the following blueprint.xml

      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
                 xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
                 xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
                 default-activation="lazy">
      
          <bean id="nmrEndpointListener" class="com.fusesource.NMREndpointListener"/>
      
          <service ref="nmrEndpointListener">
              <interfaces>
                  <value>org.apache.servicemix.nmr.api.event.ExchangeListener</value>
                  <value>org.apache.servicemix.nmr.api.event.Listener</value>
              </interfaces>
          </service>
      </blueprint>
      

      Note: there is a mistake in that ..

      Notice that I made a mistake:

      <value>org.apache.servicemix.nmr.api.event.ExchangeListener</value>
      

      it should be:

      <value>org.apache.servicemix.nmr.api.event.EndpointListener</value>
      

      Despite the mistake and invalid interface its possible to deploy the service.. Blueprint should catch this and throw an error..

      Attachments

        Activity

          People

            janstey@redhat.com Jonathan Anstey
            davestanley Dave Stanley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: