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".

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. Any unauthorised review, use, disclosure, 
dissemination, forwarding, printing or copying of this email or any action taken in 
reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com

Reply via email to