Talk About Network

Google





Software > Biz Talk Orchestration > Re: how to chec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 11 Topic 4133 of 4234
Post > Topic >>

Re: how to check orchestration is running c#

by =?Utf-8?B?R3VydmluZGVy?= <Gurvinder@[EMAIL PROTECTED] > Jun 11, 2008 at 03:16 PM

This code gives me the current cout(which is always 1) not the total 
count...so nNumSvcInstFound  always return 1 infact there were 3 more
running 
same time

"Gurvinder" wrote:

> thank Dan for your help i think i made the code and it looks like this
and i 
> tested it works fine
> 
>  public static Boolean Chk_SvcInstByOrchestrationName(string 
> strOrchestrationName)
>         {
>             
>                 System.UInt32  ServiceStatus = 2;//2 for running
instance
>                 string query = string.Format("select * from 
> MSBTS_ServiceInstance where ServiceStatus = {0} and ServiceName =
\"{1}\"",
>                     ServiceStatus, strOrchestrationName);
>                 ManagementObjectSearcher searcherServiceInstance = new 
> ManagementObjectSearcher(new
ManagementScope("root\\MicrosoftBizTalkServer"), 
> new WqlObjectQuery(query), null);
>                 int nNumSvcInstFound =
searcherServiceInstance.Get().Count;
>                 
>                 if (nNumSvcInstFound > 0)
>                 {
>                     return true; ;
>                 }
>                 else
>                 {
>                     return false;
>                 }
>             
>               }
> 
> "Gurvinder" wrote:
> 
> > i think i found it thanks for your help
> > 
> > "Gurvinder" wrote:
> > 
> > > i am new to wmi can you pls help me more on it what needs to be
downlaoded
> > > 
> > > "Gurvinder" wrote:
> > > 
> > > > Dan I use BTS 2006 not R2 can i still do it same thing in BTS 2006
. You link 
> > > > was very helpful 
> > > > 
> > > > this is wha ti want 
> > > > http://msdn.microsoft.com/en-us/library/aa561123.aspx

> > > > 
> > > > IT can return me the status orchestration is active or ready to
run or 
> > > > dehydrated but i dont know how to use it in 2006 version.
> > > > 
> > > > Can you pls help me
> > > > 
> > > > Thanks,
> > > > Gurvinder
> > > > 
> > > > "Dan Rosanova" wrote:
> > > > 
> > > > > Hi Gurvinder,
> > > > > Use WMI to do this.  MSDN has some examples.  You're looking for
a
> > > > > running service instance so I'd start with the "Resume Suspended
> > > > > Service Instances That Failed to be Sent to a Specific URL Using
WMI "
> > > > > example located at: 
http://msdn.microsoft.com/en-us/library/aa561208.aspx
> > > > > 
> > > > > Kind Regards,
> > > > > -Dan
> > > > > 
> > > > >
 




 11 Posts in Topic:
how to check orchestration is running c#
=?Utf-8?B?R3VydmluZGVy?=   2008-06-11 10:30:01 
Re: how to check orchestration is running c#
Dan Rosanova <dnova7@[  2008-06-11 11:54:25 
Re: how to check orchestration is running c#
=?Utf-8?B?R3VydmluZGVy?=   2008-06-11 12:27:02 
Re: how to check orchestration is running c#
=?Utf-8?B?R3VydmluZGVy?=   2008-06-11 12:58:04 
Re: how to check orchestration is running c#
=?Utf-8?B?R3VydmluZGVy?=   2008-06-11 13:17:02 
Re: how to check orchestration is running c#
=?Utf-8?B?R3VydmluZGVy?=   2008-06-11 14:56:04 
Re: how to check orchestration is running c#
=?Utf-8?B?R3VydmluZGVy?=   2008-06-11 15:16:01 
Re: how to check orchestration is running c#
=?Utf-8?B?R3VydmluZGVy?=   2008-06-12 08:01:02 
Re: how to check orchestration is running c#
Dan Rosanova <dnova7@[  2008-06-11 13:42:12 
Re: how to check orchestration is running c#
=?Utf-8?B?R3VydmluZGVy?=   2008-06-11 13:49:01 
Re: how to check orchestration is running c#
Dan Rosanova <dnova7@[  2008-06-16 08:05:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 18:02:25 PST 2009.