You can add the deployment-scanner path to the subsystem:
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
<deployment-scanner name="custom" path="custom-deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
You might use a full path, for the attribute see docs/schema/jboss-as-deployment-scanner*.xsd.
If you use more than one scanner entry you have to specify a unique name for each
I have external deployment scanner something like this.
<deployment-scanner name="external-deployment-scanner" path="D:\DFSRoots\DP2\Reports" scan-interval="0" auto-deploy-zipped="false" auto-deploy-exploded="false"/>
Issue is, through my application, i am not able to download the file which are located under D:\DFSRoots\DP2\Reports .
Is the deploymetn scanner configuration correct.
Any idea what could be the issue
What you mean by download? Do you want to download the file located at the deployment folder?
This is not possible as the files in that directory are deployed, that does not mean you can download it from an external point.