Sending a Message to the Test Queue


You have established a JMS connection on your local machine and created a JMS listener for test queue D.

Follow the step in this section to send a message (the contents of the emqa_test_msg.xml file) to test queue D.

Note: If the JMX console is still open and you are on the main page (in Agent View), go to step 4.

To send a message to the test queue:

  1. Point your Web browser to http://localhost:port/jmx-console, where port is the port that you specified when you installed Serena Business Manager. (The default port is 8085.)
  2. In the Connect to Localhost dialog box, enter admin for User name and admin for Password.
  3. Click OK.

    The JMX Agent View Localhost page opens.

  4. At the bottom of the page, under serena.eventmanager, click service=EmqaTestService.

    The EMQA Test Service opens on the JMX MBean View page. Note that the values of the MBean attributes have been provided for you.

  5. Under java.lang.String sendXmlMessage(), enter the following values:
    Parameter Value
    xmlFilename The path of the test message file. The contents of this file, emqa_test_msg.xml, are the JMS message to be sent to the test queue. The file is located in the installDir\Common\jboss405\server\default\deploy\emqa-testapp-10.1-SNAPSHOT.sar folder. You might want to copy the file to the root of one of your local drives so the path name is shorter, for example, C:\emqa_test_msg.xml.
    queueName queue/D
    limit 1
  6. Click Invoke.

    The JMX MBean Operation Result sendXmlMessage() page opens, which should contain the contents of the test XML file preceded by 1 Message(s) sent. If the contents are preceded by an error message or if the page does contain the contents of the file, go to Troubleshooting.

  7. Click the Back to MBean View link.