A difficulty with farm is it will likely redeploy the ear on all nodes in the cluster pretty much simultaneously. This leaves you with no servers able to handle the request.
Suggest you try developing a script that can sequentially deploy your ear to the deploy dir in the different nodes in the cluster.
Thank you very much Brian for your reply.
There is no option in farm to deploy sequentially ear ?
Script is a good idea and it works, but I wanted something to enjoy farm aspects.
Is there any way with java code to see when the deployment is finished ?