Thursday, March 8, 2012

Contracts ?

Hi There

I have noticed that one cannot alter a contract, there is no alter contract syntax.

I understand the reason is because one can break applications by altering messages in contracts used to build apps.

However now it seems that everytime i create a new message type i have to create a new contract which in turn i have turn alter a service to use it. I cannot drop and re-create contracts because they are bound by services.

So basically what i am saying is that it is really a mission to add new messages types in a complex SB application (create new message+create new contract+alter service), is this just the way it is or what am i missing here ?

Thanx

Indeed, changing contracts once an application started using them will break the apps. Similar to how one cannot change a COM interface after a component has shipped.

While in development, is an OK approach to drop the contract (and service) and recreate it again with the new message types. But once you deployed the app, the proper way to add new message types is to create new contracts. Typically this is done by creating a new contract that has all the previous contract message types and in addition, the new message types.

HTH,
~ Remus

|||Thanx Remus , just wanted to be sure.

No comments:

Post a Comment