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.

Ejb 1.0 StadeFull

3 posts in General Discussion (old) Last posting was on 2000-03-02 22:29:13.0Z
Eric Fassel Posted on 2000-03-02 08:29:38.0Z
Newsgroups: sybase.public.easerver
From: "Eric Fassel" <fassel@derbi.fr>
Subject: Ejb 1.0 StadeFull
Date: Thu, 2 Mar 2000 09:29:38 +0100
Lines: 25
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: paris11-nas5-22-18.dial.proxad.net 213.228.22.18
Message-ID: <347_zQ3JiJCh$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27353
Article PK: 158766

My simple question is : can an EJB 1.0 StadeFull desactivate himself only
for specified function .
For exemple


Client ----> Ejb.funct1(x) => activate and automatiquely deactivate like
stadeLess
and
Client ---> Ejb.funct2(y)
Client ---> Ejb.funct2(z)
and Ejb deacivate only after the second call !

It seems that , the Ejb_home.remove(handle()) dont be Ok in the EJB
function.
I don't want remove the EJB with the Client because my client is Dynamo and
the Ejb remove() methode is not documented.

Any Ideas ?

ERIC FASSEL
DERBI


Dave Wolf [Sybase] Posted on 2000-03-02 17:35:58.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Ejb 1.0 StadeFull
Date: Thu, 2 Mar 2000 12:35:58 -0500
Lines: 44
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: 158.159.8.49
Message-ID: <347_jtRoP5Gh$GA.202@forums.sybase.com>
References: <347_zQ3JiJCh$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27305
Article PK: 158720

The correct thing to do is to call remove from the client. Now, Ive not
tried this, but I wonder if this works. From within a method on the
component try

EJBObject myself = _sessionContext.getEJBObject();
myself.remove();

Again, no promises, but an idea. The other option is just set a timeout.

Dave Wolf
Internet Applications Division

"Eric Fassel" <fassel@derbi.fr> wrote in message
news:zQ3JiJCh$GA.74@forums.sybase.com...
> My simple question is : can an EJB 1.0 StadeFull desactivate himself only
> for specified function .
> For exemple
>
>
> Client ----> Ejb.funct1(x) => activate and automatiquely deactivate like
> stadeLess
> and
> Client ---> Ejb.funct2(y)
> Client ---> Ejb.funct2(z)
> and Ejb deacivate only after the second call !
>
> It seems that , the Ejb_home.remove(handle()) dont be Ok in the EJB
> function.
> I don't want remove the EJB with the Client because my client is Dynamo
and
> the Ejb remove() methode is not documented.
>
> Any Ideas ?
>
> ERIC FASSEL
> DERBI
>
>
>
>


Evan Ireland Posted on 2000-03-02 22:29:13.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 03 Mar 2000 11:29:13 +1300
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: "Dave Wolf [Sybase]" <dwolf@sybase.com>
CC: jchoi@sybase.com, himagiri@sybase.com, hom@sybase.com
Subject: Re: Ejb 1.0 StadeFull
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 41
NNTP-Posting-Host: vpn-eme-047.sybase.com 130.214.8.47
Message-ID: <347_38BEEB39.5ABF40F8@sybase.com>
References: <347_zQ3JiJCh$GA.74@forums.sybase.com> <347_jtRoP5Gh$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27284
Article PK: 158703


"Dave Wolf [Sybase]" wrote:
>
> The correct thing to do is to call remove from the client. Now, Ive not
> tried this, but I wonder if this works. From within a method on the
> component try
>
> EJBObject myself = _sessionContext.getEJBObject();
> myself.remove();

That is considered an illegal reentrant call. Don't you just wish EJB
would allow this :-)

> Again, no promises, but an idea. The other option is just set a timeout.

The client should call remove. It may not be in our docs but it is a
standard EJB-thing so we will support it.

>
> Dave Wolf
> Internet Applications Division
>
> "Eric Fassel" <fassel@derbi.fr> wrote in message
> news:zQ3JiJCh$GA.74@forums.sybase.com...
> > My simple question is : can an EJB 1.0 StadeFull desactivate himself only
> > for specified function .
> > For exemple
> >
> >
> > Client ----> Ejb.funct1(x) => activate and automatiquely deactivate like
> > stadeLess
> > and
> > Client ---> Ejb.funct2(y)
> > Client ---> Ejb.funct2(z)
> > and Ejb deacivate only after the second call !
> >
> > It seems that , the Ejb_home.remove(handle()) dont be Ok in the EJB
> > function.
> > I don't want remove the EJB with the Client because my client is Dynamo
> and
> > the Ejb remove() methode is not documented.
> >
> > Any Ideas ?
> >
> > ERIC FASSEL
> > DERBI
> >
> >
> >
> >

--
________________________________________________________________________________

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