BTSTask和BTSControl 2009年的BizTalk(BTSTask and BTSCo

2019-10-23 23:28发布

我使用BTSTask和BTSControl上做一个BizTalk 2006年我们搬到了2009年的BizTalk和这些工具的一些部署操作似乎不BT2009工作。 在那里为BT2009任何特定版本或新的工具?

Answer 1:

I would instead look at the BizTalk Deployment Framework. Its built on MSBuild and WIX and does absolutely everything from adding developer tools to quickly deploy things for development to handling patching via WIX. I highly recommend it.



Answer 2:

我也打同样的限制与2009年的BizTalk但设法解决使用Microsoft.BizTalk.ExplorerOM从PowerShell脚本中。

例如,对于停止和启动应用程序的BizTalk

(以下这个优秀的博客帖子上的BizTalk部署使用PowerShell )

param
(
    [switch] $start,
    [switch] $stop,
    [string] $appName,
    [string] $connectionstring
)


    function Stop-Application
    {
        $app = $catalog.Applications[$appName]

        if ($app -eq $null)
        {
            Write-Host "Application " $appName " not found" -fore Red
        }
        else
        {
            if ($app.Status -ne 2)
            {
                $null = $app.Stop(63)
                $null = $catalog.SaveChanges()
                $null = $catalog.Refresh()
                Write-Host "Stopped application: " $appName -fore Green
            }
            else
            {
                Write-Host "Application: " $appName " already stopped" -fore Yellow
            }
        }
    }


    function Start-Application
    {
        $app = $catalog.Applications[$appName]

        if ($app -eq $null)
        {
            Write-Host "Application " $appName " not found" -fore Red
        }
        else
        {
            if ($app.Status -eq 2)
            {
                $null = $app.Start(63)
                $null = $catalog.SaveChanges()
                $null = $catalog.Refresh()
                Write-Host "Started application: " $appName -fore Green
        }
        else
        {
            Write-Host "Application: " $appName " already started" -fore Yellow
        }
    }
}


$null = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.BizTalk.ExplorerOM")

$catalog = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer
$catalog.ConnectionString = $connectionstring


if ($catalog.Applications -eq $null)
{
    Write-Host "Application catalog is empty" -fore Red
}


if ($start)
{
    Start-Application
}


if ($stop)
{
    Stop-Application
}

我们的BizTalk部署由MSBuild的,通过PowerShell的BTSTask和ExplorerOM驱动。 我甚至管理部署组件,当其他组件(或端口)依赖于解决问题。



Answer 3:

我有BTSTask或BTSControl没有亲身经历,但我其实一直能够利用团队基础服务器与BizTalk 2009年大获成功我基本上遵循以下列出的文章,然后定制它从那里为我自己的环境:

2009年的BizTalk -构建和部署自动化的Team Foundation Server 2008 -第1部分



文章来源: BTSTask and BTSControl for BizTalk 2009