Hello all,
How well does MediaWIki work with Java? If I want to use Java code to parse files, access the database, provide or process content for my Wiki - how easy or hard is it to make that happen?
Thanks.
Boris.
Boris Epstein wrote:
Hello all,
How well does MediaWIki work with Java? If I want to use Java code to parse files, access the database, provide or process content for my Wiki - how easy or hard is it to make that happen?
Thanks.
Boris.
MediaWiki is written in PHP. It expects its extensions to be php. Thus, not too well :)
You could directly access the db from java, or serve some resources from java, or even use them at an extension proxying with a little of php. But using PHP would be much easier.
On Mon, Apr 26, 2010 at 5:07 PM, Platonides Platonides@gmail.com wrote:
Boris Epstein wrote:
Hello all,
How well does MediaWIki work with Java? If I want to use Java code to parse files, access the database, provide or process content for my Wiki - how easy or hard is it to make that happen?
Thanks.
Boris.
MediaWiki is written in PHP. It expects its extensions to be php. Thus, not too well :)
You could directly access the db from java, or serve some resources from java, or even use them at an extension proxying with a little of php. But using PHP would be much easier.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Well, I'd imagine some PHP wrapper around Java code should be an option. For instance, stuff like this:
http://vl.academicdirect.ro/phpManual/ref.java.html
Boris.
Boris Epstein wrote:
Well, I'd imagine some PHP wrapper around Java code should be an option. For instance, stuff like this:
http://vl.academicdirect.ro/phpManual/ref.java.html
Boris.
Yes, you could try something like that.
We're doing something like this already. Specifically, we are using a Java client to retrieve, query, and update wiki pages. We have written a Java class that wraps the api.php, and accesses it through web calls (opening URL connections, parsing XML, etc.).
Since the database is on the wiki server, and our application may be on a different server, we do not access the database directly. If you wanted to do that, I would probably get the SQL schema from the documentation and use JDBC calls.
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Boris Epstein Sent: Monday, April 26, 2010 10:04 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] integrating MediaWiki with Java applets/servlets
Hello all,
How well does MediaWIki work with Java? If I want to use Java code to parse files, access the database, provide or process content for my Wiki - how easy or hard is it to make that happen?
Thanks.
Boris.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Edward Swing wrote:
We're doing something like this already. Specifically, we are using a Java client to retrieve, query, and update wiki pages. We have written a Java class that wraps the api.php, and accesses it through web calls (opening URL connections, parsing XML, etc.).
Since the database is on the wiki server, and our application may be on a different server, we do not access the database directly. If you wanted to do that, I would probably get the SQL schema from the documentation and use JDBC calls.
Accessing via api.php is much more stable though. Directly accessing the database for reading/editing is discouraged.
mediawiki-l@lists.wikimedia.org