Re: Tecnic of synchronization for Servers RMI
Esmond Pitt <[email protected]> Mon, 14 Aug 2006 16:45:37 +1000
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Organization | Melbourne Software Company |
| Message-ID | <20060814064137.NVJE11832.omta05sl.mx.bigpond.com@toshibakx1wgjb> |
Paulo You're right that synchronizing remote methods causes problems, but I would question whether does this gravar() method have to be synchronized at all? Maybe the SessionPool methods need to be synchronized, or called in blocks synchronized on SessionPool.getInstancia(), and maybe getUGBusiness().gravar(ug); needs to be synchronized, in which case it should probably do that itself, but I can't see anything in the method you've provided here that would call for the whole thing to be synchronized. EJP =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html