cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF > DOSGi Apache Karaf Feature
Date Mon, 07 Jan 2013 09: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/DOSGi+Apache+Karaf+Feature">DOSGi
Apache Karaf Feature</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~christian%2Bschneider">Christian
Schneider</a>
    </h4>
        <br/>
                         <h4>Changes (2)</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" >install -s mvn:org.apache.cxf.dosgi.samples/cxf-dosgi-ri-samples-greeter-server/1.4-SNAPSHOT
<br> <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{code}
<br></td></tr>
            <tr><td class="diff-unchanged" >Using log:display you should see the
greeter service being exported: <br>2013-01-07 10:50:52,108 | INFO  | pool-13-thread-1
| TopologyManagerExport            | r.exporter.TopologyManagerExport  257 | 114 - cxf-dosgi-ri-topology-manager
- 1.4.0.SNAPSHOT | TopologyManager: export sucessful Endpoints: [Endpoint Desctiption for
ServiceReference [org.apache.cxf.dosgi.samples.greeter.GreeterService] <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >service.intents  =&gt; [SOAP.1_1,
HTTP, SOAP] <br>] <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{code}
<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="DOSGiApacheKarafFeature-CXFDOSGiinApacheKaraf"></a>CXF
DOSGi in Apache Karaf</h1>

<h2><a name="DOSGiApacheKarafFeature-DownloadandunpackApacheKaraf"></a>Download
and unpack Apache Karaf</h2>



<h2><a name="DOSGiApacheKarafFeature-InstallationofCXFDOSGi"></a>Installation
of CXF-DOSGi</h2>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
features:addurl mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4-SNAPSHOT/xml/features
features:install cxf-dosgi-discovery-distributed
</pre>
</div></div>

<p>Create config "etc/org.apache.cxf.dosgi.discovery.zookeeper.cfg" with the following
content:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
zookeeper.port=2181
zookeeper.host=localhost
</pre>
</div></div>

<h2><a name="DOSGiApacheKarafFeature-InstallationofthezookeeperServer"></a>Installation
of the zookeeper Server</h2>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
features:install cxf-dosgi-zookeeper-server
</pre>
</div></div>

<p>Create config "etc/org.apache.cxf.dosgi.discovery.zookeeper.server.cfg" with the
following content:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
zookeeper.host:127.0.0.1
clientPort:2181
zookeeper.port:2181
</pre>
</div></div>

<h2><a name="DOSGiApacheKarafFeature-Testinstallationwithgreeterdemo"></a>Test
installation with greeter demo</h2>

<p>install -s mvn:org.apache.cxf.dosgi.samples/cxf-dosgi-ri-samples-greeter-interface/1.4-SNAPSHOT<br/>
install -s mvn:org.apache.cxf.dosgi.samples/cxf-dosgi-ri-samples-greeter-server/1.4-SNAPSHOT</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
Using log:display you should see the greeter service being exported:
2013-01-07 10:50:52,108 | INFO  | pool-13-thread-1 | TopologyManagerExport            | r.exporter.TopologyManagerExport
 257 | 114 - cxf-dosgi-ri-topology-manager - 1.4.0.SNAPSHOT | TopologyManager: export sucessful
Endpoints: [Endpoint Desctiption <span class="code-keyword">for</span> ServiceReference
[org.apache.cxf.dosgi.samples.greeter.GreeterService]
*** EndpointDescription: **** 
endpoint.framework.uuid  =&gt; 74455213-0926-4fa8-b3eb-0f9b4d15f119
endpoint.id  =&gt; http:<span class="code-comment">//localhost:9090/greeter
</span>endpoint.<span class="code-keyword">package</span>.version.org.apache.cxf.dosgi.samples.greeter
 =&gt; 0.0.0
endpoint.service.id  =&gt; 252
objectClass  =&gt; [org.apache.cxf.dosgi.samples.greeter.GreeterService]
org.apache.cxf.ws.address  =&gt; http:<span class="code-comment">//localhost:9090/greeter
</span>service.imported  =&gt; <span class="code-keyword">true</span>
service.imported.configs  =&gt; [org.apache.cxf.ws]
service.intents  =&gt; [SOAP.1_1, HTTP, SOAP]
]
</pre>
</div></div>

    </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/DOSGi+Apache+Karaf+Feature">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=30741168&revisedVersion=3&originalVersion=2">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CXF/DOSGi+Apache+Karaf+Feature?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message