none
remoting and db access RRS feed

  • Question

  •  

    hi all,

     

    i must debug a remoting server connected to a database.

    this remoting have multiple client ->parallel connection

    i'm obviously not know well these techno.

     

    my difficult is:

     

    client 1 connect and execute a sql command, retrieve (top1) one id and return it

    client 2 do the same in another table

    these two table are not linked

     

    exceptionally, the return value of my sql command, for client 1 is an id who's not exist in his asked table, but this value exist in my second table.

     

    is my remoting instances can exchange theire connection?

    Wednesday, April 23, 2008 10:12 AM

Answers

  • yes if in remotong server, RegisterWellKnownServiceType is declared Singleton and not SingleCall like that:

     

    Code Snippet
    RemotingConfiguration.RegisterWellKnownServiceType(
    GetType(RemoteOperation), "RemoteOperation", WellKnownObjectMode.SingleCall)

     

     

     

    Wednesday, July 23, 2008 10:19 AM