Remove Messages in Continuous Inbound Queue Websphere

Body

Abstract
This article aims at demonstrating the required steps to delete non-processed messages from a queue of IBM Maximo Asset Management 7.5, IBM WebSphere 7.0.0.13 and Oracle Weblogic 10.3.3.0

Introduction
You can use Maximo Integration Framework (MIF) for integrating an external system to the Maximo Asset Management 7.5 system. With MIF you can exchange data through importing and exporting operations. XML and .dat files are examples of ways to do the operations. This article comprises the steps required for deleting messages of data exchanging. This operation is required in case of error on the first item of a processing queue, which can impact other messages, or even in case of a file that is incorrectly sent to this queue and, as such, must be removed.

Queues
The IBM Maximo uses these queues for data integration purposes:

Inbound sequential (sqin) - Maximo sequential queue used for importing data

Inbound continuous (cqin) – Maximo continuous queue used for importing data

Outbound sequential (sqout) – Maximo sequential queue used for exporting data

Error continuous (cqinerr) – Maximo continuous queue used for error. The error messages generated in the inbound continuous queue (cqin) can be redirected to this queue, since the cqinerr has been previously set for receiving those messages

Queues are structures based on the FIFO (first in, first out) principle, in which the first elements included in the queue are the first elements to be removed. In a sequential queue, whenever an error occurs, this queue stops processing its elements and remains in the same position until the message is removed or the error is fixed. On the other hand, in a continuous queue, even if there is an error, this queue moves on processing all the other elements.

Clients using sequential queues usually have to delete all the messages of a certain queue during the data integration. We will use an inbound operation with XML as an example to explain this process:

From an MIF environment correctly set, import the XML file. MIF then identifies the JMS inbound queue and writes the message into this queue. If the message contains multiple instances of a document, MIF will write multiple messages into the queue. If at least one of these messages is processed with errors, an exception message is identified and no other message is processed and written into the database.

You can also import several records by using several XML files or records in an XML file, and this action generates several messages in the queue. If, by any chance, a failure occurs while importing the records, you can delete or fix the XML that generated the error in the Message Reprocessing application (see the picture below). With this procedure, the following message in the queue is processed. However, if the entire batch of messages contains errors, you do not need to wait until all the messages are processed, deleted or fixed; you can use IBM Maximo or the application server (Weblogic or Websphere) in order to delete all the elements from the queue. Then, you can perform the required modifications and import news message to an empty queue.

image

To use Maximo for deleting the queues, follow these steps:

Go to Integration > External Systems.

Select the external system used for integration purposes. Then, go to Select Action > Add/Modify Queues.

Select the queue that contains non-processed data and click the Delete Queue Data button.

In case you need to check how many messages there are in the queue, click the View Queue Data button:

image

Click OK. If you do not provide any parameters, all the messages will be deleted:

image

You will see a message informing how many messages were deleted:

image

Using Weblogic for deleting the queues:  follow the steps below:

Go to JMS > JMS Modules > intjmsmodule > sqin > Summary of JMS Messages > sqin

Then, click the Monitoring tab:

image

Select intjmsmodule!sqin and click Show Messages

image

Select Delete All to delete all the messages:

image

Check that all the listed messages have been deleted:

image

Using WebSphere for deleting the queues: follow the steps below:

Go to Buses > intjmsbus > destination > sqinbd > Queue points

Select the sqin target and click Runtime. Then, click Messages

image

Click the Delete All button:

image

Confirm that all messages must be deleted by clicking OK:

image

Check that all non-processed messages have been deleted from the queue:

image

Important Note

If you are using an application server version other than the ones presented in this article, please refer to the documentation provided by the manufacturer.

References:

Maximo Enterprise Asset Management: http://www-01.ibm.com/software/br/tivoli/solutions/asset-management/
Maximo Integration Framework (MIF): /support/pages/node/727745

About the authors

Fernando Ruano is post-graduated in System Engineering. He has been working in the IT industry since 2001 and currently works as a Quality Assurance Engineer at the IBM Brazil Software Development Lab. He participated in several releases of Maximo Asset Management, including systems integration projects with MEA and MEA for SAP. He also worked as the QA Lead for Maximo Primavera Adapter and as a team member for Maximo for Service Providers. Currently, he is part of the SQA team for IBM's recent acquisition, TRIRIGA Application Platform, which is part of the company's Smarter Planet strategy. MydeveloperWorks profile:

http://www.ibm.com/developerworks/mydeveloperworks/profiles/user/FernandoRuano

Raquel Bortoluci is post-graduated in Software Development by UFSCAR and graduated in Data Processing by FATEC. She has been working in the IT industry since 2002 and currently works as a Quality Assurance Engineer at the IBM Brazil Software Development Lab. She is highly experienced in systems integration projects. She worked with Maximo Integration Framework (MIF) in 2007 and later on she worked with Maximo Oracle Adapter project. Currently, Raquel works with the SRM project, performing integration tests among Maximo Asset Management applications. MyDeveloperWorks profile:

https://www.ibm.com/developerworks/mydeveloperworks/profiles/user/Raquel_Bortoluci

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

lillisandured1977.blogspot.com

Source: https://www.ibm.com/support/pages/deleting-non-processed-messages-queues-%E2%80%93-mif-maximo-integration-framework

0 Response to "Remove Messages in Continuous Inbound Queue Websphere"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel