# Add Message Destination Dialog Box

This dialog box enables you to create a new queue or topic destination in your Java EE web or EJB module project for a message-driven bean.

In this dialog you specify the following:

Element | Description
--- | ---
Destination Name | Type the name of the destination you want to create.
Destination Type | Select one of the following destination types.
Queue | Uses the point-to-point messaging domain and may have at most one consumer.
Topic | Uses the publish-subscribe messaging domain. A bean with this destination type may have zero, one, or many consumers.

When you create a new destination, the `glassfish-resources.xml` (or `sun-resources.xml`) file is modified with a description of the new resource. The JMS object is created on the server when you deploy your project.

Once you add the resource, you can use the resource in your project.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.