cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF > Setting up Eclipse for Running and Debugging Distributed OSGi
Date Mon, 18 Jan 2010 10:36:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/11/_/styles/combined.css?spaceKey=CXF&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/CXF/Setting+up+Eclipse+for+Running+and+Debugging+Distributed+OSGi">Setting
up Eclipse for Running and Debugging Distributed OSGi</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~davidb@apache.org">David
Bosschaert</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <p>This procedure applies to both the Multi-bundle as well as the Single-bundle
distribution. The multi-bundle distribution is used for the walkthrough. (Verified with Eclipse
3.5.1).</p>

<p>1. Import the CXF DOSGi bundles and dependencies as plugins into the workspace<br/>
Go to File | Import and select Plugin-ins and Fragments.<br/>
<img src="/confluence/download/attachments/105935/import.jpg" align="absmiddle" border="0"
/></p>

<p>2. select the directory that contains all the bundles of the distribution. For the
<b>multi-bundle</b> distribution go to <tt>.../dosgi_bundles</tt>
location of the distribution. For the <b>single-bundle</b> distribution go to
the location that contains the <tt>cxf-dosgi-ri-singlebundle-distribution-&lt;version&gt;.jar</tt>
bundle.<br/>
<img src="/confluence/download/attachments/105935/select.jpg" align="absmiddle" border="0"
/><br/>
Simply add all the bundles found in this location.</p>

<p>3. now you have all the bundles imported in Eclipse and can start developing your
distributed OSGi application.<br/>
<img src="/confluence/download/attachments/105935/done.jpg" align="absmiddle" border="0"
/></p>

<p>4. Develop your Distributed OSGi application. <br/>
<a href="/confluence/display/CXF/Developing+a+Distributed+OSGi+Application+in+Eclipse"
title="Developing a Distributed OSGi Application in Eclipse">Here's how you develop a Distributed
OSGi app in Eclipse</a></p>

<p>5. Launch the whole lot in Equinox. If you do this in debug mode you can set breakpoints
in you DOSGi code, step through it etc.<br/>
To do this, create a new OSGi Framework Launch configuration. Select all the bundles in the
workspace but <b>deselect all the bundles of the Target Platform</b> (otherwise
you get all of the Eclipse bundles launched, which is probably not what you want). Then hit
the 'Add Required Bundles' button to just select the ones you need.<br/>
<img src="/confluence/download/attachments/105935/launch_config.jpg" align="absmiddle"
border="0" /><br/>
And click Debug (or Run) to launch.</p>

<p>6. Once started you can check that your OSGi service is actually remoted you can
request it's WSDL. The one for the Temperature Service developed above looks like this:<br/>
<img src="/confluence/download/attachments/105935/wsdl.jpg" align="absmiddle" border="0"
/></p>
     </div>
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>

       <a href="http://cwiki.apache.org/confluence/display/CXF/Setting+up+Eclipse+for+Running+and+Debugging+Distributed+OSGi">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=105935&revisedVersion=10&originalVersion=9">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/CXF/Setting+up+Eclipse+for+Running+and+Debugging+Distributed+OSGi?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message