Results 1 to 2 of 2

Thread: Is making the methods thread safe, allowed in EJB

  1. #1
    Geek_Guest
    Guest

    Is making the methods thread safe, allowed in EJB

    Is making the methods thread safe (probably by synchonizing), allowed in Session/Entity beans by the bean developer? Or is that taken care by the Container? As a developer , is there any information needs to provide to the container through deployment descriptor? What are the attributes used in that?

    Question asked by visitor Ravi


  2. #2
    Junior Member
    Join Date
    Jul 2007
    Answers
    4

    Re: Is making the methods thread safe, allowed in EJB

    If you use synchronize in EJB methods then that program violates the following EJB guideline:

    "An enterprise bean must not use thread synchronization primitives to synchronize execution of multiple instances."


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact