look at the ant files that come with jBPM. You can see there how it is done.
Thanx for prompt reply.I have gone through the build.xml and ant classes but still not getting how to deploy it in embedded server.
One more thing I would like to ask is that where does the deployed war file resides in server.Suppose I have deployed application once and then I want to make changes in application.Then how should I undeploy the existing application and then deploy the modified application.If I try to deploy the application through deploy process archieve then it gives me error during deployment....
Please let me know something about this issue.All suggestions are welcome and thanx in advance.