Java parallel stream
In my program I edit configurations and put CLI arguments for it to have a source, target and database variables
It has internal implementations to extract from a zip file (source) and load to target folder to report logs, its also designed load the extracted files to a database.
We change the databases to load the next database and this triggers a specific if clause that detects different databases and will perform the respective output dependent on which database e.g if "arg[n] == -s" then db = args[n + 1] // DB1
if "arg[n] == -s" then db = args[n + 1] // DB2
the arg array loops through the cli arguments to let us know where we are in the parameters cli argument
When I run it via ide it loads then when I copy the path of the java program and alongside it the same CLI Arugment into to terminal to be command line ran with a different database theres a load issue it only loads to one db but not the other db could it be a in-memory issue where the buffer or output stream?
4 Replies
⌛
This post has been reserved for your question.
Hey @CrackTheCode! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
what
Failing to load two databases but has no issue loading one at a time
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.