• 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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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!

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

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