cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache CXF > Setting up Eclipse for Running and Debugging Distributed OSGi
Date Mon, 18 Jan 2010 10:36:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/1519/1/11/_/styles/combined.css?spaceKey=CXF&amp;forWysiwyg=true"
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="">Setting
up Eclipse for Running and Debugging Distributed OSGi</a></h2>
     <h4>Page <b>edited</b> by             <a href="">David
     <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

<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>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>
<img src="/confluence/download/attachments/105935/select.jpg" align="absmiddle" border="0"
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>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"
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>

       <a href="">View
       <a href="">View
       <a href=";showCommentArea=true#addcomment">Add

View raw message