ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » What is the Java equivalent code to a ESQL DELETE statement?

Post new topic  Reply to topic
 What is the Java equivalent code to a ESQL DELETE statement? « View previous topic :: View next topic » 
Author Message
mlce
PostPosted: Wed Aug 15, 2007 8:06 am    Post subject: What is the Java equivalent code to a ESQL DELETE statement? Reply with quote

Newbie

Joined: 10 Jan 2007
Posts: 4

I have tried to find information on how to delete an element of a message tree in a Java Compute Node (WMB 6.0) to be able to reduce memory consumption when processing very large messages.

The closest I have found is the detach-method on MbElement but I can't figure out how and when the element in the underlying message tree actually is deleted.

Is is handled automatically (e.g. at GC) or do I need to do something else in my Java code?

Regards,
Magnus.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 15, 2007 8:38 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you detach the MbElement, then it's removed from the message tree.

That means you have the only reference to it. You can set it to NULL, and it should get GC'd at some point.

I'm not sure quite what happens when you set an ATTACHED MbElement to null.

It's usually, in general, better not to create things than to delete them.

Also, don't forget clearMessage() on any new messages you create.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » What is the Java equivalent code to a ESQL DELETE statement?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.