July 2009 - Posts

Richard Seroter coming to BizTalk User Group Sweden!
25 July 09 10:47 AM | wmmihaa

Open your calendar and mark the 16th of September!

I think most people know who Richard Seroter is. Even if you don’t follow blogs on a regular basis, I’m sure you’ve come across his articles from time to time. I know Richard as a very smart guy with a great sense humor, and we’re very happy to finally get him to Stockholm.

Richard is the author of the recently released "SOA Patterns for BizTalk Server 2009" book (Packt Publishing) which takes a look at how to apply good SOA principles to a wide variety of BizTalk scenarios. He is also the technical reviewer of the upcoming “Pro BizTalk Server 2009” book from Apress.

Read Johan Hedberg’s review here.

BTW, before the event I plan to post a “Four Questions With…Richard Seroter”!

Topic: BizTalk Server, SOA and the Shift to the Cloud

Session 1: In this session we will discuss the continued relevance of SOA and how to apply SOA principles when designing and exposing services from BizTalk Server.

Session 2: This session shows how to exploit SOA principles when consuming existing services. We will also see how BizTalk can directly engage cloud offerings from the leading vendors.

Richard Seroter is a solutions architect for an industry-leading biotechnology company, a Microsoft MVP for BizTalk Server, and a Microsoft Connected Technology Advisor. He has spent the majority of his career consulting with customers as they planned and implemented their enterprise software solutions. Richard worked first for two global IT consulting firms, which gave him exposure to a diverse range of industries, technologies, and business challenges. Richard then joined Microsoft as a SOA/BPM technology specialist where his sole objective was to educate and collaborate with customers as they considered, designed, and architected BizTalk solutions. One of those customers liked him enough to bring him onboard full time as an architect after they committed to using BizTalk Server as their enterprise service bus. Once the BizTalk environment was successfully established, Richard transitioned into a solutions architect role where he now helps identify enterprise best practices and applies good architectural principles to a wide set of IT initiatives.

Richard maintains a semi-popular blog of his exploits, pitfalls, and musings with BizTalk Server, SOA and enterprise architecture at http://seroter.wordpress.com.

The event will be officially announced on the user group site in the beginning of August.

bLogical SFTP Adapter – Planning for new release
25 July 09 10:12 AM | wmmihaa

I’ve been doing some minor bug fixes to the adapter, and plan a new release after the summer. So far, the only new feature is support for SSO, as that has been requested many times. However, I’m eager to hear if there are other requests. If there are, I’ll do my best to squeeze them in.

If anyone has done any fixes of their own, PLEASE let me know!

Visit the SFTP adapter site on CodePlex

Filed under: , ,
How to use the Oslo Repository to store your Service configurations
07 July 09 11:45 AM | wmmihaa | 1 comment(s)

Most of the sample from Microsoft have so far been more about HOW to use “Oslo”, rather then WHY and WHEN. This has brought many developers to struggle about what to make out of “Oslo”, and how to put it in good use.

There are, however, several very interesting community posts about Oslo. But most of them are about M Grammar, and very few (I haven’t seen any) has been about the “Repository”.

M Grammar, is without a doubt a more “sexy” technique, as the Repository is nothing more than a SQL store for your models. – BUT I’m willing to bet that the Repository will play a very significant part in the future of any Microsoft technology. By writing this article, I hope to broaden your vision of how to use “Oslo”, and envision where Microsoft is going with the it.

Service Configuration => “Oslo” Repository;

image

A service host, hosts one or more services. It is created by a service host factory which, by default, loads all service configurations (bindings, services and behaviors) from one configuration file. The default factory is System.ServiceModel.Activation.ServiceHostFactory.

The samples in this post will show you how you could load the configurations for all your services from ONE “Oslo” Repository, rather than from many configuration files. As if all your services would share the same config file. 

image

The sample above would of course work for any number of web servers accessing the same Repository database.

To accomplish this we need:

  1. A “Oslo” model representing system.serviceModel. The January release of “Oslo” where shipped with the system.serviceModel model. However it was cut out in the May release, so I just created my own.
  2. A custom service host factory that loads Services and endpoints, along with all bindings and behaviors. I didn’t bother to make this to generic, so it only supports basicHttpBinding, wsHttpBinding, netTcpBinding and of course mexHttpBinding. 
- “So what?”

Actually, I think this is a pretty big deal. Having one single repository for all your services, means one single store for managing and configuring these services. - And what better tool to use than the “Oslo” Quadrant! 

image

Try it out:

  1. If you haven’t already installed the Oslo May CTP release, you can find it at the “Oslo” Developer Center.
  2. Download the zip file and open the  bLogical.ServiceModel.m file using “Intellipad”.
  3. In “Intellipad”, switch to “SQL-Preview” by using the “M mode” in the menu bar.
  4. Open SQL Management Studio, create a new query window and select the Repository database.
  5. Copy the T-Sql from “Intellipad”, paste it in to the query window and execute it. This will create all the Tables, and populate them with sample data.
  6. Open Visual Studio 2008, and create a new WCF Service by selecting “New Web site”. Don’t change the name of the service, as the samples created in step 5 assumes your service is called “Service”, and its interface is called IService. If you do want to change the name or use it for an already existing project, make sure to to do the changes in the repository.
  7. Add the bLogical.Oslo.ServiceHostFactory project to your solution. 
  8. Open your .svc file and add the bLogical service factory:

<%@ ServiceHost
    Language="C#"
    Debug="true"
    Service="Service"
    CodeBehind="~/App_Code/Service.cs"
    factory="bLogical.Oslo.ServiceHostFactory.ServiceHostFactory"
%>

Run the service!

HTH

Special thanks to Yossi Dahan, for encouraging me to do this article.

//Mikael

Filed under: , , ,

This Blog

News

    MVP - Microsoft Most Valuable Professional BizTalk User Group Sweden BizTalk blogdoc

    Follow me on Twitter Meet me at TechEd

    Visitors

    Locations of visitors to this page

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Syndication