Title: Common database for java and wordpress
Last modified: August 20, 2016

---

# Common database for java and wordpress

 *  [Robik](https://wordpress.org/support/users/robik/)
 * (@robik)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/common-database-for-java-and-wordpress/)
 * I want a java program to write articles into the database. Then, the wordpress
   program should read the articles from the database and display them. It should
   allow users to post on those articles (originally entered through a java program
   and not through the WP administrator.). How do I achieve this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 9 months ago](https://wordpress.org/support/topic/common-database-for-java-and-wordpress/#post-2204409)
 * 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](https://wordpress.org/support/users/robik/)
 * (@robik)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/common-database-for-java-and-wordpress/#post-2204489)
 * 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.
 *  [PlugPress.com](https://wordpress.org/support/users/plugpress/)
 * (@plugpress)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/common-database-for-java-and-wordpress/#post-2204538)
 * 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](http://codex.wordpress.org/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!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Common database for java and wordpress’ is closed to new replies.

## Tags

 * [java](https://wordpress.org/support/topic-tag/java/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 3 replies
 * 3 participants
 * Last reply from: [PlugPress.com](https://wordpress.org/support/users/plugpress/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/common-database-for-java-and-wordpress/#post-2204538)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
