Because the deployment scanner searched the configured directory for deployable items, by specifying your exploded dir it will scan the contents of it.
first i must correct myself I meant:
with the ending slash... yesh its working fine this way, its scanning my deploy directory and deploying all the ear's war's in that directory...
but when I use file:///d:/temp/deploy/app.ear this for an exploded ear it didnt work
so I dont have any problems with scanning, and if it scanned then it shouldnt scanned it ! since the example in jboss-service.xml says :
deploy myapp.ear from a local location
so why didnt it deploy my exploded app.ear , and if it scanned it it shouldnt have...
A directory cannot be a deployable, it can only hold deployable content.