SFSB or SSB is defined declaratively in ejb-jar.xml, not programmatically.
Gene
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Rajan Kashyap
Sent: Tuesday, May 15, 2001 12:50 AM
To: [EMAIL PROTECTED]
Subject: Re: Is it mandatory to have params in ejbCreate of Sateful
session bean??
Then how do we differentiate between stateful and stateless session beans??
Suppose we have two beans stateful and stateless and both of then do not
have any parameter in ejbCreate() and both have some private data nmembers
then how do we differentiate between them????
-----Original Message-----
From: Pankaj Mishra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 12:52 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Is it mandatory to have params in ejbCreate of Sateful
session bean??
Hi Rajan ,
I think that it is not mandatory to have params in ejbCreate of
a Stateful Session
Bean because passing params or not in the ejbCreate() is entirely dependent
on the requirements
ie whether the EJB Object requires some params to be initialized or not
..moreover calling
ejbCreate() without params doesnt make a Stateful bean into a Stateless bean
as the type of the session bean(whether staeless or stateful) is declared in
the deployment descriptor,so it shouldn't be a problem for the container
either in distinguishing the type of the bean .
So logically i think it should work unless the J2EE specs say
otherwise .
Regards
Pankaj
-----Original Message-----
From: Rajan Kashyap [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 12:13 PM
To: [EMAIL PROTECTED]
Subject: Is it mandatory to have params in ejbCreate of Sateful session
bean??
Hi Guys,
Is it mandatory to have params in ejbCreate of Sateful session
bean??
Rajan
===========================================================================
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".
===========================================================================
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".