Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Cleanup of Java Objects

2 posts in EJB Client Last posting was on 2003-05-30 23:06:44.0Z
Mark Posted on 2003-05-30 20:30:19.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: Mark
Date: Fri, 30 May 2003 16:30:19 -0400
Subject: Cleanup of Java Objects
Lines: 7
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <359_336B91599E8A804C0070A3CD85256D36.0070A3E285256D36@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:53
Article PK: 424256

I have always been of the opinion that If you create an object, you destroy
it. (assuming it's not autoinstanciated). As I am using Java beans from
WebLogic can I assume these are being cleaned up by garbage collection? Or,
is there something I need to do to assure there is no memory leak..?

TIA
Mark


Jim O'Neil [Sybase] Posted on 2003-05-30 23:06:44.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: joneil@sybase.com (Jim O'Neil [Sybase])
Subject: Re: Cleanup of Java Objects
Date: Fri, 30 May 2003 23:06:44 GMT
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com 10.18.61.121
Lines: 23
Message-ID: <359_3ed7e361.35498554@forums.sybase.com>
References: <359_336B91599E8A804C0070A3CD85256D36.0070A3E285256D36@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-1-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:54
Article PK: 424253

Well, do you mean the actual beans on the WebLogic server OR the
classes instantiated on the client and 'wrapped' by the PowerBuilder
proxies.

For the EJBs on the server, the server has complete control over that.
For the classes on the client, the Java garbage collection process
will kick in when your proxy object references go out of scope. You
don't have to do a DESTROY for instance, just as you don't do a CREATE
on the actual proxies.

On Fri, 30 May 2003 16:30:19 -0400, Mark wrote:

>I have always been of the opinion that If you create an object, you destroy
>it. (assuming it's not autoinstanciated). As I am using Java beans from
>WebLogic can I assume these are being cleaned up by garbage collection? Or,
>is there something I need to do to assure there is no memory leak..?
>
>TIA
>Mark

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA