Iam using a Socket Solution for my remote conection in URLyBird app.
The problem is the next, I start the server, and conect clients in remote mode whit out problems, but when I start a Client in Local Mode, this client(local) not share the same data base file access. This database file access is a Singleton
My database file access is some for remote or local mode. The diference is the conecction Type, the local is directly along the a get instance. and when is remote conecction, when start a new client the conection is solved by server who obtain the same instance for all remotes clients.
Regards , and if is necesary other data say me, is my last problem!.
The problem is the next, I start the server, and conect clients in remote mode whit out problems, but when I start a Client in Local Mode, this client(local) not share the same data base file access.
Hum... client in local mode?
Well champ, the thing is, the application is to be run in only one of the tree modes at a time. So, if it starts as a server, it isn't expected for it to be run in standalone mode as well at the same time in the same machine. In standalone (I think that's what you mean by "client in local mode", right?), it shouldn't use the server code, bypassing it.
Ok, i sorry, not is client local, is a stand alone mode.
In this mode, i Bypassed all remote conection or server mode, because obtain a instance of my database file access directly.
ok, I have the problem still, when start up a remote client, and take a register(to make a reserv for a customer), this made a lock on register, but when i am runing the app in stan alone mode at same time, can take the same registry whitout alert about who this registry is lock by another user at moment.the cause is because they aren't share the same database file access. (still when my database file access is a Singleton, ok the server and stand alone mode, work in diferents threads and obtain a diferent instance). I think who is need share the SOME database file access instance(Confirm this please) , for view always the locks registry for all users local or remotes.
SCJP 5 - OCMJD 6 - OCPJME1MAD(SCMAD) - OCEJWCD
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database