Using the JMS JCA Wizard

ProcedureTo Create an Admin Object Resource

For this example, the message is being received from Queue1, so you need to create the corresponding JMS Queue object resource in GlassFish.

  1. Start the GlassFish server and use a browser to connect to the Admin Console.

    The URL for the Admin Console is http://HostName:PortNumber. The default port number is 4848.

  2. In the left navigation bar, expand Resources and Connectors and then select Admin Object Resources.

    Figure 1 Admin Object Resources

    Admin Object Resources

  3. Click New.

    The New Admin Object Resource window appears (Step 1 of 2).

  4. Fill in the required fields.

    For the purposes of this exercise, use the following values:

    • JNDI Name = jms/Queue1

    • Resource Type = javax.jms.Queue

    • Resource Adapter = sun-jms-adapter

    Figure 2 New Admin Object Resources (Step 1 of 2)

    New Admin Object Resources (Step 1 of 2)

  5. Click Next.

  6. Enter a name for the resource.

    For this exercise, enter Queue1. This is the physical destination name of the resource.

    Figure 3 New Admin Object Resources (Step 2 of 2)

    New Admin Object Resources (Step 2 of 2)

  7. Click Finish.