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.

ejbRemove not being called

4 posts in General Discussion (old) Last posting was on 2000-03-23 22:38:46.0Z
Hugh Madden Posted on 2000-03-23 05:18:44.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 23 Mar 2000 16:18:44 +1100
From: Hugh Madden <hmadden@adaptivetech.com.au>
X-Mailer: Mozilla 4.05 [en] (WinNT; I)
MIME-Version: 1.0
Subject: ejbRemove not being called
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 13
NNTP-Posting-Host: woohoo.idl.com.au 203.34.9.113
Message-ID: <347_38D9A934.C26EAAFE@adaptivetech.com.au>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25851
Article PK: 155886

hi all,
I have a stateful session ejb that works in most aspected.

(NT 4.0, jag cts 3.5)

However when the client is connected (whever normally or abnormally) the
ejbRemove method is never called.

Has anyone experienced this problem ?

I haven't been able to get any ejbRemove method to be called
automatically except by explicitly calling remove() on the object
handle.

Thanks in advance,
Hugh Madden

--
Adaptive Technology
Mb: 0411308372
Ph: + 61 2 9954 6822
Fx: + 61 2 9460 1500


Evan Ireland Posted on 2000-03-23 21:24:41.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 24 Mar 2000 09:24:41 +1200
From: Evan Ireland <eireland@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Hugh Madden <hmadden@adaptivetech.com.au>
Subject: Re: ejbRemove not being called
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 24
NNTP-Posting-Host: vpn-eme-069.sybase.com 130.214.8.69
Message-ID: <347_38DA8B99.F749D31C@sybase.com>
References: <347_38D9A934.C26EAAFE@adaptivetech.com.au>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25789
Article PK: 155832

Hugh,

Go to the Resources tab page on the Component Properties dialog
and set the Instance Timeout property.

Hugh Madden wrote:
>
> hi all,
> I have a stateful session ejb that works in most aspected.
>
> (NT 4.0, jag cts 3.5)
>
> However when the client is connected (whever normally or abnormally) the
> ejbRemove method is never called.
>
> Has anyone experienced this problem ?
>
> I haven't been able to get any ejbRemove method to be called
> automatically except by explicitly calling remove() on the object
> handle.
>
> Thanks in advance,
> Hugh Madden
>
> --
> Adaptive Technology
> Mb: 0411308372
> Ph: + 61 2 9954 6822
> Fx: + 61 2 9460 1500

--
________________________________________________________________________________

Evan Ireland Sybase EAServer Engineering eireland@sybase.com
Wellington, New Zealand +64 4 934-5856


Hugh Madden Posted on 2000-03-23 22:38:46.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 24 Mar 2000 09:38:46 +1100
From: Hugh Madden <hmadden@adaptivetech.com.au>
X-Mailer: Mozilla 4.05 [en] (WinNT; I)
MIME-Version: 1.0
Subject: Re: ejbRemove not being called
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 43
NNTP-Posting-Host: woohoo.idl.com.au 203.34.9.113
Message-ID: <347_38DA9CF6.4EF06B44@adaptivetech.com.au>
References: <347_38D9A934.C26EAAFE@adaptivetech.com.au> <347_38DA8B99.F749D31C@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25783
Article PK: 155825

Hiya Evan,
I have tried the Instance Timeout property - the problem is this causes the instance

to timeout even if a client still has a handle on it!

Here's what I'm after:
Stateful session ejb stays alive and functioning until the remote client remove's or

disconnects (ie network problems) - any length of time. The client could run for a
day.

As soon, or shortly after the client's disconnect, the Stateful session ejb should
be removed - clearing up resources, in particular messaging Qs etc.

Is there an easy way to do this ?

Thanks in advance,
Hugh

Evan Ireland wrote:

> Hugh,
>
> Go to the Resources tab page on the Component Properties dialog
> and set the Instance Timeout property.
>
> Hugh Madden wrote:
> >
> > hi all,
> > I have a stateful session ejb that works in most aspected.
> >
> > (NT 4.0, jag cts 3.5)
> >
> > However when the client is connected (whever normally or abnormally) the
> > ejbRemove method is never called.
> >
> > Has anyone experienced this problem ?
> >
> > I haven't been able to get any ejbRemove method to be called
> > automatically except by explicitly calling remove() on the object
> > handle.
> >
> > Thanks in advance,
> > Hugh Madden
> >
> > --
> > Adaptive Technology
> > Mb: 0411308372
> > Ph: + 61 2 9954 6822
> > Fx: + 61 2 9460 1500
>
> --
> ________________________________________________________________________________
>
> Evan Ireland Sybase EAServer Engineering eireland@sybase.com
> Wellington, New Zealand +64 4 934-5856

--
Adaptive Technology
Mb: 0411308372
Ph: + 61 2 9954 6822
Fx: + 61 2 9460 1500


Dave Wolf [Sybase] Posted on 2000-03-23 10:11:21.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: ejbRemove not being called
Date: Thu, 23 Mar 2000 05:11:21 -0500
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: vpn-eme-011.sybase.com 130.214.8.11
Message-ID: <347_HSMfDDLl$GA.285@forums.sybase.com>
References: <347_38D9A934.C26EAAFE@adaptivetech.com.au>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25848
Article PK: 155883

Hugh,

That is the expected action as per the EJB spec. Please see section 6.6 of
the EJB1.1 spec. The spec explicitly says the container may only call
ejbRemove() on its own when a timeout has expired. The bean developer is to
handle this by creating a timeout on the component. In this case after N
seconds between method calls the EJB container will consider the client gone
and will call ejbRemove() and destroy the object.

Dave Wolf
Internet Applications Division

"Hugh Madden" <hmadden@adaptivetech.com.au> wrote in message
news:38D9A934.C26EAAFE@adaptivetech.com.au...
> hi all,
> I have a stateful session ejb that works in most aspected.
>
> (NT 4.0, jag cts 3.5)
>
> However when the client is connected (whever normally or abnormally) the
> ejbRemove method is never called.
>
> Has anyone experienced this problem ?
>
> I haven't been able to get any ejbRemove method to be called
> automatically except by explicitly calling remove() on the object
> handle.
>
> Thanks in advance,
> Hugh Madden
>
> --
> Adaptive Technology
> Mb: 0411308372
> Ph: + 61 2 9954 6822
> Fx: + 61 2 9460 1500
>
>