1,917,532 questions
0
votes
0
answers
17
views
Jetty 12 API changes: How to replace HttpInput.Interceptor and HttpOutput.Interceptor
I’ve been using custom implementations of HttpInput.Interceptor and HttpOutput.Interceptor in Jetty 11 and earlier, overriding the readFrom and write methods to add my own logic.
I’m now migrating to ...
0
votes
0
answers
31
views
AWS Lambda cannot POST json without application/json header in the Request
I am working with AWS Lambda functions and I’m having an issue with getting the POST request sent to the Lambda function.
I found that with PostMan I can add a Content-Type application/json header and ...
Best practices
0
votes
0
replies
18
views
SpringBoot JPA Entity Manager flush and clear functions helps in importing large data sets faster
I worked on a performance improvement of importing large dataset in SpringBoot JPA.
I Implemented batching of the records that I am saving to database and flushing and clearing the entity manager on ...
0
votes
1
answer
43
views
Issue with Spring Boot/Webflux APIs on Kubernetes
So I am working on building a spring boot application, which has some rest endpoints and in my service I am calling some other downstream API's using Webflux. All the calls are non-blocking, meaning I ...
Advice
1
vote
0
replies
21
views
How to configure kotlin specific source sets?
Assume I'm using gradle 9.1 and kotlin plugin 2.3.0
Suppose I have the following gradle configuration for java project which creates a custom sources directory (imagine integration tests, but not ...
1
vote
0
answers
44
views
Java EclipseLink: Is it possible to add additional conditions to SQL queries using EclipseLink's built-in tools?
Context:
The project uses the PostgreSQL database, managed via EclipseLink.
Horizontal scaling is planned by migrating to the sharded Postgres Pro Shardman.
Currently, the primary key of each table is ...
1
vote
0
answers
40
views
Spring Security from 5 to 7 migration, error 404 login submit
I'm upgrading from Java 17 to 25, Spring Framework 5.3.39 to 7.0.3.
Whenever I try to submit credentials via login page, I get error 404. Am I missing something to make this work?
Spring 5 ...
-3
votes
0
answers
86
views
How do you know system app for given extension?
Is it possible in Java 8 to determine what app is used to open files with a certain extensions by default? For example, whether .ods files are opened by LibreOffice or OpenOffice.
Desktop.getDesktop()....
-5
votes
1
answer
64
views
How to join DB transaction restClient, Kafka in transaction manner? [closed]
How to
Save to DB ( in a transactional manner)
restClient connection
Send the Kafka message about it in case of success, and vice versa?
@Slf4j
public class SyncServiceImpl implements SyncService {
...
-6
votes
0
answers
42
views
how to 1) save to DB ( in a transactional manner) 2) send the notification about it in case of success, and vice versa? [closed]
The method process:
1) calculates how many points a candidate has earned,
2) saves the result to the database,
3) sends a callback about it to an external service.
--- need to send a callback in ...
-7
votes
0
answers
54
views
Mnecraft mod string cleaner fabric 1.21 [closed]
I have been trying to make a minecraft mod clear strings but I've come to crashing and whatever I do if I use unsafe or anything like that I just can't seem to make it is there a way to clear already ...
-5
votes
0
answers
58
views
java.sql.SQLException: IJ031019: You cannot commit during a managed transaction [closed]
actually i have a serviceA that is a transactional service that uses JtaTransactionManager
this service when it is executed there is an aop advice that is executed before , this advice calls the ...
-5
votes
0
answers
69
views
Java program not correctly identifying palindrome number [duplicate]
I am trying to write a Java program to check whether a given number is a palindrome or not. A palindrome number remains the same when its digits are reversed (for example, 121 or 1331).
I wrote the ...
-2
votes
0
answers
53
views
How to print statement size pdf in java [closed]
I have 8.5x5.5 pdf I want to print it silently (without any dialog box) using java. I am using pdfbox 3.0.6. No matter how I tried it always prints in sideways.
-3
votes
0
answers
47
views
Best practices for managing shared models across 40+ microservices to avoid breaking changes [closed]
We are currently managing a microservice architecture with 40+ services that communicate internally. Our current approach to sharing data models/contracts is causing significant stability issues.
...