how to know if many persistent 's connection are open on HIS
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
how to know if many persistent 's connection are open on HIS

 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server
Author Message
mikolajczyk
Guest





Posted: Mon Jul 25, 2005 4:52 pm    Post subject: how to know if many persistent 's connection are open on HIS Reply with quote

I would like to identify on .NET the differents persistent's connection open
on HIS2004.

I try to use many persistent's connection with thread on .NET.

To identify the connection, I use the descriptor :

varConnType="OPEN";
_cc.WriteContext ("CONNTYPE", varConnType, ref contextArray);

ds = (Microsoft.HostIntegration.TI.ContextDescriptor)contextArray[0];

short contextId= ds.sContextID;
Console.Writeln("context ID : " + contextId);

The context ID is always the same 666.

Thank you for your help.
Back to top
Rob Beardsworth [MSFT]
Guest





Posted: Mon Jul 25, 2005 4:52 pm    Post subject: RE: how to know if many persistent 's connection are open on Reply with quote

Sorry to tell you this, but the content of the contextArray is NOT meant to
be read by your code. If you change the contents of it in many ways, we
will throw errors at the next usage. If you need to keep hold of different
persistent connections, then you will need different copies of the context
array and keep your own map of "whatever you want" to the ContextArrays.
The ContextId is always 666, in this version, and has nothing to do with
the persistent connection it is the identifying mark of the Context Array.

Rob Beardsworth
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
From: "mikolajczyk"<fake.email@mail.fr>
Subject: how to know if many persistent 's connection are open on HIS2004 ?
Date: Mon, 25 Jul 2005 09:23:50 -0500

I would like to identify on .NET the differents persistent's connection
open
on HIS2004.

I try to use many persistent's connection with thread on .NET.

To identify the connection, I use the descriptor :

varConnType="OPEN";
_cc.WriteContext ("CONNTYPE", varConnType, ref contextArray);

ds = (Microsoft.HostIntegration.TI.ContextDescriptor)contextArray[0];

short contextId= ds.sContextID;
Console.Writeln("context ID : " + contextId);

The context ID is always the same 666.

Thank you for your help.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB