Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-807

Add jboss-service.xml to servicemix component so they can be properly deployed in jboss.

    XMLWordPrintableJSON

Description

    Right now there are no dependencies set on the servicemix components to ensure that they are loaded after the servicemix deployer. This can cause bugs when the component are deployed before the servicemix deployer, and thus are not handled by servicemix (and therefore not available).

    The fix for this is do include a dependence in the META-INF/jboss-service.xml of the component .zip file. here is the content of the file :
    ---------
    <?xml version="1.0" encoding="UTF-8"?>
    <server>
    <depends>org.servicemix:service=Deployer</depends>

    </server>
    ---------

    PS : The servicemix-http component already has a jboss-web.xml see issue (SM-584) file this should be deleted and the content of the new jboss-service.xml file should now be :
    ---------
    <server>

    <class-loading>

    <loader-repository>

    org.apache.commons.httpclient:loader=commons-httpclient-3.0.jar

    </loader-repository>

    </class-loading>

    <depends>org.servicemix:service=Deployer</depends>

    </server>

    -----------

    Eric,

    Attachments

      Activity

        People

          ewrick Eric Dofonsou
          ewrick Eric Dofonsou
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved:

            Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified