That is the correct method.
But Can you please tell me the use of deployer.bat file. How do I use it? I just use the deploy directory to deploy the ear file. How is the deployer.bat helpful?
I guess it would be useful from a script???
Never used it myself.