|
Home > Archive > BizTalk Server General > March 2006 > BTS 2004 | Where to put startup/initialization code?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
BTS 2004 | Where to put startup/initialization code?
|
|
| Sachin Surana 2006-03-19, 11:59 am |
| Every application has initialization code which gets executed during
application startup. While developing a BTS application, where do we put the
initialization code?
| |
| BizTalk Benjamin 2006-03-19, 11:59 am |
| Sachin,
Not sure I understand your question. The only code you would ever write in
Biztalk is for custom pipeline components, custom functoids or helper DLLs
that are called from various places (including orchestrations). Other than
this you simply configure recieve and send ports and construct messages in
orchestrations.
What initialisation code are you thinking of ?
- benjy
"Sachin Surana" wrote:
> Every application has initialization code which gets executed during
> application startup. While developing a BTS application, where do we put the
> initialization code?
>
| |
| Sachin Surana 2006-03-19, 11:59 am |
| If you have a BTS application, you would have initialization code for example
- path of log4net config file, connection strilng to database etc. These
would be initialised only once. Where to put such code ?
"BizTalk Benjamin" wrote:
[vbcol=seagreen]
> Sachin,
> Not sure I understand your question. The only code you would ever write in
> Biztalk is for custom pipeline components, custom functoids or helper DLLs
> that are called from various places (including orchestrations). Other than
> this you simply configure recieve and send ports and construct messages in
> orchestrations.
>
> What initialisation code are you thinking of ?
>
> - benjy
>
> "Sachin Surana" wrote:
>
| |
| BizTalk Benjamin 2006-03-21, 3:09 am |
| Oh, configuration data... there are a couple of options and if you do a
search in this group you'll find quite a few discussions on the same. A brief
list
(1) store it in BTSNTSVC.exe.config. read with normal .NET code
(ConfigurationSettings.AppSettings) or use Enterprise library
(2) use BTSNTSVC.exe in conjunction with AppDomains so the main config data
is stored in a separate config file
(3) store it in SSO and use the SSO API or Jon Flanders SSOHelper tool
check this link for a reply
http://groups.google.co.uk/group/mi...66f155d01bbc8d3
HTH,
Benjy
"Sachin Surana" wrote:
[vbcol=seagreen]
> If you have a BTS application, you would have initialization code for example
> - path of log4net config file, connection strilng to database etc. These
> would be initialised only once. Where to put such code ?
>
> "BizTalk Benjamin" wrote:
>
| |
| Sachin Surana 2006-03-21, 3:09 am |
| I was not referring to configuration data. I was talking about where to put
the code which reads this data and initializes this code. Something similar
to reading initialization files.
I want to initialise log4net (by pointing it to a config file). But this
piece of configuring code should be called only once. Even if I store data in
SSO, how to initialise log4net? When would this piece of code get called?
"BizTalk Benjamin" wrote:
[vbcol=seagreen]
> Oh, configuration data... there are a couple of options and if you do a
> search in this group you'll find quite a few discussions on the same. A brief
> list
> (1) store it in BTSNTSVC.exe.config. read with normal .NET code
> (ConfigurationSettings.AppSettings) or use Enterprise library
> (2) use BTSNTSVC.exe in conjunction with AppDomains so the main config data
> is stored in a separate config file
> (3) store it in SSO and use the SSO API or Jon Flanders SSOHelper tool
>
> check this link for a reply
> http://groups.google.co.uk/group/mi...66f155d01bbc8d3
>
> HTH,
> Benjy
>
> "Sachin Surana" wrote:
>
|
|
|
|
|