C API for JMS - Close/Destroy JMS Objects in C Application (Doc ID 1328502.1)
Last updated on JUNE 09, 2016
Oracle Weblogic Server - Version 10.3 and later Information in this document applies to any platform.
***Checked for relevance on 18-SEP-2013***
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: