Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2010, 05:34 PM
gr8fanboy gr8fanboy is offline
Junior Member
 
Join Date: Jan 2010
Location: UK: Milton Keynes
Posts: 1
Send a message via Skype™ to gr8fanboy
Default Is it feasible to use Quercus with Java/Hibernate/Postgres with WordPress?

As you can probably tell from my bio, I'm Grails addict.
I'm wondering if it would be feasible to abstract out the data layer in Java, Spring or Grails with Hibernate and then create the PHP to generate a WordPress front end.
Only I'd like to stick with one database, Postgres and still have all the benefits of WordPress for Digg & Ping-O-Matic style goodness.
Is this something that Quercus would facilitate and has someone blogged about such a topic.
Any articles that could direct me down the correct path assuming this is feasible would be greatly appreciated
Cheers.
Reply With Quote
  #2  
Old 01-23-2010, 12:47 AM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

In our Wordpress on the Google App Engine demo, we did the same thing that you're trying to do. From experience, it is not feasible to abstract out the Wordpress data layer. For one, Wordpress, like other PHP applications, depend on MySQL so they didn't put much effort into abstracting the data layer from the presentation layer. You will see SQL sprinkled throughout the base code and plugins.

On a positive note, it is easy to replace MySQL with Postgres in Quercus. It's just a simple config setting:

http://www.caucho.com/resin/doc/quercus.xtp#datasource

The only thing you would need to do for Wordpress is to rewrite the MySQL specific queries to their Postgres equivalent (i.e. SHOW TABLES).
Reply With Quote
Reply

Tags
grails, hibernate, java, postgres, wordpress

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:55 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.