Skip to main content
Skip table of contents

23.11 Queues

This section explains the creation of Queue objects:

  1. Creating the Admin Service

MQ admin service creates queues on the FioranoMQ server. The instance of admin service can be obtained from the admin connection.

CODE
acf = (MQAdminConnectionFactory) ic.lookup ("primaryACF");
ac = acf.createMQAdminConnection ("admin", "passwd");
adminService = ac.getMQAdminService();

2. Queue Metadata

Create a queue metadata, specifying the name, description and the storage type. The storage type of the destination can be RDBMS_BASED_DATABASE or FILE_BASED_DATABASE

CODE
QueueMetaData metadata = new QueueMetaData ();
metadata.setName ("myqueue");
// For RDBMS based storage type
metadata.setStorageType(IFioranoConstants.RDBMS_BASED_DATABASE);

or

CODE
// For File based storage type
metadata.setStorageType(IFioranoConstants.FILE_BASED_DATABASE);

3. Create the Queue

Create the Queue object using the adminService and the queue metadata.

CODE
adminService.createQueue (metadata);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.