Two Useful Articles from the SharePoint team
From Clayton,
http://claytonj.wordpress.com/2007/09/16/moss-internet-site-articles/
From Clayton,
http://claytonj.wordpress.com/2007/09/16/moss-internet-site-articles/
I have been having fun working on the middle tier of an application which is using BizTalk, Windows Workflow, MSMQ and the Windows Communication Framework.
One of the requirements is to processes messages we receive from a legacy system through MSMQ in FIFO order.
We used WCF to communicate with MSMQ and used the msmqIntegrationBinding binding since the legacy application was placing the messages on the queue.
The FIFO processing seemed to be little more difficult to iron out. It turns out that by default a service’s InstanceContextMode is PerSession. If the channel is a datagram then the IntanceContextMode degrades to PerCall. So what happens is that the WCF runtime will create a new service instance for each available request/message up to the MaxConcurrentCalls/MaxConcurrentInstance setting utilizing multiple threads. This was not going to provide my FIFO processing.
So, to set WCF to only pull and process one message at a time you need to set the service’s InstanceContextMode to Single along with setting the ConcurrencyMode to single. The following code shows these settings:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,
ConcurrencyMode = ConcurrencyMode.Single,
)]
public class MSMQEventService : IMSMQEventInterface, IDisposable
{
Once these settings are set you will achieve FIFO processing and WCF will only utilize a single thread and will process one message at a time from the single queue.
My next entry will cover processing multiple queues and processing each queue in FIFO order.
Email from our internal readiness team…
Hi,
Aligned to the BizTalk Release 2, global launch in Australia, we have scheduled the training for Partners as per below.
Please ensure that your partners are aware of this and register: As always – thank you very much.
BizTalk R2
https://www.local.microsoft.com.au/australia/events/register/home.aspx?levent=478264&linvitation
Sydney – Oct 18 & 19
Brisbane – Oct 15 & 16
Melbourne – Oct 25 & 26
Perth – Oct 18 & 19
/*********************************************
* Group 1 – ‘Started’ state
********************************************/
Rule 1
IF
AND
Context.CurrentState == “started”
MyFactA.Property1 > 5
MyFactB.Property1 < MyFactA.Property
THEN
MyFactB.Property1 = MyFactA.Property1
assert MyFactB
Rule 2 (priority -1)
IF
Context.CurrentState == “started”
THEN
Context.CurrentState = “initialised”
assert Context
/*********************************************
* Group 2 – ‘Initialised ‘ state
********************************************/
Rule 3
IF
AND
Context.CurrentState == “initialised”
MyFactA.Property2 == “USA”
THEN
MyFactA.SetCountryCode(“01”)
Rule 4
IF
AND
Context.CurrentState == “initialised”
MyFactA.Property2 == “UK”
THEN
MyFactA.SetCountryCode(“44”)
Rule 5 (priority -1)
IF
Context.CurrentState == “initialised”
THEN
Context.CurrentState = “completed”
assert Context
assert MyFactA // convenient place to re-assert MyFactA
//to avoid loops if, for example,
// MyFactA.SetCountryCode() changes the
// state of MyFactA.
/*********************************************
* Group 3 – ‘Completed’ state
********************************************/
Rule 6
IF
AND
Context.CurrentState == ” completed “
THEN
MyFactA.Property1 = 0
MyFactB.Property1 = 0
/********************************************/
There are a bunch of new features in the September Preview of Blend 2 try them out for yourself.
Enjoy!
What a great event – BizTalk, BizTalk and more Biztalk.
It was great to see all those who attended and especially those from the user groups
(Sydney, Brisbane and Melb)
I personally had a great day – the weather was great. It was sunny, it hailed and
then in true fashion the sun was out again.
So this means that BizTalk 2006 R2 is now RTM – grab it from here
Scott (another BizTalk super hero) & I put together a great RFID Demo (I can say
*great* being not too bias).
Come 2am the morning before the launch Scott & I were wondering ‘was there going
to be a demo?’. In true show style it all came off on the day 🙂
I’ll blog about the demo shortly….it went down a treat
There were some great sessions (I wasn’t able to get to them as I was a ‘booth babe’
for the day).
The thing that I was most impressed about on the day……was the amount of
support from the Corp BizTalk team. Well done guys!!! ![]()
The team had been on the road launching R2 in 3 world wide locations (in
Taipei they were treated almost like rock star status!).
We had Oliver Sharp (BizTalk PM) and major figures in his team – the guys were great
and always willing to lend an ear. (Some of them were off surfing at
Bondi the following day – that’s the way it’s done !! 🙂
In mentioning the team I can’t fail to mention MR. RFID of MS – Anush Kumar. What
a great genuine guy. He’s always got a brilliant story to tell around Microsoft
RFID Services. RFID, Integration, surfacing, WCF, BizTalk, BAM, TagEvent data – these
are all words he uses. This is a huge Microsoft story – and what the RFID team has
achieved it the last 3-4 years both on the hardware/software space is amazing. Standardising
readers (c.f. ODBC and ODBC drivers) and providing momentum to standards bodies on
various tags and their formats.
R2 here we come….time to update some VPCs.
Links from my recent Mashup the Web presentations…
All Blacks Silverlight Gadget
Photosynth – Nasa
Silverlight Space Invaders
Image Search (filter:face)
Tafiti
BackgroundMotion
Zero Gravity
Media Preview
Terra TV
French Rugby
Demo Applications…
Evermore Reflection Video – Silverlight 1.0
News Feeds…
VisitMix
SilverlightCream
Arturo
Shane – Wireframing in Blend – Starter Project
Aussie Remix videos
Expression Encoder…
Clarkezone
Community…
If you are lucky enough to live in Wellington Nas has set up a user group for designers called http://zamdes.com. The Expression team at Microsoft is also kicking off a global design event in Auckland on the 4th of October called “Expression around the Clock”. Places are limited but please spread the word and register at http://www.microsoft.co.nz/expression for the free half day Auckland event otherwise follow along on the global website http://expressionevent.com.
If you haven’t already please subscribe to the Microsoft Designer UX newsletter that we will start sending out once a month. You can subscribe by visiting http://tinyurl.com/2uwnpe and filling in the email template.
Wanted to recap the list of things I walked away with today from the conference at MS-HUG:
Keynote address
Bill Crounse, MD, Director Worldwide Health Microsoft Corporation
Well, I got to listen to Bill (no not that Bill) and it was interesting, I learned today that CMS will significantly curtail the payments of procedures for in hospital infections. This will have rippling effects for the providers, and will spurn the pay for performance initiatives and quality of care initiatives as hospitals will now have to foot the bill for those issues.
Winning Trust, Minimizing IT Resources: Key to Forming RHIOs
Mark Singh President Clinicore Solutions
Kathleen Sullivan CEO Salient Health Solutions/SEMRHIO Consultant
Being the architect I am very much aware of what is going on (I had better!), however it was interesting because most of the questions were focused on the business model, the revenue generation process. This is the next phase in our process, but having a working process in place I feel is the key to success as we now have 3 hospitals up with minimal IT resources.
Reference Implementations for Healthcare: HCE and iHE XDS.b(sorry the link does not work as of yet)
Roberto Ruggeri Senior Technical Strategist for Microsoft Worldwide Health Microsoft Corporation
Randy Fusco Technical Strategist for Microsoft US Health Providers Microsoft Corporation
This was a great presentation where I learned about how much Microsoft is looking for us to help. For those who write blogs and to those who read blogs (you know who you are) it was a call to action! Yes you!
On http://solshare.net you can download the code and start to try it out and using their forum, you can submit bugs, ask for enhancements, etc.
I asked if there was a list of known issues, in which Roberto told me that no, this was a feature, that we get to start our own list and he will see if we really know what we are doing! (j/k) Seriously, he said that there is no existing list of issues, so I would assume that you can post those known issues/fixes directly on the solshare.net site.
Lunch
I went out to eat with Eric Battalio, Muhammad, and Liza from the documentation team, and wow, I learned a lot! The first and most important thingI learned is that those comments that you can leave on the documentation site actually go to someone. My suggestion is that if you want to start a dialog with the documentation team (which by the way, they would LOVE), it would be nice to have some type of post submission question asking if you (the feedbacker) would like to be contacted by Microsoft and what email they can contact you.
In the interim, just put your email address in the comments so they can contact you directly, Iassume that there will be something in the worksaddressing this issue.Below is an example of something I have had on the back of my mind recently.
Improving Patient Safety Using the Microsoft Common User Interface (MS-CUI)
Andrew Kirby Director of Solutions Development Center Microsoft Corporation, UK
Like the CHF, this is very much a work in progress and since it is very early on in the development, it is more of a guideline and they need as much feedback as possible. However there are no immediate plans for a reference implementation to build off of other than the first implementation in England.
What’s New in BizTalk Server 2006 R2
Stuart Landrum Program Manager, BizTalk, Microsoft Corporation
Well, it was the first time I had met Stuart face to face, had been on some conference calls with him, so it was good to meet him. He explained the new features with the HL7 accelerator (now officially branded 2.0). There was very little pictures of the product so the discussion went rather quickly and ended early with few questions, I had to ask a few questions to get people in the asking mood, but it did not go much further than that.
Closing Keynote: Using IT to affect efficiency and safety changes in the erioperative process
Conclusion
Paul St. Jacques, MD Associate professor and Director of Perioperative informatics Vanderbilt University
This doctor was actually kind of funny. I am not sure if he meant to be, but if it was not for his phones (yes plural) that added a little static to his voice, or his low ranking on the pay for performance ratings that he refuse to show on the list of many doctors ranked (it was too small to see), it was a good presentation that ended on a high note, even though he essentially had to ask us to laugh, even though there wasn’t really anything funny about his presentation. He did use one of my all time favorite phrases, while describing the hospital system that he works in, he described it as a level 1 trauma facility that is “soup-to-nuts” – where did that come from and should we be saying that phrase as professionals?
The interesting thing that I thought that he was going to joke about was his workflow from a patient pre-registration process through surgery completion. look closely for anything wrong with this picture
nope, not the fact that they are using SQL Server 2003 (must be a special version of SQL Serverthat I am notaware of)
The real problem with this picture is that there is a little girl that starts the surgery process, and when the workflow is complete, thegirlis actuallyHenry Kissinger! Either that process took a really long time (and something major wrong happened), or this is a plastic surgeon’s billing dream come true!
Talk to you all tomorrow!
Congrats to the Connected Systems Division for getting BizTalk Server 2006 R2 out the door. Now that we’re done with that, here’s my humble “wish list” for BizTalk Server vNext. I realize that development is well under way, but, hopefully some of these requests can make it in.
Design Tools
High level modeling tool. Nothing […]