Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Distributed objects and threading

 
Phil Perkins
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does java handle distributed threading? I have two methods calling an EJB, one is synchronized one is not. Is there any possiblity of this causing a RemoteException if the unsynchronized method returns to a locked object?
 
Mark Savory
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your EJB is a stateless session bean then the container will provide you with a EJB that's not busy. If your EJB is a stateful session bean then you'll need to make sure that your calls to it are sequential.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!