Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( textMessage != NULL ) {
- text = textMessage->getText();
- } else {
- text = "NOT A TEXTMESSAGE!";
- }
- try{
- if( destination != NULL ) delete destination;
- }catch (CMSException& e) { e.printStackTrace(); }
- destination = NULL;
- try{
- if( consumer != NULL ) delete consumer;
- }catch (CMSException& e) { e.printStackTrace(); }
- consumer = NULL;
- // Close open resources.
- try{
- if( session != NULL ) session->close();
- if( connection != NULL ) connection->close();
- }catch (CMSException& e) { e.printStackTrace(); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement