<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.stilemessaggiodipostaelettronica18
{font-family:Arial;
color:navy;}
span.EmailStyle19
{font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Dear Livia,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>>> 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?</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>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!!!</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>>> so we need
contents at runtime and to make an export perhaps is not a solution that could
fit to our needs.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I don’t think so, cuz:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>with static export you
can also achieve the integration of the exported content at runtime (lets say
Just in Time </span></font><font size=2 color=navy face=Wingdings><span
lang=EN-GB style='font-size:10.0pt;font-family:Wingdings;color:navy'>J</span></font><font
size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;
font-family:Arial;color:navy'> ) within few seconds from your content portlets:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>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.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Why rsync:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>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.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>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:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><a
href="http://www.pomegranate.de:9000/uPortal/render.userLayoutRootNode.uP">http://www.pomegranate.de:9000/uPortal/render.userLayoutRootNode.uP</a></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>As you can see our
Homepage is integrated into the fist Portlet and the forum (OpenCms KnowledgeStore
Forum) on the second page:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>You can log into the
portal app with: student / student and play around.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>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 </span></font><font size=2 color=navy face=Wingdings><span lang=EN-GB
style='font-size:10.0pt;font-family:Wingdings;color:navy'>J</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>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)</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>HTH,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Kind Regards,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Arash</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>CIMINI LIVIA<br>
<b><span style='font-weight:bold'>Sent:</span></b> Freitag, 12. Mai 2006 11:24<br>
<b><span style='font-weight:bold'>To:</span></b> The OpenCms mailing list<br>
<b><span style='font-weight:bold'>Subject:</span></b> R: [opencms-dev] opencms
and web application</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>Thanx Arash for your suggestions,</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>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.</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>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…</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>Ciao</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'>Livia</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color=navy
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=2 face=Tahoma><span
lang=IT style='font-size:10.0pt;font-family:Tahoma'>-----Messaggio
originale-----<br>
<b><span style='font-weight:bold'>Da:</span></b>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b><span
style='font-weight:bold'>Per conto di </span></b>arash.kaffamanesh@cmsforeveryone.com<br>
<b><span style='font-weight:bold'>Inviato:</span></b> venerdì 12 maggio 2006
10.47<br>
<b><span style='font-weight:bold'>A:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Oggetto:</span></b> AW: [opencms-dev] opencms
and web application</span></font></p>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=IT style='font-size:12.0pt'> </span></font></p>
<table class=MsoNormalTable border=0 cellpadding=0 width=649 style='width:486.4pt;
margin-left:71.4pt'>
<tr>
<td colspan=2 style='padding:.75pt .75pt .75pt .75pt'>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hi Livia,</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>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.</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>>>
- Is it possible to run opencms API outside opencms context?</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>it is possible.
-> over webservices.</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>-
if not, the only solution is to query opencms database directly, isn' it?</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>no,
the static export is fine for our portal integration projects.</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Kind
Regards, Arash</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>What
kind of external app do you have?</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</td>
</tr>
<tr>
<td width=17 bgcolor=blue style='width:12.65pt;background:blue;padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<div>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>We
need to access the contents managed by opencms 6.2, from an external web
application deployed on the same web server (tomcat) </span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>but
this application can't be internal to opencms (as suggested somewhere).</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>So,
these are my questions:</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>-
Is it possible to run opencms API outside opencms context?</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>-
if not, the only solution is to query opencms database directly, isn' it?</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks</span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Livia</span></font></p>
</div>
</td>
</tr>
</table>
<p class=MsoNormal style='margin-left:71.4pt'><font size=3
face="Times New Roman"><span lang=IT style='font-size:12.0pt'> </span></font></p>
</div>
</body>
</html>