if I understood your question. there is no framework for trading written in java.
https://en.wikipedia.org/wiki/List_of_Java_frameworks
why? there are a lot of trading platforms in the world. many have their own API.
Еveryone writes this API in their own way and in different languages.
No matter what language this API is in, because you can getting this data by stream and processing it in your external code.
You can write this data to a database or a text file.
Speed is not important to you, you will not be faster than man, who trade in billions.
For example NT8. C # and java:
1. You get data in C #. write them to a text file
(this code is very simple sw = File.AppendText(path); see their help for details).
2. Read this data from this file from your code
(java : BufferReader with Thread.sleep(some time)).
3. Parse and process them.
(line.split(",") to get array)
4. Received a signal? you write the ticker, price, number of lots to another text file(Files.write(path and some parameters).
5. NT8 reads data. parses. and submits an application
(File.ReadAllText(path)

.
6. Need you to draw on a chart your signal? to do the same. in java code, you get pivot points and write them to some file.txt. NT8 reads, parse and API draws whatever arrows, lines, etc.
*******************************************************
for:
1. skeleton of your Java program, you can use a maven, gradle.
2. dekstop to use Swing or javaFX. if the Web to use Spring.
3. database to use postgresql(may be Oracle cloud, firebase) and Hibernate.
4. Logging log4j.
5. alert Telegramm bot.
******************************************************
You can see the API by Java on this platform, you may like:
https://www.motivewave.com/support/sdk.htm
https://www.motivewave.com/sdk/MotiveWave_SDK_Programming_Guide.pdf
For me, API NT8 has simplest API for used.
PS. this is the overall picture. details omitted.