My Oracle Support Banner

C API for JMS - Close/Destroy JMS Objects in C Application (Doc ID 1328502.1)

Last updated on MAY 30, 2023

Applies to:

Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.

Goal

JmsTextMessage is used to put Messages into the JMS Queue.

As per documentation, it states:

All resources that you allocate must also be disposed of it properly. In Java, garbage collection cleans up all objects that are no longer referenced. However, in C, all objects must be explicitly cleaned up. All WebLogic JMS C API handles given to the user must be explicitly destroyed. Notice that some handles have a verb that ends in Close while others end in Destroy. This convention distinguishes between Java objects that have a close method and those that do not. Example: 

JmsProducerClose(producer,0);
JmsSessionClose(session,0);
JmsConnectionClose(con,0);
JmsDestinationDestroy(destination,0);
JmsConnectionFactoryDestroy(conFac,0);
JmsContextDestroy(context,0);

What method can be used to destroy JmsTextMessage?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.