JMS Functions Reference

Silk Performer provides JMS API functions to write and run scripts for testing JMS applications and providers.

You can create a normal JMS project and a JMS project with a comprehensive example:
  • To create a normal JMS project: Click File in the menu, click New Project, select Java > Java Message Service (JMS) . This project includes a short example script.
  • To create a JMS project with a comprehensive example: Click File in the menu, click New Project, select Samples > JMS. This project includes a comprehensive example script. The examples are connected to demo.borland.com (ActiveMQ server) and require a .jar file, which is included in the project. However, for other servers the client requires a different .jar file.
Note the following when working with JMS functions:
  • The first call in the TInit must be the function JavaCreateJavaVM to set a JVM.
  • TInit must include only the function JmsStartUp or both the functions JmsSetJndiEnvironment and JmsInit. If you want to specify only the JNDI Naming Factory Initial, you can use JmsStartUp. Otherwise, set the JNDI parameters with JmsSetJndiEnvironment and init JMS with JmsInit.
  • TEnd must include the function JmsShutDown to shut down the connection to the messaging service.
  • (Optional) Clear the queue to make sure there are no messages left.
  • (Optional) Clear the message before you use it or reuse it.
  • (Optional) Use the constants that are defined in the Jms.bdh file for the message types and message header properties.