Skip to content

Commit 6d5f6de

Browse files
committed
Remove references to timeout data
The sample uses the learning transport which does not need separate timeout persistence
1 parent 6a99a10 commit 6d5f6de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/multi-tenant/nhibernate/sample.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: NHibernate persistence in multi-tenant systems
33
summary: Configure NHibernate persistence to support multi-tenant scenarios.
4-
reviewed: 2024-03-01
4+
reviewed: 2025-12-23
55
component: NHibernate
66
related:
77
- persistence/nhibernate
@@ -10,7 +10,7 @@ related:
1010

1111
This sample demonstrates how to configure NHibernate persistence to store tenant-specific data in separate catalogs for each tenant. The tenant-specific information includes saga state and business entities that are accessed using [NServiceBus-managed session](/persistence/nhibernate/accessing-data.md).
1212

13-
This sample uses [Outbox](/nservicebus/outbox/) to guarantee consistency between the saga state and the business entity. Outbox and timeout data are stored in a dedicated catalog shared by all tenants.
13+
This sample uses [Outbox](/nservicebus/outbox/) to guarantee consistency between the saga state and the business entity. Outbox data is stored in a dedicated catalog shared by all tenants.
1414

1515
The sample assumes the tenant information is passed as a custom message header `tenant_id`.
1616

@@ -36,7 +36,7 @@ The default NHibernate persistence installers create all schema objects in a sin
3636

3737
snippet: CreateSchema
3838

39-
The above code ensures that business entity and saga tables are created in the tenant databases while the timeouts and outbox are in the shared database.
39+
The above code ensures that business entity and saga tables are created in the tenant databases while the outbox table is in the shared database.
4040

4141
Because the outbox table is stored in the shared catalog, the NHibernate persistence cannot access it when using the tenant connection string. Synonyms (a feature of SQL Server) provide a way to solve this problem. The following code creates synonyms for the `OutboxRecord` table in both tenant databases. These synonyms instruct the query processor to use the outbox table in the shared database whenever it encounters a reference to `OutboxRecord`.
4242

@@ -52,7 +52,7 @@ snippet: NHibernateConfiguration
5252

5353
To allow database isolation between tenants, the connection to the database needs to be created based on the message being processed. This requires the cooperation of two components:
5454

55-
* A behavior that inspects an incoming message and extracts the tenant's information
55+
* A behavior that inspects an incoming message and extracts the tenant's information
5656
* A custom `ConnectionProvider` for NHibernate
5757

5858
The custom connection provider has to be registered with NHibernate

0 commit comments

Comments
 (0)