Forum Replies Created
-
AuthorPosts
-
April 21, 2008 at 12:24 AM in reply to: Limiting the number of SQL Connections for SQL send ports #19402
I don’t believe there is any way to limit the number of SQL Server connections via Send Ports through a generic BizTalk or adapter configuration, however there maybe two possible approaches:
1. The SQL Adapter actually uses a COM+ component (Microsoft.BizTalk.Adapters.SQL) to interact with SQL Server. If you look at the properties for that component under the Queuing tab, there is a property called Maximum Concurrent Players. The Microsoft website (see http://msdn2.microsoft.com/en-us/magazine/cc301497.aspx) details this property as:
The Queuing tab also allows you to control the maximum number of
concurrent players the application can contain. (A player is a
component that plays back the queued calls to your component.) Since
every player is created on a separate thread, there is nontrivial
overhead associated with creating and maintaining a player. In extreme
situations, your application may grind to a halt if the number of
concurrent players is too large (such as a few hundred). When you set a
limit to the number of players and that limit is reached, the listener
does not create new players. Rather, queued calls remain in the
application queue, allowing calls in progress to execute and complete.
The limit is also good for load balancing purposes, and can be used in
conjunction with application pooling.This defaults to 0 (which I presume is ‘unlimited’) – it might be worth having a play with that value (say setting it to 50) to see whether the number of open connections reaches this upper limit and doesn’t go higher
2. It would be possible to implement some delay logic through async orchestrations to limit the number of active Send Ports, only creating further orchestrations when the number of active orchestrations drops below 50.
I will try out the first approach this afternoon as I have a similar application (albeit without the SQL connection issue!)
Regards, Nick.
Thank you! Time to study now…
Hi Skynyrd,
Welcome to the BizTalk community!
I cannot recommend highly enough the blogging community as a source of infomation – there are approx. 70+ BizTalk bloggers out there, if you go to the BizTalk Gurus blog aggregation website, the majority are there. I also have an OPML file available on my blog which lists the BizTalk blogs I read on a daily basis.
There are also a number of very good books out there. My personal favourites are:
- Pro BizTalk 2006 (Apress)
- BizTalk 2006 Recipes (Apress)
- EDI in BizTalk Server 2006 R2 (Apress)
- Professional BizTalk Server 2006 (Wrox)
You can also find a wealth of technical information on the Microsoft MSDN and Technet websites.
If you have any questions relating to either development, architecture or infrastructure, there are the USENET microsoft.public.biztalk.* newsgroups and this forum. There is normally someone around who can answer any question you may have – no matter how simple they may seem!
Finally, good luck with the start of your new career!
Nick.
Sidhu,
Yes you can post a message via a HTTP Send Port from one BizTalk environment to a second BizTalk environment that is listening via a HTTP Receive Location. If you’re doing more than simply invoking a web-page – i.e. you’re sending a message that needs to be actioned in some way – you may want to consider using a web-service and the SOAP adapter for this task.
Regards, Nick.
Nick,
Thanks for your explanation. Below is what I am trying to ask you.
Can I just post a message using a send port just like I do it using file adapter(I mean I won’t except anything back)? If so, Can I have a biztalk application listening to this message at the other end via http receive port?
Once again, thanks for your support.
Hi Sidhu,
You appear to be asking two different questions, let me try and answer both:
If you want to expose some BizTalk functionality over the HTTP protocol, you would configure a receive location with a HTTP adapter. This receive location would detail the exposed URL (normally an .aspx page) and would run against an ‘Isolated Host’ (that essentially means that IIS is managing the receipt of theHTTP request rather than BizTalk itself). Once the request is received you can treat it like any other BizTalk message; however you would normally return a response message via the same receive port/location.
If you wanted to consume a web-resource, you would use a send port with a HTTP adapter (running under an ‘In Process’ host, i.e. BizTalk, not IIS) and specify the URL of the resource you wanted to consume (an RSS feed for example, not necessarily an .aspx page!). The response message would be delivered back to your Send Port and published back to the BizTalk message box, allowing orchestrations/other send ports to act on the response message.
If this doesn’t answer your question, can you elaborate on what you mean by “Can I just post a message to a location where my receive port configured using http adapter is listening to?”!
As for resources detailing how to use the HTTP adapter, take a look at the following:
Cheers, Nick.
Got it working, needed SP2 on SQL, and then I could configure BizTalkMgmtDb etc.
Does it make more sense to use Web Services for this process?
I could write an ASP .NET web application that receives the file, creates a SOAP messages and passes the received file to BizTalk vai a Web Service adapters. Once BizTalk is done processing the message it will repond with a report message.
Will this allow me to do a synchronous process meaning the user would only have to click the test button and would be automatically be redirected to a report page when BizTalk reponds with the report.
Anyone have any experience with an application like this?
Nick, thanks for your response
I am actually new to biztalk and I am just trying to know when sending a message using http adapter, at send port do we have to give address of an aspx file which can process the HTTP Message. Can I just post a message to a location where my receive port configured using http adapter is listening to?
Regards
Sidhu
April 18, 2008 at 5:42 AM in reply to: Receliving two messages using biztalk receive location by correlation #19388[quote user="themistry"]i think I was smoking crack when writing my original reply,[/quote]
LOL, thanks for making me laugh first thing in the morning 🙂
I had to open my source code to know for sure that I wasn’t using a Listen Shape 😉
Afraid I don’t know – my last install of R2 when onto an SP2 SQL Server 2005 installation so I never received the error.
Will upgrading your environment cause problems?
Nick.
April 18, 2008 at 2:20 AM in reply to: Receliving two messages using biztalk receive location by correlation #19385i think I was smoking crack when writing my original reply,
Greg has the correct approach for this problem.
TM
On the Configuration Wizard, the system raises an error that SQL Server 2005 needs SP2.
Is this correct?
Carlos,
I’ll second the above comment – there are many warnings about using this in a production environment. If Microsoft say don’t, I think its fair to say that you shouldn’t!!
I’m in a similar situation with a large number of suspended instances (20 million+) and we are using a custom WMI script to clear these messages down. Its taking a while, but its getting the job done.
If you can advise what type of messages are suspended, I’ll modify our WMI script for you to use.
Regards, Nick.
Sidhu,
Yes you can, simply point the Send Port at the address exposed by the Receive Location.
However, I would have to question why you are doing this, as you’re simply creating a circular reference from what I can tell. Can you elaborate on what you are trying to acheive and I’m sure the community can offer suggestions as to best practice.
Regards, Nick.
-
AuthorPosts