Java Reference
In-Depth Information
NetBeans detects the different destinations in the server, and provides them in
a drop-down list. It also makes a best guess at the JNDI name of the connection
factory, which, in our case, turns out not to be correct. The previous screenshot
shows the corrected connection factory JNDI name.
At this point NetBeans generates two methods in our code: a method to send a JMS
message to our destination, and another method to create it. Additionally, it injects
the necessary resources, the messaging destination, and connection factory into our
code via the @Resource annotation.
 
Search WWH ::




Custom Search