Ver Mensaje Individual
  #2  
Antiguo 11-12-2006
Gydba Gydba is offline
Miembro
 
Registrado: ene 2004
Ubicación: Argentina
Posts: 673
Reputación: 21
Gydba Va por buen camino
Hola,

No sé cuanto podré ayudarte en tu inquietud. La verdad jamás utilicé los UIB para hacer uso de ese tipo de arquitectura, pero si te bajás desde su web la versión 2.0 trae en la carpeta EXAMPLES\JVUIB\CLIENTSERVER un ejemplo cliente servidor que quizás te pueda servir. En la útima RC que sacaron no lo han incluido por lo visto.

Deberías de ver igualmente un poco la documentación para ver que opciones utilizar al compilar:
Cita:
Multithreading and N-Tiers servers application.

You have 2 choices:

Sharing one DB connection with all threads, in this case 2 threads can share the same Database connection or the same Transaction safely without freezing the server. Some examples of server applications are: Web server, CORBA, DCOM, or Delphi ORB provided provided with UIB. For an example of Multithread server try the the sample applications in the "ClentServer" directory. You must set this compiler option: {$DEFINE UIBTHREADSAFE} excepting with Interbase 7 (The library is allready ThreadSafe)

Create one DB Connection per Thread, in this case you should desactivate {$DEFINE UIBTHREADSAFE}, and setting your DB connection to use the remote protocol (excepting with Interbase 7), to have all threads working faster.
Perdón, se me olvidó comentar que la UIB.DLL se compila desde la carpeta MISC\DBEXPRESS (en la versión 2.1) puesto que distribuyen el proyecto también.
Eso es todo.
__________________
Suerte
.: Gydba :.

Última edición por Gydba fecha: 11-12-2006 a las 23:23:06.
Responder Con Cita