Java Reference
In-Depth Information
Now, our class should look like this:
package com.ensode.jmsintro;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
@Named
@RequestScoped
public class JmsMessageController {
}
We need to add some code to send a JMS message. NetBeans can aid us in this task.
All we need to do is click on Alt + Insert and select Send JMS Message... :
Now, a dialog window appropriately titled Send JMS Message pops up. We need
to select the Server Destinations radio button and select jms/myQueue from the
corresponding dropdown (this is the queue we created in the previous section).
 
Search WWH ::




Custom Search