パブリッシャの設定 パブリッシャのメッセージは、加入者
<!-- 1. In order to configure remote endpoints use the format: "[email protected]"
2. Input queue must be on the same machine as the process feeding off of it.
3. Error queue can (and often should) be on a different machine.
4. The community edition doesn't support more than one worker thread.
-->
<MsmqTransportConfig
InputQueue="HomeOfficePublisherQueue"
ErrorQueue="error"
NumberOfWorkerThreads="1"
MaxRetries="5"
UseJournalQueue="true"
/>
<DBSubscriptionStorageConfig>
<NHibernateProperties>
<add Key="connection.provider"
Value="NHibernate.Connection.DriverConnectionProvider"/>
<add Key="connection.driver_class"
Value="NHibernate.Driver.SqlClientDriver"/>
<add Key="connection.connection_string"
Value="Server=<dbserver>\corpdev;initial catalog=NServiceBus;Integrated Security=SSPI"/>
<add Key="dialect"
Value="NHibernate.Dialect.MsSql2005Dialect"/>
</NHibernateProperties>
</DBSubscriptionStorageConfig>
<UnicastBusConfig
DistributorControlAddress=""
DistributorDataAddress=""
ForwardReceivedMessagesTo="">
<MessageEndpointMappings>
</MessageEndpointMappings>
</UnicastBusConfig>
</configuration>
加入者の設定
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig, NServiceBus.Core" />
<section name="UnicastBusConfig" type="NServiceBus.Config.UnicastBusConfig, NServiceBus.Core" />
</configSections>
<!-- 1. In order to configure remote endpoints use the format: "[email protected]"
2. Input queue must be on the same machine as the process feeding off of it.
3. Error queue can (and often should) be on a different machine.
4. The community edition doesn't support more than one worker thread.
-->
<MsmqTransportConfig
InputQueue="[email protected]<subscriberServer>"
ErrorQueue="error"
NumberOfWorkerThreads="1"
MaxRetries="5"
UseJournalQueue="true"
/>
<UnicastBusConfig>
<MessageEndpointMappings>
<add Messages="Message" Endpoint="[email protected]<publisherServer>" />
</MessageEndpointMappings>
</UnicastBusConfig>
</configuration>
に達していない発行者からのメッセージにはありませんリーチ加入者。私は同じマシンでそれらを実行する場合、彼らは正常に動作します。
=>パブリッシャはこのマシンで実行されており、パブリッシャキューはローカルに作成されています。
は、
と同じです。=>サブスクライバが実行されているマシン。
プロファイルはプロダクションであり、ログファイルに例外はありません。
メッセージがドロップされる原因となる手掛かり。 助けを求めるThsnks ...
一部タグが間違っていて、サーバーを "=>パブリッシャがこのマシンで実行中で、パブリッシャキューがローカルに作成されていると見なしてください。 は、 と同じです。 =>サブスクライバが実行されているマシン。 –
singhsa