Thanks to everyone for your useful inputs.
Just got carried away associating the instance members with the SFSB ...
many other people might be having this myth about SFSB.
hope these posts clear their doubts too ...

Regards,
Vikram Naik


----- Original Message -----
From: "Nair, Pramod (Cognizant)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 6:42 AM
Subject: Re: Query for SLSB.


Vikram,
                When a session EJB is termed as "Stateless", it refers to
the state associated with a client being serviced by this component. SLSB's
are free to maintain internal working state, provided the bean developer
assumes the responsibility of synchronizing them wrt to all instances of the
SLSB's. In your case you end up maintaining this "internal state" as a
constant value, which alternately, you could have just as well picked up as
an EJB environment entry from the deployment descriptor.


regards

Pramod Nair

<Ne0>Are you trying to tell me that I can dodge bullets</Ne0>
<m0rphEus>No, Neo. I'm trying to tell you that when you're ready - you won't
have to!</m0rphEus>


-----Original Message-----
From: Vikram Naik [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 6:06 PM
To: [EMAIL PROTECTED]
Subject: Query for SLSB.


Hello All,

    I wanted to clear out one query regarding SLSB, and there is not better
place than this list to do so ...

1) Suppose I  have a SessionBean containing an instance member say some
string, which is initialized in the ejbCreate method.
2) The SessionBean is deployed as a Stateless Type .
3) Now i use the string value stored in instance member in one of the
business methods.
4) The string value is not mutated, but just used as constant which has to
be initiated in ejbCreate.
5) Everything goes fine .


The issue is the behaviour of the Bean ... I have deployed it as a stateless
bean than why am i able to use the string value stored
in the instance field ... Am i not storing the state by doing so ...

I am using JBoss 3.2.1 as my ejb container.

Please comment.

Regards,
Vikram Naik

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to