You would write a java app to make the PHP calls WP uses now, I suppose. Though WordPress does all that via PHP. Why are you reinventing the wheel? Making a desktop app?
You’ll want to look into the WP API calls.
Thread Starter
Robik
(@robik)
I have one database.
Java program writes news articles to the database.
Wordpress displays those articles from the database.
I do not want any inconsistency to penetrate into the database.
First, the best thing you should to is use the WordPress API and code your app in PHP (as WordPress is in PHP).
Sometimes, you have constraints and it may not be possible for you to use PHP. I would suggest you use the XML RPC Support that is native with WordPress.
If your application is not an “on the side” project, I please you to NOT play with the WordPress database structure. What is working now may not work tomorrow. That said, the WordPress team make sure that the functions that are available now will be usable later (backward compatibility). That is why using the PHP APIs or the XML-RPC functions is the way to go!