Hello, I ran into a small issue with AutoDeployer when trying to specify a
list of URLs that contained some extra white space similar to this:

  <mbean code="org.jboss.ejb.AutoDeployer"
         name="EJB:service=AutoDeployer">
    <attribute name="Deployer">J2EE:service=J2eeDeployer</attribute>
    <attribute name="URLs">
        /some/path/somebean.jar,
        /some/path/someotherbean.jar
    </attribute>
  </mbean>

I modified the AutoDeployer.startService() method to trim each URL returned
from the StringTokenizer and it fixed this problem.

Below is a patch (ala 'cvs diff -u') of AutoDeployer with this change made.
I think that this minor change helps the readability of the jboss.jcml file
when specify more than one URL to deploy.

I hope that this change would be acceptable for integrating with the main
code line.

Thanks,

--jason


Reply via email to