none
Starting the Biztalk Applictaio using BTS Task? RRS feed

Answers

  • hi

    You cannot Start/Stop application with BTSTask


    Check available commands for BTSTask.exe

     

    Check on Codeplex the Command line tool which can help you


    Please mark this as answer if it helps.
    Microsoft Certified Trainer
    Microsoft Certified Professional Developer
    BizTalk blog: http://www.EnterpriseApplicationsDevelopment.com/
    Friday, January 21, 2011 10:47 AM
  • Hi ,

    You can use PowerShell to stop/start your applications.

    Take a look at the BizTalk PowerShell provider here http://psbiztalk.codeplex.com/

    Best regards

    Rasmus Jaeger

     

    Friday, January 21, 2011 2:05 PM
  • Hi,

    Armen is right, you cannot start or stop BizTalk applications using BTSTask.exe.

    You can use BTSTask to perform many application deployment tasks from the command line, as follows:

    • Add a BizTalk application to the BizTalk Management database by using the AddApp command.
    • Add an artifact to an application by using the AddResource command.
    • Export an application and its artifacts to an .msi file by using the ExportApp command.
    • Export binding information to an .xml file by using the ExportBindings command.
    • Import an application from an .msi file by using the ImportApp command.
    • Import binding information from an .xml file by using the ImportBindings command.
    • List the artifacts included in an application along with their locally unique identifiers (LUIDs) by using the ListApp command.
    • List all applications in the BizTalk Management database for the BizTalk group by using the ListApps command.
    • List the resources in an .msi file by using the ListPackage command.
    • List all of the artifact types supported by BizTalk Server 2006 by using the ListTypes command.
    • Remove an application from the BizTalk Management database and the BizTalk Administration console by using the RemoveApp command.
    • Remove an artifact from an application by using the RemoveResource command.
    • Uninstall an application from the local computer by using the UninstallApp command.

    To start and stop application you need to use Microsoft.BizTalk.ExplorerOM library, this is a C# sample:

    Using Microsoft.BizTalk.ExplorerOM;

    BtsCatalogExplorer currentHostExplorer = new BtsCatalogExplorer();
    Application selectedBizTalkApplication = currentHostExplorer.Applications[ApplicationName];
    selectedBizTalkApplication.Start(ApplicationStartOption.StartAll);

    or

    selectedBizTalkApplication.Stop(ApplicationStopOption.StopAll);

    Other ExplorerOM  sample: http://geekswithblogs.net/claeyskurt/archive/2008/10/13/125815.aspx

    If you don't want to implement your application, then you should use Rasmus or Armen suggestions.


    Sandro Pereira Blog: http://sandroaspbiztalkblog.wordpress.com/ Please mark as answered if this answers your question.
    Tuesday, January 25, 2011 5:31 PM
    Moderator

All replies

  • hi

    You cannot Start/Stop application with BTSTask


    Check available commands for BTSTask.exe

     

    Check on Codeplex the Command line tool which can help you


    Please mark this as answer if it helps.
    Microsoft Certified Trainer
    Microsoft Certified Professional Developer
    BizTalk blog: http://www.EnterpriseApplicationsDevelopment.com/
    Friday, January 21, 2011 10:47 AM
  • Hi ,

    You can use PowerShell to stop/start your applications.

    Take a look at the BizTalk PowerShell provider here http://psbiztalk.codeplex.com/

    Best regards

    Rasmus Jaeger

     

    Friday, January 21, 2011 2:05 PM
  • Hi,

    Armen is right, you cannot start or stop BizTalk applications using BTSTask.exe.

    You can use BTSTask to perform many application deployment tasks from the command line, as follows:

    • Add a BizTalk application to the BizTalk Management database by using the AddApp command.
    • Add an artifact to an application by using the AddResource command.
    • Export an application and its artifacts to an .msi file by using the ExportApp command.
    • Export binding information to an .xml file by using the ExportBindings command.
    • Import an application from an .msi file by using the ImportApp command.
    • Import binding information from an .xml file by using the ImportBindings command.
    • List the artifacts included in an application along with their locally unique identifiers (LUIDs) by using the ListApp command.
    • List all applications in the BizTalk Management database for the BizTalk group by using the ListApps command.
    • List the resources in an .msi file by using the ListPackage command.
    • List all of the artifact types supported by BizTalk Server 2006 by using the ListTypes command.
    • Remove an application from the BizTalk Management database and the BizTalk Administration console by using the RemoveApp command.
    • Remove an artifact from an application by using the RemoveResource command.
    • Uninstall an application from the local computer by using the UninstallApp command.

    To start and stop application you need to use Microsoft.BizTalk.ExplorerOM library, this is a C# sample:

    Using Microsoft.BizTalk.ExplorerOM;

    BtsCatalogExplorer currentHostExplorer = new BtsCatalogExplorer();
    Application selectedBizTalkApplication = currentHostExplorer.Applications[ApplicationName];
    selectedBizTalkApplication.Start(ApplicationStartOption.StartAll);

    or

    selectedBizTalkApplication.Stop(ApplicationStopOption.StopAll);

    Other ExplorerOM  sample: http://geekswithblogs.net/claeyskurt/archive/2008/10/13/125815.aspx

    If you don't want to implement your application, then you should use Rasmus or Armen suggestions.


    Sandro Pereira Blog: http://sandroaspbiztalkblog.wordpress.com/ Please mark as answered if this answers your question.
    Tuesday, January 25, 2011 5:31 PM
    Moderator