Biztalk自定义文件适配器 [英] Biztalk custom File Adapter

查看:110
本文介绍了Biztalk自定义文件适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


最近我遇到了以下问题。如果有人遇到类似的问题,请指导我。我正在使用Biztalk服务器2013


<强>"无法停止BizTalk服务BizTalk组:BizTalkServerApplication&NBSP;
本地计算机上的服务。 

错误1053:服务没有响应停止或在&NBSP控制请求;

及时时尚


当我检查事件日志时,我变得像
"
在等待BizTalk服务BizTalk
组时达到超时(30000毫秒)<


这是在我之后发生的部署了自定义文件适配器。


实际上我从biztalk服务器位置路径获取了sdk示例[文件适配器],用于进行零字节文件接收过程。


<我创建了几行代码来推广几个属性。


然后,我使用注册表文件来注册程序集。


现在我能够接收零字节文件并将相同的文件发送到其他位置的vai发送端口。这是完美的。 


但是当我尝试重新启动主机实例时,我收到了上述错误。我不确定它为什么会出现。


我确定如果我使用自定义文件adaper我会收到此错误。因为如果我运行其他  biztalk应用程序,我没有任何问题。但如果我运行,自定义文件适配器应用程序。我能够重新创建这个问题。


另外,我调试了,找出我得到的地方


这个.batch.SubmitMessage(file.Message,file.UserData);这是将msg推送到biztalk db的方法调用。我认为一些引用对象没有被删除。当我验证方法调用时,它会进入几个事件处理函数。我无法遵循这一点。



任何人都可以帮助我,我需要在自定义文件适配器中做什么吗?





解决方案

通过此论坛调试代码非常困难。


当以下代码需要更长时间才能完成时会发生此错误。

 using(ReceiveBatch batch = new ReceiveBatch(this.transportProxy,this.controlledTermination,batchInfo) .OnBatchComplete,this.properties.MaximumNumberOfFiles))
{
的foreach(在文件BatchMessage文件)
{
//提交文件进行批处理
batch.SubmitMessage(文件.Message,file.UserData);
}

batch.Done(null);
}




Hi,

Recently i have faced this below issue. please guide me if any one already faced similar issue. i am using Biztalk server 2013

"Could not stop the BizTalk Service BizTalk Group : BizTalkServerApplication 
service on Local Computer. 
Error 1053: The service did not respond to the stop or control request in a 
timely fashion

when i checked event log, i am getting like "A timeout was reached (30000 milliseconds) while waiting for the BizTalk Service BizTalk Group "

this is came after i deployed the custom file adapter.

Actually i took the sdk samples[File Adapter] from biztalk server location path , for doing zero byte file receving process.

I made few lines of code for promoting few properties.

then, i used registry file to register the assemblies.

Now i am able to receive the zero byte files and send the same file to some other location vai send port. It is woking perfectly. 

but when i tried to restart the host instance , i am getting the above error. i am not sure why it is coming.

i am sure about that i am getting this error if i am used custom file adaper. since if i run other  biztalk application , i dont have any issue. but if i run , the custom file adapter application . i am able to recreate this issue.

Also, i debugged, and find out which place i am getting

this.batch.SubmitMessage(file.Message, file.UserData); this is the method call to push the msg to biztalk db. I think some references object are not removed. when i verified the method call, it goes several event handler function. i am unable to follow that.

Can any one help me is there any this i need to do in custom file adapter?


解决方案

Its really tough to do debug your code thru this forum.

This error happens when the following code take longer time to complete.

  using (ReceiveBatch batch = new ReceiveBatch(this.transportProxy, this.controlledTermination, batchInfo.OnBatchComplete, this.properties.MaximumNumberOfFiles))
            {
                foreach (BatchMessage file in files)
                {
                    // submit file to batch
                    batch.SubmitMessage(file.Message, file.UserData);
                }

                batch.Done(null);
            }



这篇关于Biztalk自定义文件适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆