Kumaraguru

Hi ,

I am using scheduled adapter. During the runtime, it is creating 2 host instances. I don't know why it is creating 2 host instances. I have few applications where in am facing the same problem. Please help me this. ASAP..

Advance Thanks ,

Kumaraguru.S




Re: BizTalk R2 General Regarding Host Instances

Tomas Restrepo

Do you mean it is creating two *service instances* It would certainly make no sense for it to create additional host instances . What exactly are you seeing happening Are two orchestration instances firing at the same time everytime the schedule adapter reaches a schedule period





Re: BizTalk R2 General Regarding Host Instances

Kumaraguru

Hi Tomas Restrepo,

Yes .. Two Orchestration instances are getting created as soon as the schedule adapter reaches the scheduled period.

I am using clustered Environment. Having 2 servers for processing. So i am having two hosts to split the loads.

Is that because of two hosts

Thanks and Regards,

Kumaraguru.S






Re: BizTalk R2 General Regarding Host Instances

Tomas Restrepo

Yes, it might very be well be that. I don't think the schedule adapter was created to work well on a multi-server environment. What you can do to avoid the issue is to put the adapter (receive location) in it's own biztalk host and configure only a single instance for that host on just one of the biztalk servers.





Re: BizTalk R2 General Regarding Host Instances

Kent Weare

This would definately be related to running multiple host instances of the host configured for this receive location. From what you have described, you technically do not have a clustered environment but rather a "Multi node deployment". BizTalk 2006 does support clustered hosts. So if you require full redundancy, but only one host instance running at a time then you would want to cluster this host. Clustering a host does require some additional setup including a Resource Disk, Server Name and IP.

We run our POP3 and FTP adapters in clustered hosts so that we have redundancy without having race conditions or multiple instances initiating. Prior to doing this we were receiving duplicate emails as both servers were making connection to the POP3 server.

If you do not require the "automatic fail over" then I would suggest following Tomas' reccommendation. But in the event that the server that has this host instance enabled goes down, the second server would not automatically pick the load up. You would have to go and enable that host.





Re: BizTalk R2 General Regarding Host Instances

Kumaraguru

Hi Kent thank you for your valuable information.

I have another query....

I want to send one Zero Byte Text File to FTP. How is that possible through Orchestration

Thanks and Regards,

Kumaraguru.S






Re: BizTalk R2 General Regarding Host Instances

Kent Weare

Hi Kumaragur,

I can't say forsure whether this would result in a 0byte file, but it would be worth a try. There is a sample on MSDN which outlines using a Raw String formatter class. I have used this in the past for sending emails via the SMTP adapter. The link for the source code is here: http://msdn2.microsoft.com/en-us/library/ms962963.aspx.

So what you would do is copy that code into a .Net Helper assembly, create message type in your orchestration that is of type <your.NetAssemblyNamespace>.RawString. Within a MessageAssignment shape you would then set:

<yourMessage> = new <your.NetAssemblyNamespace>.RawString();

There are a couple constructors for that class but if you want an empty message then use the default constructor. You would then send this message via FTP. You could also assign this message whatever name you want to.

I can't say forsure whether this would be 0 byte but I think that it would be.

Kent





Re: BizTalk R2 General Regarding Host Instances

Kumaraguru

Hi Kent,

Thank you so much for your time.....

If you have any new concepts apart from some basics.

Regards,

Kumaraguru.






Re: BizTalk R2 General Regarding Host Instances

Kumaraguru

Hi,

I have few queries...

1) What is the difference between Host and Host instance I can't visualise on the same.

As per my knowledge,

Host will hold the deployed application and artifacts such as ports,Orchestrations,Adapters etc.

Host Instance will run the application on different server

Please give me an elaborate explanation on the same using some real time example.

2) what is the difference between web services and BizTalk server

What are the advantages of BizTalk server over web services

Both are using the XML and processing the XML.... which is more efficient over the other

Thanks and Regards,

Kumaraguru.S






Re: BizTalk R2 General Regarding Host Instances

Leonid Ganeline

Thik of the Host and Host Instance as a Class and Object (Instance) of this class. Host is a "Type of Host Instance", kind of. Host Instance is a working implementation of the Host.

Toyota Camry as a name of car is a Host.

Toyota Camry as a real car with driver inside is an Host Instance. Smile

2) Yes, from the consumer point of view there are no difference, sometime.

If you need asynchronous message transfer, you need an intermediate service to store the messages. It's the BizTalk server, working as a Message server.

If you need not the simple point-to-point routing, but publish-subscribe routing, or you need the content routing, BizTalk is a good alternative.

If you need the message format transformation, the BizTalk give you the out-of-box solution.

If you need the message transport transformation, the BizTalk give you the out-of-box solution.

If you need the high, very-very high scalable, reliable and high-speed message application, the BizTalk give you the out-of-box solution.

etc.






Re: BizTalk R2 General Regarding Host Instances

Kumaraguru

Hi Leonid,

The information given by you is very much helpful to me.

I have another Query regarding Direct Binding.

We have three options of Direct binding.

1) Sending to Messge Box.

2) Sending to another orchestration.

3) Self Correlating type.

If we are sending to Message box directly, then the same thing is happening in normal procedure.What is the difference between the normal way of publishing and this direct binding publishing

If we send to another orchestration directly, is the exact publishing happening or not

Then what about the self correlating type.

Regards,

Kumaraguru.S