Results 1 to 4 of 4

Thread: If one method has application exception what happens to transaction

  1. #1
    Geek_Guest
    Guest

    If one method has application exception what happens to transaction

    Question asked by Visitor Techie

    I have 2 stateless session beans called ejb1 and ejb2.
    ejb1 has a method called met1.
    ejb2 has a method called met2.

    met1 of ejb1 is a bean manged transaction.
    met2 of ejb2 is a container managed transaction.

    if met1 called met2, and if met2 has an application exception, what happens to the transacion?


  2. #2
    Junior Member
    Join Date
    Mar 2007
    Answers
    3

    Re: If one method has application exception what happens to transaction

    Exception is thrown, transaction is incomplete

    Last edited by vargjohn; 04-16-2007 at 08:16 AM.

  3. #3
    Junior Member
    Join Date
    May 2007
    Answers
    3

    Re: If one method has application exception what happens to transaction

    i think in this case the exception shall be thrown by the method and shall be handlled by the ejb container ....... i am not too sure on this better check it out.


  4. #4

    Re: If one method has application exception what happens to transaction

    since container maintains pool of stateless session beans, if one bean throws application exception container brings one more stateless session bean out of pool to service the request.... if it also throws exception then container will bring another bean out to pool to service the request..

    Last edited by vinayak_chennai; 11-11-2008 at 08:05 AM.

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