Giter VIP home page Giter VIP logo

Comments (3)

bytefish avatar bytefish commented on September 26, 2024

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.

bytefish avatar bytefish commented on September 26, 2024

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.

konstantinosdiam avatar konstantinosdiam commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.