cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (Confluence)" <conflue...@apache.org>
Subject [CONF] Apache CXF > DOSGi Multi Bundle Distribution
Date Mon, 24 Jun 2013 15:56:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/en/2176/1/15/_/styles/combined.css?spaceKey=CXF&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CXF/DOSGi+Multi+Bundle+Distribution">DOSGi
Multi Bundle Distribution</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~dkulp">Daniel
Kulp</a>
    </h4>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >java -jar plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
-console -configuration dosgi_conf <br>osgi&gt; ss <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">{code<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">]</span><span
class="diff-added-chars"style="background-color: #dfd;">}</span></span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. In both cases install
the greeter demo to check if services are exported correctly <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="DOSGiMultiBundleDistribution-SettinguptheMultiBundleDistributionofCXFDistributedOSGi"></a>Setting
up the Multi Bundle Distribution of CXF Distributed OSGi</h1>
<p>The multi-bundle distribution of CXF/DOSGi contains all the DOSGi bundles plus their
dependencies as individual bundles. While the single-bundle distribution is certainly easier
to get started with, the multi-bundle distro is more flexible wrt to sharing bundles and updating
dependencies. To obtain a multi bundle distribution see the <a href="/confluence/display/CXF/DOSGi+Releases"
title="DOSGi Releases">DOSGi Releases</a> page.</p>

<h2><a name="DOSGiMultiBundleDistribution-SettingupFelix%28verifiedwith4.0.3%29"></a>Setting
up Felix (verified with 4.0.3)</h2>

<p>Change directory to the felix framework main dir. Unpack the cxf dosgi distro there.
Append the felix config from the distro to the felix config.properties. Start felix.</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: java; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">
tar -xzvf cxf-dosgi-ri-multibundle-distribution-1.4-SNAPSHOT-dir.tar.gz
cat apache-cxf-dosgi-ri-1.4-SNAPSHOT/conf/felix.config.properties.append &gt;&gt;
conf/config.properties
java -jar bin/felix.jar
</pre>
</div></div>

<p>Verify that all bundles are in state Active. There should be no exceptions in the
logs.</p>

<h2><a name="DOSGiMultiBundleDistribution-SettingupEclipseEquinox%28verifiedwithEquinox3.6.2%29"></a>Setting
up Eclipse Equinox (verified with  Equinox 3.6.2)</h2>

<p>In the distribution you will find a file called: <tt>.../conf/equinox.config.ini.append</tt>.
This file contains auto-start instructions for every bundle in the distribution.</p>
<ol>
	<li>Create a directory in the Equinox installation, e.g. <tt>dosgi_conf</tt>
and create a file called <tt>config.ini</tt> in this directory with the content
of the <tt>equinox.config.ini.append</tt> file.</li>
	<li>Fix the <tt>../apache-cxf-dosgi-ri</tt> path locations in the file
to point to where you have unzipped the distribution.</li>
</ol>


<p>At the end the <tt>dosgi_conf/config.ini</tt> file looks like this:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: java; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">org.ops4j.pax.web.session.timeout=30
osgi.bundles=org.eclipse.osgi.services@start, \
c:/apache-cxf-dosgi-ri-1.3/dosgi_bundles/geronimo-annotation_1.0_spec-1.1.1.jar@start, c:/apache-cxf-dosgi-ri-1.3/dosgi_bundles/geronimo-activation_1.1_spec-1.0.2.jar@start,

... and so on ...</pre>
</div></div>
<p>Now start Equinox and verify that all bundles are in state Active</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: java; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">
java -jar plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar -console -configuration dosgi_conf
osgi&gt; ss
</pre>
</div></div>

<h2><a name="DOSGiMultiBundleDistribution-Inbothcasesinstallthegreeterdemotocheckifservicesareexportedcorrectly"></a>In
both cases install the greeter demo to check if services are exported correctly</h2>


    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=CXF">Stop
watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://cwiki.apache.org/confluence/users/editmyemailsettings.action">Change
email notification preferences</a>
</div>
        <a href="https://cwiki.apache.org/confluence/display/CXF/DOSGi+Multi+Bundle+Distribution">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=119315&revisedVersion=16&originalVersion=15">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CXF/DOSGi+Multi+Bundle+Distribution?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message