Jacksonville Code Camp 2010

Jacksonville code camp 2010 was a great success, some where around 440 attendees. I had 2 sessions, one on BizTalk the other on Linq. I had around 32 in my BizTalk presentation and about 70 in my Linq presentation. I also assisted Joe Healy with the Windows Phone 7 panel and load fest with Kevin and Nikita.

I am going to post my presentations and sample code in the next couple of days.

My Post on Microsoft Tech Wiki – BizTalk Architecture – the basics

How does BizTalk Server work?

At its core it is an event-procesing engine that is based on pubsub converntional patterns.

Wikipedia define pubsub as:

“Publish/subscribe (or pub/sub) is a messaging paradigm where senders (publishers) of messages are not programmed to send their messages to specific receivers (subscribers). Rather, published messages are characterized into classes, without knowledge of what (if any) subscribers there may be. Subscribers express interest in one or more classes, and only receive messages that are of interest, without knowledge of what (if any) publishers there are. This decoupling of publishers and subscribers can allow for greater scalability and a more dynamic network topology.”

Common flow in BizTalk is once a meesage is recieved by an adapter, is is run through pre-processing in a pipeline, before being data transformed in maps, then being published to the messagebox.

 * IMPORTANT NOTE: Once a message has entered the messagebox it is immutable (which means CANNOT be changed).

Because of the the nature of pub/sub patterns a bit a latency is introduced, which BizTalk makes up for in the starabilities (durability, reliability, and scalability).

The most dynamic use for BizTalk is in SOA or Service bus architecture.  In this archtecture itinerary services was introduced, which basically applied a message with a purpose concept.

What is this message you talk about?

It is the data processed through the BizTalk messaging engine (IE. XML document, Word Document, Flat file, etc.).  The message basically contains 2 critical parts message type and context.  The message type defines it within the bus and is typically a XML namespace and root node.  The message context is a set of name/value pairs.

How does a message get to and from BizTalk?

BizTalk uses recieve locations which are defined as endpoints, which use a particular adapter which knowns how to receive that specific message.  These receive locations have a particular receive pipeline associated with them, which can be used to modify the message before it becomes immutable.  Now, a receive port is defined as containing more then one receive location, which apply XSLT maps to the message prior to being published to the messagebox.

BizTalk used send ports and orchestrations (2 real type of subscribers within BizTalk), send ports provide a means of transporting messages from the bus and an orchestration provides an executable business process, which uses the message to complete workflow operations.

Databinding in Silverlight

Databinding in Silverlight is based on any object that is inherites from the DependencyObject class.  Now, with new versions of Silverlight may new features (keywords) had been added.  Let’s look at a couple of new ones.

StringFormat:
Allows the ability to do string formatting directly in the databinding, example:

<TextBox Text=”{Binding paymentDate, StringFormat=’MM/dd/yy’}“/>

TargetNullValue:
Allows you to define what to show if value is null.

<TextBlock Text=”{Binding Path=pageContent, TargetNullValue=’No Page Content is Currently Available’}” />

FallBackValue:
Is used to define a value when the value can not be loaded through the data binding.

<TextBlock Text=”{Binding Path=pageContent, FallbackValue=’There was an Error Retreiving the Data, Please try Again Later.’}”  />

As you can see by the above examples, there are a few helpful keywords with databindings – that deal with formatting, nulls, and when things don’t go right.