cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF > Single Bundle Distribution
Date Sun, 04 Nov 2012 15:56:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/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/Single+Bundle+Distribution">Single
Bundle Distribution</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~christian%2Bschneider">Christian
Schneider</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h3><a name="SingleBundleDistribution-SettingupyourOSGicontainer"></a>Setting
up your OSGi container</h3>
<p>Setting up the single-bundle distribution is really simple, see below. For instructions
on setting up the multi-bundle distribution see the <a href="/confluence/display/CXF/DOSGi+Multi+Bundle+Setup"
title="DOSGi Multi Bundle Setup">Multi Bundle Setup</a> page.</p>

<p><b>Prerequisites for the single-bundle distribution:</b></p>

<p>The single-bundle distribution requires some of the interfaces of the OSGi compendium
specification. These are provided with the Equinox and Felix OSGi distributions, but not installed
by default.</p>

<h4><a name="SingleBundleDistribution-SettingupFelix"></a>Setting up Felix</h4>

<p>The compendium interfaces can be downloaded from the following various places, the
easiest is probably from Maven Central, for example: <br/>
"g! install <a href="http://repo1.maven.org/maven2/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar"
class="external-link" rel="nofollow">http://repo1.maven.org/maven2/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar</a>".<br/>
(<b>Note</b>: this step is not required for DOSGI RI 1.3)</p>

<p>To set up Felix you can follow these steps:<br/>
<em>Verified with: Felix 4.0.2 and DOSGI RI 1.3</em></p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">../felix-4.0.2&gt; java -jar bin/felix.jar

Welcome to Apache Felix Gogo
g! start http:<span class="code-comment">//www.apache.org/dist/cxf/dosgi/1.3/cxf-dosgi-ri-singlebundle-distribution-1.3.jar
</span>... some log messages may appear...
g! lb
    0|Active     |    0|org.apache.felix.framework (4.0.2)
    1|Active     |    1|org.apache.felix.bundlerepository (1.6.6)
    2|Active     |    1|org.apache.felix.gogo.command (0.12.0)
    3|Active     |    1|org.apache.felix.gogo.runtime (0.10.0)
    4|Active     |    1|org.apache.felix.gogo.shell (0.10.0)
    5|Active     |    1|cxf-dosgi-ri-singlebundle-distribution (1.3.0)</pre>
</div></div>

<p>However, you can also change the <tt>conf/config.properties</tt> file
to automatically load these bundles. This approach is described in the <a href="/confluence/display/CXF/DOSGi+Multi+Bundle+Setup"
title="DOSGi Multi Bundle Setup">Multi Bundle Setup</a> page.</p>

<h4><a name="SingleBundleDistribution-SettingupEquinox"></a>Setting up Equinox</h4>
<p>The compendium interfaces are part of the Equinox/Eclipse distribution and can be
found in a file called plugins/org.eclipse.osgi.services_3.2.0.v20090520-1800.jar (the timestamp
could vary), for example:<br/>
"osgi&gt; install <a href="file:plugins/org.eclipse.osgi.services_3.2.100.v20100503.jar"
class="external-link" rel="nofollow">file:plugins/org.eclipse.osgi.services_3.2.100.v20100503.jar</a>"<br/>
(<b>Note</b>: this step is not required for DOSGI RI 1.3)</p>

<p>To set up Equinox you can follow these steps:<br/>
<em>Verified with: Eclipse 3.6.2</em></p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">.../eclipse&gt; java -jar plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar
-console

osgi&gt; install http:<span class="code-comment">//www.apache.org/dist/cxf/dosgi/1.3/cxf-dosgi-ri-singlebundle-distribution-1.3.jar
</span>Bundle id is 1

osgi&gt; start 1
... some log messages may appear...
osgi&gt; ss

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.6.2.R36x_v20110210
1       ACTIVE      cxf-dosgi-ri-singlebundle-distribution_1.3.0</pre>
</div></div>

<p>However, you can also create a <tt>config.ini</tt> file to automatically
load these bundles. This approach is described in the <a href="/confluence/display/CXF/DOSGi+Multi+Bundle+Setup"
title="DOSGi Multi Bundle Setup">Multi Bundle Setup</a> page.</p>

<h4><a name="SingleBundleDistribution-UsingEquinoxfromwithintheEclipseIDE"></a>Using
Equinox from within the Eclipse IDE</h4>
<p><em>This option is really handy for debugging. Verified with: Eclipse 3.5M4</em><br/>
<a href="/confluence/display/CXF/Setting+up+Eclipse+for+Running+and+Debugging+Distributed+OSGi"
title="Setting up Eclipse for Running and Debugging Distributed OSGi">Setting up Eclipse
for Running and Debugging Distributed OSGi</a></p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/CXF/Single+Bundle+Distribution">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/CXF/Single+Bundle+Distribution?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message