[opencms-dev] opencms and web application

Arash Kaffamanesh arash.kaffamanesh at pomegranate.de
Sat May 13 16:56:10 CEST 2006


Dear Livia,

 

>> Are you suggesting us to write a class implementing the query to the db,
integrate it in opencms, and then make a webservice with it?

 

Exactly, that’s the best way; write an opencms webservice servlet, the
navigation, search and content integration service which use this service to
access the opencms api! Be careful about Performance!!!

 

>> so we need contents at runtime and to make an export perhaps is not a
solution that could fit to our needs.

 

I don’t think so, cuz:

 

with static export you can also achieve the integration of  the exported
content at runtime (lets say Just in Time :-) ) within few seconds from your
content portlets:

 

What you need is to implement rsync into OpenCms and rewrite, extend the
AfterPublishHandler (lets say JitAfterPublishHandler) to export the resource
and the navigation structure as xml definition upon publishing, then you
would need to write your content and navigation portlet, for the search
portlet I’m thinking about other search engines as lucene.

 

Why rsync:

 

If your OpenCms Server and the portal server reside on different mashines,
you have to get the exported resources somehow to the portal mashine, so you
can do it whether with ftpsync or rsync cronjobs on the system or trigger it
from OpenCms to provide the content at runtime Just in Time to your Portal
Mashine.

 

The Other way which I’ve used was with uPortal, where I user IFrame Portlets
to integrate OpenCms contents on the fly, I’ve still somewhere a demo
installation, wait:

 

 

http://www.pomegranate.de:9000/uPortal/render.userLayoutRootNode.uP

 

As you can see our Homepage is integrated into the fist Portlet and the
forum (OpenCms KnowledgeStore Forum) on the second page:

 

You can log into the portal app with: student / student and play around.

 

My Plan was about two years ago to give uPortal all available content from
opencms and write a navigation portlet for it, but as you know visions are
nice, even if no time is there :-)

 

I would like to know more about the current JetSpeed2 dev. status, is it
mature as JBoss Portal, Liferay or eXo, or even WebSphere? (not sure but I
heard IBM is pushing JetSpeed development and uses some features in
WebSphere)

 

HTH,

 

Kind Regards,

Arash

 

 

 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of CIMINI LIVIA
Sent: Freitag, 12. Mai 2006 11:24
To: The OpenCms mailing list
Subject: R: [opencms-dev] opencms and web application

 

Thanx Arash for your suggestions,

our aim is to use opencms just only as content management and display
contents in jetspeed2, so we need contents at runtime and to make an export
perhaps is not a solution that could fit to our needs.

By the way what do you mean with webservices? Are you suggesting us to write
a class implementing the query to the db, integrate it in opencms, and then
make a webservice with it? It sounds to me a jolly good idea


 

Ciao

Livia

 

-----Messaggio originale-----
Da: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
Per conto di arash.kaffamanesh at cmsforeveryone.com
Inviato: venerdì 12 maggio 2006 10.47
A: opencms-dev at opencms.org
Oggetto: AW: [opencms-dev] opencms and web application

 


Hi Livia,

you can also export the content and the structure of your content-tree
(navigation) statically (as XML or HTML) to the filesystem and include the
contents into your app.

>> - Is it possible to run opencms API outside opencms context?

it is possible.  -> over webservices.

- if not, the only solution is to query opencms database directly, isn' it?

no, the static export is fine for our portal integration projects.

Kind Regards, Arash

 

 

What kind of external app do you have?

 

 


 

We need to access the contents managed by opencms 6.2, from an external web
application deployed on the same web server (tomcat) 

but this application can't be internal to opencms (as suggested somewhere).

So, these are my questions:

- Is it possible to run opencms API outside opencms context?

- if not, the only solution is to query opencms database directly, isn' it?

Thanks

Livia

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060513/3e052c58/attachment.htm>


More information about the opencms-dev mailing list