| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> |
| <head> |
| <title>Send JMS Message Dialog Box</title> |
| <link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/> |
| </head> |
| |
| <body> |
| <p><a id="org.netbeans.modules.j2ee.ejbcore.ui.logicalview.entries.SendJMSMessageCodeGenerator" name="org.netbeans.modules.j2ee.ejbcore.ui.logicalview.entries.SendJMSMessageCodeGenerator"></a></p> |
| <div id="NBCSH4656"><!-- infolevel="all" infotype="General" --><a id="sthref670" name="sthref670"></a> |
| <h1>Send JMS Message Dialog Box</h1> |
| <a name="BEGIN" id="BEGIN"></a> |
| <p>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.</p> |
| <p>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.</p> |
| <p>Use the dialog box to select the destination for the JMS message:</p> |
| |
| <table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> |
| <col width="24%" /> |
| <col width="*" /> |
| <thead> |
| <tr align="left" valign="top"> |
| <th align="left" valign="bottom" id="r1c1-t36">Element</th> |
| <th align="left" valign="bottom" id="r1c2-t36">Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr align="left" valign="top"> |
| <td align="left" id="r2c1-t36" headers="r1c1-t36"> |
| <p>Project Destinations</p> |
| </td> |
| <td align="left" headers="r2c1-t36 r1c2-t36">Choose from the list of available destinations in your project. If no destination is available in the drop-down list, you can click <b>Add</b> to create a new destination. |
| <p>Alternatively, you can create a JMS destination by opening the New File wizard and choosing <b>JMS Resource</b> in the GlassFish category.</p> |
| </td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r3c1-t36" headers="r1c1-t36"> |
| <p>Server Destinations.</p> |
| </td> |
| <td align="left" headers="r3c1-t36 r1c2-t36">Choose from the list of available destinations that exist on the server.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r4c1-t36" headers="r1c1-t36"> |
| <p>Message Driven Bean</p> |
| </td> |
| <td align="left" headers="r4c1-t36 r1c2-t36">Choose a message-driven bean from the drop-down list. The drop-down list displays the message-driven beans in the same project and fills the Destination field with the name of the destination resource found in the bean.</td> |
| </tr> |
| </tbody> |
| </table> |
| <br /> |
| <!-- --> |
| <p>To specify a Service Locator Strategy choose between generating an inline lookup code or use an existing service locator. You can click <b>Browse</b> to search for the service locator class name. |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2709"> |
| <param name="text" value="<html><u>How?</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| <p>The IDE creates two methods:</p> |
| <ul> |
| <li><code dir="ltr">createJMSMessageForNewMessageDestination</code>. The method that creates the message that is sent. You should implement your business logic in this method.</li> |
| <li><code dir="ltr">sendJMSMessageToNewMessageDestination</code>. The method that handles the message you created in the method above. You should not modify this message.</li> |
| </ul> |
| <p>The IDE also registers the resource reference and message destination reference in your module's general deployment descriptor.</p> |
| <p><b>Note</b>: If your project's target server is the GlassFish server, the IDE automatically configures a destination and connection factory for the message-driven bean when you create the bean. If you are deploying to a different application server, you have to configure the server-specific deployment descriptors and the server resources yourself.</p> |
| <a id="NBCSH4660" name="NBCSH4660"></a> |
| <hr><p><b>Related Topics</b></p> |
| <p><i>Developing Applications with NetBeans IDE</i>, |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2696"> |
| <param name="text" value="<html><u>"About Developing with Enterprise Beans"</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| <p><i>Developing Applications with NetBeans IDE</i>, |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2700"> |
| <param name="text" value="<html><u>"Creating an Enterprise Bean"</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| <p><i>Developing Applications with NetBeans IDE</i>, |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG1681"> |
| <param name="text" value="<html><u>"Working with Glassfish Application Servers"</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| |
| <!-- --> |
| <!-- Start Footer --> |
| |
| |
| <table summary="" cellspacing="0" cellpadding="0" width="100%"> |
| <tr> |
| <td align="left" width="86%"><a href="legal_notice.htm"> |
| Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a> |
| </td> |
| </tr> |
| </table> |
| <!-- --> |
| </body> |
| </html> |