Is there any way by which we can specify the sequence of deployment ? Like if I am deploying two aplications in same JBOSS in which one depends on others successful deployment, how can I acieve this in Jboss 3.2.1 ?
Look into the jboss-service.xml in your /server//conf directory. The UrlDeploymentScanner can be configured with an UrlComparator, and there is an implementation for a PrefixDeploymentSorter. Read the comment.
Another possibility is to tell the MBean its dependecies. If I remember right, the PersistenceManager for JBossMQ ist waiting for a datasource. Look into the jbossmq-service.xml for more.