Page 1 of 1

Integrate a Wordpress website (in PHP) with a Java program

Posted: Mon Jan 25, 2010 10:25 pm
by _Manuel_
Hello!
I developed a website using WordPress and it encompasses some php pages.

In another place, I have a Java program accessing a MYSQL database.

Now a user is supposed to be able to fill a form of the website and send data to the java program.

I didn't select the web server I'm going to use for the Java progam, so far.

How can I procede?

Re: Integrate a Wordpress website (in PHP) with a Java program

Posted: Wed Jan 27, 2010 1:46 pm
by _Manuel_
No idea?

I was thinking about creating a java webservice (eclipse can help me), but how can a php program transfer data to the webservice?

Re: Integrate a Wordpress website (in PHP) with a Java program

Posted: Thu Jan 28, 2010 4:37 am
by timWebUK
The web form would post the data to a database. Then the Java application would access the database.

PHP wouldn't send data to the Java application.

Re: Integrate a Wordpress website (in PHP) with a Java program

Posted: Mon Feb 01, 2010 12:59 pm
by JNettles
I would recommend building the web services. If you already have your data access models written and working then go ahead and incorporate them into a web service - this will keep your models together in spot and save you from rewriting the same code in a different language. I ran into the same situation awhile back - we had a huge .NET data access layer written for a different project that we needed to utilize in PHP so we wrote web services to expose the models.

Web services can take some getting used to, but they're simple enough.