java - drupal integration

hanumesh_m - October 17, 2008 - 19:38

Hi,

I have java web application running on tomcat and on the same box, drupal(CMS), php, mysql running on apache.
Admin can create content pages using drupal.

There are some links in my website (java,jsp), clicking on which should display the content of drupal, whose look and feel should be same as the way they created in drupal.

How should I pull content from Drupal (running on apache).

I dont think, pulling data from MySQL is right as the look and feel should be the same the way they have created in drupal.

Suggest me the ways to accomplish this.

Thanks,
Hanumesh

Why are you using java/jsp?

nevets - October 17, 2008 - 21:05

Why are you using java/jsp? Maybe it would be easier to integrate in the other direction.

In what way its differs when

hanumesh_m - October 17, 2008 - 22:50

In what way its differs when we are talking about, pulling data from drupal. The point here is how to pull drupal cms content to java web application..

Thanks,
Hanumesh

I don't know much about

WorldFallz - October 18, 2008 - 16:09

I don't know much about java/jsp but drupal content is mysql based-- I would think you just need to know how to query a mysql db from java/jsp. This is more of a java/mysql question than a drupal one.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Connector and/or export

Pontes - April 25, 2009 - 19:10

That's not what he's asking for. Querying the mysql database directly would be a very fragile solution. If he did then the next upgrade to Drupal (or a change from mysql) would almost certainly screw up any Java/JSP integration work quite nicely.

I'm afraid I'm very new to Drupal so can't help at the moment. But I think I understand what our friend wants. Either:

  • Some sort of out of the box Java connector that allows him to pull content from Drupal directly into a Java application using some sort of content ID based mechanism. Or...
  • A mechanism to periodically export content from Drupal into a resource files (or XML document or content cache) that will similarly allow him to pull content into a Java/JSP application. Or...
  • A mechanism to update a JSP-based template of some sort with content from Drupal.

If anyone else with much more experience of Drupal has suggestions of how to do any of this (or have alternative approaches that they'd like to share) then I'd be very interested to learn more. I don't need to do this right now but I may need to in the near future.

check the drupal feature /

mm167 - April 26, 2009 - 01:43

check the drupal feature / module - service

that's how your java/jsp may get content from drupal.

We go the drupal way. How about you?
http://www.drupalway.com

 
 

Drupal is a registered trademark of Dries Buytaert.