Comments (3)
The DataSource is determined by the Tenant, that is written into the ThreadLocal
in the ThreadLocalStorage
class. Based on this Tenant Name the DataSource is determined. Could you see in the Debugging, if the Tenant Name is set correctly? If it is not where in your Request Pipeline do you set the Tenant Name? Feel free to write a mail to me, so we don't have to discuss everything here.
from bytefish.de.
And if I look into the Log, I see that the Tenant Name is somehow null:
Cannot determine target DataSource for lookup key [null]
What I suggest is to set the Tenant Name for a small Test directly in the SOAP Endpoints method, like:
ThreadLocalStorage.setTenantName("TenantOne");
Then the Tenant Name should be correctly resolved in the code using the Data Sources. From there on you have a hint, where the Problem is. Probably the Setting of the Tenant Name happens on a different Thread? I don't know the SOAP Pipeline of Spring Boot well enough yet.
from bytefish.de.
Thank you very much for your reply.
In the meantime, I will hardcode the ThreadLocalStorage.setTenantName("TenantOne"); like you said.
from bytefish.de.
Related Issues (20)
- Question: Usage of bytea HOT 1
- Sql minor bug HOT 1
- Auto Configuere data source in data base per tenant HOT 1
- Query on spring abstractroutingdatasource advantage HOT 2
- Question on dynamic load of the data source HOT 10
- Add a flow diagram HOT 7
- NEST not working HOT 1
- Adding null in AuditQueryResultUtil HOT 3
- How the tenant can be changed on runtime HOT 1
- Can't write CLR type System.DateTime to database type timestamp with time zone HOT 1
- AbstractMap used by PersonMap in SqlMapper blog entry doesn't match java.util.AbstractMap HOT 7
- Update async multi-tenant example HOT 3
- Select tenant HOT 1
- Subject: Parsing Command Line Arguments in .NET || Topic: Add basic arg validation HOT 2
- How to addnew datasource without @Scheduled HOT 1
- How can we do the reverting to a particular revision using Versioning and Auditing with spring data Envers? please provider me an example for reverting HOT 2
- Tables are not getting created while dynamically tenant details in tenant.json HOT 1
- Does pgbulkinsert support postgis types? HOT 1
- user not getting authenticated in production HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bytefish.de.