lars
JCHJava Community | Help. Code. Learn.
•Created by F4F on 1/24/2025 in #java-help
ThreadPoolTaskExecutor - Configuration way.
which file?
28 replies
JCHJava Community | Help. Code. Learn.
•Created by F4F on 1/24/2025 in #java-help
ThreadPoolTaskExecutor - Configuration way.
How are you getting the threadProperties in your case?
28 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
Can't a server also fetch some data from another server?
34 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
Yes
34 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
But what would happen to it when another request comes that fetches record for another "id". Won't it just return the response for a previous request if it was saved.
34 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
Is there a way that the class that contains the function that I am calling to fetch the response handles this rather than handling it across the codebase.
34 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
That would require me to pass the same response across my codebase to various functions.
34 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
In the api flow if there is some condition met then I am making an api call to another service to fetch response. Now in the same flow later if some other condition is met then I have to make that call again and fetch essentially the same response that I got the first time. What I want is a way to save this response the first time in some variable and in the second call if this is not null then I return this else make the api call again. Is this clear enough or do you need me to provide some code example for this?
34 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
Can you elaborate please?
34 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
My mistake I duplicated the file in another package that's why it was throwing an error. It works now
25 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
I am using it like this
25 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
Here's the error.
25 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
yeah it works but a new error came.
25 replies
JCHJava Community | Help. Code. Learn.
•Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
Now it's throwing this error
25 replies