Java Reference
In-Depth Information
JMS message queues require a Name property. In our example we simply chose
to use the JNDI Name of our queue (minus the jms/ prefix) as the value of
this property.
At this point we have created a JMS queue to act as a JMS destination for our
application. We also need to create a JMS connection factory. The JMS queue and
connection factory will not actually be created until we deploy our project.
The first few steps in creating a connection factory are exactly the same as the
ones we used for creating the queue ( File | New File , select GlassFish and JMS
Resource , then click Next> ).
At this point we simply need to select javax.jms.ConnectionFactory as the resource
type and enter a suitable JNDI Name for our connection factory.
 
Search WWH ::




Custom Search