chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sklev...@apache.org
Subject svn commit: r796371 - in /websites/production/chemistry: ./ content/internal/opencmis-maven-release-documentation.html content/java/developing/dev-osgi.html content/java/examples/example-osgi.html
Date Fri, 30 Sep 2011 11:45:45 GMT
Author: sklevenz
Date: Fri Sep 30 11:45:44 2011
New Revision: 796371

Log:
extend OSGi documentation

Modified:
    websites/production/chemistry/   (props changed)
    websites/production/chemistry/content/internal/opencmis-maven-release-documentation.html
    websites/production/chemistry/content/java/developing/dev-osgi.html
    websites/production/chemistry/content/java/examples/example-osgi.html

Propchange: websites/production/chemistry/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri Sep 30 11:45:44 2011
@@ -1 +1 @@
-/websites/staging/chemistry/trunk:785583-796156
+/websites/staging/chemistry/trunk:785583-796370

Modified: websites/production/chemistry/content/internal/opencmis-maven-release-documentation.html
==============================================================================
--- websites/production/chemistry/content/internal/opencmis-maven-release-documentation.html
(original)
+++ websites/production/chemistry/content/internal/opencmis-maven-release-documentation.html
Fri Sep 30 11:45:44 2011
@@ -348,7 +348,7 @@ Maven Repository and made available at <
 <li>Maven&nbsp;artifacts are automatically synced to Maven Central at <code>http://repo1.maven.org/maven2/org/apache/chemistry</code></li>
 <li><strong>release candidate commodity packages</strong> are synced (together
with their
 checksum and signatures) to <code>http://www.apache.org/dist/chemistry</code></li>
-<li><strong>maven site</strong> is synced to <code>http://chemistry.apache.org/java/&lt;version&gt;/maven</code>
+<li><strong>maven site</strong> is pushed to <code>http://chemistry.apache.org/java/&lt;version&gt;/maven</code>
  and back-linked from [http://chemistry.apache.org/java/opencmis.html]</li>
 <li><em>project version</em> at&nbsp;<a href="http://chemistry.apache.org/java/index.html">http://chemistry.apache.org/java/opencmis.html</a>
 &nbsp;is updated</li>
@@ -359,7 +359,8 @@ checksum and signatures) to <code>http:/
 </ul>
 <h2 id="post_release_cleanup">Post Release Cleanup</h2>
 <ul>
-<li>Remove release candidate artifacts and sites</li>
+<li>Update POMs and pages referencing to RC tags</li>
+<li>Update DOAP file</li>
 </ul></div>
              <!-- Content -->
            </td>

Modified: websites/production/chemistry/content/java/developing/dev-osgi.html
==============================================================================
--- websites/production/chemistry/content/java/developing/dev-osgi.html (original)
+++ websites/production/chemistry/content/java/developing/dev-osgi.html Fri Sep 30 11:45:44
2011
@@ -190,14 +190,18 @@ Apache Chemistry - OSGi Support for Open
 <li><strong>chemistry-opencmis-osgi-client</strong></li>
 <li><strong>chemistry-opencmis-osgi-server</strong></li>
 </ul>
-<p>The single bundles include all required libraries build by OpenCMIS while making
use of the Bundle-ClassPath entry in MANIFEST-MF file. Basically the bundles are selfcontained
for own dependencies.
-Transitive dependencies have to be deployed to OSGi runtime and are configured via the Import-Package
entry in MANIFEST.MF.  Maven will help you for doing a deep analysis of all required secondary
bundles:</p>
+<p>The single bundles include all required libraries build by OpenCMIS while making
use of the Bundle-ClassPath entry in MANIFEST-MF file. Basically the bundle contains all chemistry
libraries required for client or server.
+Other dependencies have to be deployed to OSGi runtime and are configured via the Import-Package
entry in MANIFEST.MF.  Maven will help you for doing a deep analysis of all required secondary
bundles:</p>
 <div class="codehilite"><pre><span class="n">mvn</span> <span
class="n">dependency:tree</span>
 </pre></div>
 
 
 <p>This results in the Maven output below to get a complete list of dependencies and
their used versions. Most of this dependend components are already build as OSGi bundles.
For those which do not build a bundle the Springsource Bundle Repository can be used to find
appropriate bundle wrappers.</p>
-<p><a href="http://ebr.springsource.com/repository/app/" title="Spring Source Enterprise
Bundle Repository">Spring Source Enterprise Bundle Repository</a></p>
+<ul>
+<li><a href="http://ebr.springsource.com/repository/app/" title="Spring Source Enterprise
Bundle Repository">Spring Source Enterprise Bundle Repository</a></li>
+<li><a href="/java/examples/example-osgi.html">Example code for OSGI usage</a>
</li>
+</ul>
+<h6 id="mavenout">Maven.out:</h6>
 <div class="codehilite"><pre><span class="p">[</span><span class="n">INFO</span><span
class="p">]</span> <span class="o">------------------------------------------------------------------------</span>
 <span class="p">[</span><span class="n">INFO</span><span class="p">]</span>
<span class="n">Building</span> <span class="n">OpenCMIS</span> <span
class="n">OSGi</span> <span class="n">Client</span> <span class="n">Wrapper</span>
<span class="mf">0.6.0</span><span class="o">-</span><span class="n">SNAPSHOT</span>
 <span class="p">[</span><span class="n">INFO</span><span class="p">]</span>
<span class="o">------------------------------------------------------------------------</span>

Modified: websites/production/chemistry/content/java/examples/example-osgi.html
==============================================================================
--- websites/production/chemistry/content/java/examples/example-osgi.html (original)
+++ websites/production/chemistry/content/java/examples/example-osgi.html Fri Sep 30 11:45:44
2011
@@ -184,8 +184,27 @@ Apache Chemistry - Using OSGI with OpenC
            <td height="100%">
              <!-- Content -->
              <div class="wiki-content"><h1 id="using_osgi_with_opencmis">Using
OSGI with OpenCMIS</h1>
-<p>This example shows how to use OpenCMIS with OSGI bundles.</p>
-<p>TODO</p></div>
+<h2 id="client_factory_with_osgi">Client Factory with OSGi</h2>
+<p>These examples show the first steps that are required in client applications: How
to create a session and connect to a repository using OSGi factory service.</p>
+<div class="codehilite"><pre><span class="c1">// OSGi factory service</span>
+
+<span class="n">BundleContext</span> <span class="n">bundleContext</span>
<span class="o">=</span> <span class="o">...;</span>  <span class="c1">//
retriev bundle context from OSGi runtime</span>
+<span class="n">ServiceReference</span> <span class="n">serviceReference</span>
<span class="o">=</span> <span class="n">bundleContext</span><span
class="o">.</span><span class="na">getServiceReference</span><span
class="o">(</span><span class="n">SessionFactory</span><span class="o">.</span><span
class="na">class</span><span class="o">.</span><span class="na">getName</span><span
class="o">());</span>
+<span class="n">SessionFactory</span> <span class="n">factory</span>
<span class="o">=</span> <span class="o">(</span><span class="n">SessionFactory</span><span
class="o">)</span> <span class="n">bundleContext</span><span class="o">.</span><span
class="na">getService</span><span class="o">(</span><span class="n">serviceReference</span><span
class="o">);</span> 
+<span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">String</span><span
class="o">&gt;</span> <span class="n">parameter</span> <span class="o">=</span>
<span class="k">new</span> <span class="n">HashMap</span><span
class="o">&lt;</span><span class="n">String</span><span class="o">,</span>
<span class="n">String</span><span class="o">&gt;();</span>
+
+<span class="c1">// fill in session parameter</span>
+<span class="n">parameter</span><span class="o">.</span><span
class="na">put</span><span class="o">(...);</span>
+
+<span class="c1">// create session</span>
+<span class="n">Session</span> <span class="n">session</span> <span
class="o">=</span> <span class="n">factory</span><span class="o">.</span><span
class="na">createSession</span><span class="o">(</span><span class="n">parameter</span><span
class="o">);</span>
+</pre></div>
+
+
+<ul>
+<li><a href="example-create-session.html">Creating a session</a></li>
+<li><a href="/java/developing/dev-osgi.html">OSGi support for OpenCMIS</a></li>
+</ul></div>
              <!-- Content -->
            </td>
           </tr>



Mime
View raw message