Installing the Service Bus 1.0 Beta on Windows Server 2012

Recently I created a new virtual machine with Windows Server 2012, SQL Server 2012 and Visual Studio 2012 to try out the new features but I did not really have a purpose for it. After reading the blog post from Richard Seroter about Installing and Testing the New Service Bus for Windows I was very curious whether the Service Bus for Windows Server also works on my freshly installed VM!

 

Installation

The installation process for the Service Bus for Windows Server described in the sections below allows you to install and configure the software on Windows Server 2012.

The installation files of the Service Bus for Windows Server can be found at:   http://www.microsoft.com/en-us/download/details.aspx?id=30376 

DownloadCenter
 
The Web Platform Installer starts when the installation link is clicked
ServiceBusBeta_WebPlatformInstaller1
 
The Prerequisites dialog appears with a list of prerequisite components that are not
present on the computer
ServiceBusBeta_WebPlatformInstaller2
 
The components are automatically downloaded and installed
ServiceBusBeta_WebPlatformInstaller3
 
To finish the computer must be rebooted at the end of the installation process
ServiceBusBeta_WebPlatformInstaller4
 

Configuration

Installation of the the Service Bus is is quite straightforward but configuring must be done using PowerShell

Service Bus PowerShell On MSDN is a PowerShell Cmdlets Reference with all the cmdlets that you can use for configuring the Service Bus

First create a new farm with the New-SBFarm cmdlet.
New-SBFarm
 
Add the machine to the Farm with the Add-SBHost cmdlet.
Add-SBHost
 
Create a new namespace entry in the farm with the New-SBNamespace cmdlet.
New-SBNamespace
 

 

Verifying the Configuration

After setup has finished verify that the configuration completed correctly.

Check if the databases are created in SQL Server
ServiceBus_Databases
 
Retrieve the Service Bus for Windows Server status with the Get-SBFarmStatus cmdlet
Get-SBFarmStatus
 
You can also check if the services are running in the Server Manager
ServerManager_Services
 

Connect to the Service Bus Namespace

The Service Bus Explorer allows users to administer messaging entities in an easy manner. The version provided on the download page for the Service Bus for Windows Server supports the Service Bus 1.0 Beta.
In the “ServiceBusExplorer-Server.zip” file is only the sourcecode of the Service Bus Explorer. You can open the solution in Visual Studio 2012 and run it.

First fill in the namespace settings to connect the namespace.
ServiceBusExplorer_Connect

When you connect to the localhost by using a dot, it gets stuck behind the uri so you have to remove it.

Use the PrimarySymmetricKey from the New-SBNamespace result in the “Issuer Secret” field

 
Click on “Ok” to connect to the namespace
ServiceBusExplorer_Connected
 

You can find more information about the Service Bus Explorer on:
http://msdn.microsoft.com/en-us/library/hh532261(v=VS.103).aspx
http://soa-thoughts.blogspot.nl/2012/06/visual-studio-service-bus-explorer.html

 

Conclusion

The installation was very easy. Configuration was slightly harder because a timeout occurred when the host started. First I had to remove the host with “Remove-SBHost” and rebooted the machine before I could add the host again but the second time the “Add-SBHost” cmdlet did the job! :-)

About the author

Tomasso Groenendijk lives in Netherlands and is a senior integration consultant at Motion10. He has over 15 years’ experience in software development and software design. Tomasso is specialized in application integration with a strong interest in the Windows Azure cloud platform. In 2014, 2015 and 2016 Tomasso was awarded with the Microsoft Azure MVP award. He is an active contributor to the integration community through his work on his blog, MSDN samples, TechNet Wiki and also speaking on events.

 
 
 
MVP profile Tomasso Groenendijk
 
 
Sentinet Product Specialist
 
 
BizTalk360 Product Specialist

Month List