Hello All ,

This seems to be a good question raised by Javed and i would appreciate if
everybody would contribute
in his quest for the answer.
I Reframe the question with a bit of my own personal query added to it.

I make it clear now that whatever i answer to the question framed below is
purely woven out of my mind
and has nothing to do with the specification .

Any Corrections are welcome.

Question : Why cant ejb methods be Static ??

Answer :  Static methods could be declared in Beans but since in static
methods we dont have the Refernce to
the Object who called the method (Since the use of "this" is strictly
prohibted) so that would involve the extra
work of looking up the bean and executing the methods on its fields.
Which is quiet opposed to Object methods which have the reference of the
Stub or Remote Refernce
and hence doesnot have to lookup the object ,which in turn saves the extra
overhed of looking up the concerned
bean as was in the case of static methods of the Bean Class.



Javed as far as your answer of Synchronized methods in Beans is concerned
,There is no need for methods to be
declared synchronized as its EJBObject who can receive multiple calls from
the clients on the same methods.
But in order to maintain concurrency EJB OBject passes the call to the Bean
methods one at a time.
So the need of synchronized methos  doesnot arises.

Regards,
Aashish

*************************************************************************************************************

Hi

 Is there any restrictions on the method signature of ejb methods like it
should not be static and synchronized.
Is there any article on the restrictions of signatures in ejb methods

regards
javid

===========================================================================
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