• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB asynchronous call  RSS feed

 
Rafael Angarita
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a doubt about the call of a EJB from a servlet. My EJB does not have the annotation @Asynchronous and my servlet does not wait for it. Here is the sampe code:


Servlet code:



EJB code:



Output:



I never see the EJB output "End EJB" and I always see the servlet output "After EJB". I don't understand why.

Thank you very much.
 
Rafael Angarita
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry, I realized what was wrong with it. I was not getting the lock of the EJB properly.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!