Hi,
your questions is very vague, but let me give you some hints.
Of course the deployment target is important, but I think your actual build procedure and application configuration. What I mean is that in many cases users have actually two different applications. The slave application and a often stripped down admin application which will be the master and contains the MDB. In this case you are deploying two different types of artifacts anyway. You can of course also use the same application for master and slave, however, you have to make sure that the master gets a different configuration (the master configuration) in the hibernate configuration file. In fact it does not matter whether you include the MDB in all nodes (even the slaves), the important thing is that the configuration between master and slaves differ. There are many ways to achieve this. If you want to use the same app for master and slave you could build the artifact twice and on each build use eg filtering techniques to generate the different configuration files.
Once you are able to deploy the master with the right configuration and the MDB you will have to look at your jbossmq-destinations-service.xml file under deply/jms of your sever configuration and actually configure the JMS queue. See the JBoss documentation for that.
--Hardy
|