Send JMS Message Dialog Box

See Also

You use this dialog box to send a Java Message Service (JMS) message to a message destination. A JMS message is an object that communicates information between JMS clients. The message is sent from one client to a second client that listens for messages through a JMS destination on an application server.

You open the dialog box by right-clicking a Java file in the Source Editor and choosing Insert Code > Send JMS Message. The file must be in an EJB module project or a standard web application project. You cannot generate lookup code in a free-form web application project.

You use the dialog box as follows:

  1. Select the destination for the JMS message by selecting one of the following:
  2. Specify a Service Locator Strategy by choosing to generate an inline lookup code or use an existing service locator. You can click the Browse to search for the service locator class name.
  3. Click OK.

    The IDE creates two methods:

    The IDE also registers the resource reference and message destination reference in your module's general deployment descriptor.

See Also
About Message-Driven Beans
Using a Service Locator
Setting up a JMS Resource on the GlassFish Application Server

Legal Notices