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

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version 10.3 and later
Information in this document applies to any platform.
***Checked for relevance on 18-SEP-2013***

Goal

JmsTextMessage is used to put Messages into the JMS Queue. 

As per documentation 
----------------------

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

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms