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!
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
The Web Platform Installer starts when the installation link is clicked The Prerequisites dialog appears with a list of prerequisite components that are not present on the computer The components are automatically downloaded and installed To finish the computer must be rebooted at the end of the installation process
Installation of the the Service Bus is is quite straightforward but configuring must be done using PowerShell
First create a new farm with the New-SBFarm cmdlet.
Add the machine to the Farm with the Add-SBHost cmdlet.
Create a new namespace entry in the farm with the New-SBNamespace cmdlet.
After setup has finished verify that the configuration completed correctly.
Check if the databases are created in SQL Server
Retrieve the Service Bus for Windows Server status with the Get-SBFarmStatus cmdlet.
You can also check if the services are running in the Server Manager
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.
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
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
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! :-)