POC to JMS to Jboss
The first thing to note is that JBoss 4.0.5 will launch JBossMQ by default (as opposed to the newer JBoss Messaging). The answers to some of your questions depend on what you are doing, i.e. MDBs / EJB3 or not?
Please note, you will need to add http: // to the top of these links, Stackoverflow is lame and won't let me post links.
Take a look at this url: www.java2s.com/Code/Java/EJB3/EJBTutorialfromJBossdemoformessagedrivenbean.htm
- The queue will be created for you automatically when JBoss loads the MDB in the example
-
Assuming you mean the JMS Connection Factory, you can inject factories and destinations into EJB3 using something like the following:
@Resource (mappedName = "queue / notification.EmailSender") private javax.jms.Destination emailSenderQueue;
@Resource (mappedName = "QueueConnectionFactory") private javax.jms.ConnectionFactory connectionFactory;
-
This is a good starting point: www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/4/html/Messaging_on_JBoss.html
Also if you are not already running EJB3 in Jboss 4.0.3 see rwatsh.blogspot.com/2006/12/ejb3-development-using-jboss-405ga.html
a source to share