When i spawn a new Thread in my application and try to find the destination in that new thread, the destination in tenant space is not being picked up.
But, if i configure a destination with same name in provider space, that gets picked up by destinationfactory.getDestination()
so,I think the tenantcontext is lost in the new thread. Please find the sample code attached.
Is there any way to get around this problem?