This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
As far as I understand it, he locking requirement is defined in the DB interface, and whether you are using the app in local or remote mode, your database requests are going to be made over this DB interface implementation that you are creating. Since the interface mandates that you use locking, you should use it, no distinction if you are in local mode or remote mode. Therefore, the cookie value in the local mode should be the same as in remote mode.
Joined: Jul 10, 2006
ok..So I read few posts saying use 0 or -1 for cookie value if you are in local mode, is not correct then rihgt?
Originally posted by Payal Shah: -Should i use locking in local mode?
I used it, I don't know it is a good choice or not, because in my assignment, the lock and unlock method is called before and after book the room no matter what the class used to access the database (because it accessed through interface)