You are viewing limited content. For full access, please sign in.

Question

Question

Re-use an open connection using SDK

SDK
asked on October 1, 2013

Dears,

 

If I have have an application which is connected to Laserfiche, suppose the application is closed but the connection is still alive.

I need whenever I open the application to check if the prev. connection is open in order to use it.

I've tried to save the connection Id in the application setting to use it while i'm checking in the next open. but this is not working.

Is there a supported method for that ? or Can I serialize the connection state? Any idea?

 

Thanks,

 

 

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on October 2, 2013

You can serialize Laserfiche connection information if you're using LFSO by querying the LFConnection.SerializedConnectionString property. You can then use LFConnection.CloneFromSerializedConnectionString to try to reuse this same connection. Please note that the serialized connection must be kept secured, or else your application will have a big security hole.

1 0

Replies

replied on February 25, 2014

Hi,

 

Following on this I have a Windows service using SDK and RepositoryAccess that connects to the repository with a specific user. The service sometimes looses connection with the SQL database and reports 'error 9008' and cannot properly logout. When the SQL is available again the service tries to login and get the error 'The user is already loggeg in'. 

 

Is there a way with RA to get back to the same connection like LFSO does ? I have tried to logout but the service crashes. Currently, I have to restart the service to resume operations.

 

Regards,

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.