<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Anders Bengtsson schrieb:
<blockquote cite="mid1166523619.1151.13.camel@localhost.localdomain"
 type="cite">
  <pre wrap="">Christian Steinert wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">It might be better to just keep your data in opencms, and to use your
main application to get the needed information from opencms and assemble
your pages. That would mean, though, that you could only use the Java
APIs of OpenCms and not the JSP layer.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I guess this would be a fine solution, if there is a stable and
documented API to work against. </pre>
</blockquote>
Somebody here on the list had written a factory that delivers an
instance of a CmsObject, which is *the* main class for resource access
in OpenCms.<br>
The API-Docs are here:
<a class="moz-txt-link-freetext" href="http://www.opencms.org/export/javadoc/core/org/opencms/file/CmsObject.html">http://www.opencms.org/export/javadoc/core/org/opencms/file/CmsObject.html</a><br>
<br>
CmsObject is also the main class used for communication with the
system, when you are running *inside* of the cms, so you shouldn't have
any additional limitations when accessing resources, compared to a
"native" java class that runs inside of OpenCms directly. Of course you
cannot use the Taglib, the JSP template mechanism or the cache, if you
work through the API alone, because in this case you avoid the JSP
layer.<br>
<br>
The only problem might be that the instance factory is not part of the
distribution, so it may need adjustments as OpenCms changes (on the
other hand this instance factory is just based on code from the
commandline shell of opencms that allows to trigger various functions
of opencms, even if the JSP-based workplace is not running, so in case
of changes the work for adjusting it should be moderate and could be
derived from existing code in the core, if adjustments should become
necessary in the future).<br>
<br>
The factory class should be findable in the mailing list archive (It is
a mail from Andreas Haumer, containing a class called
"CmsObjectFactory") together with an example.<br>
<br>
Apart from this, you may want to check the API docs to see if the
existing APIs have the functionality that you would need. If you have
further questions concerning specific abilities of opencms, then people
here are usually very helpful, especially if you ask precise questions
about specific features or problems.<br>
<br>
hth<br>
christian<br>
</body>
</html>