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?
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.