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:55: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>
        <div id="versionComment">
        <b>Comment:</b>
        Added installation for greeter example<br />
    </div>
        <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" >zookeeper.port:2181 <br>{code}
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br>h2. Test installation with greeter demo <br> <br>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
<br> <br>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>*** EndpointDescription: ****
 <br>endpoint.framework.uuid  =&gt; 74455213-0926-4fa8-b3eb-0f9b4d15f119 <br>endpoint.id
 =&gt; http://localhost:9090/greeter <br>endpoint.package.version.org.apache.cxf.dosgi.samples.greeter
 =&gt; 0.0.0 <br>endpoint.service.id  =&gt; 252 <br>objectClass  =&gt;
[org.apache.cxf.dosgi.samples.greeter.GreeterService] <br>org.apache.cxf.ws.address
 =&gt; http://localhost:9090/greeter <br>service.imported  =&gt; true <br>service.imported.configs
 =&gt; [org.apache.cxf.ws] <br>service.intents  =&gt; [SOAP.1_1, HTTP, SOAP]
<br>] <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>

<p>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 <a href="/confluence/pages/createpage.action?spaceKey=CXF&amp;title=org.apache.cxf.dosgi.samples.greeter.GreeterService&amp;linkCreation=true&amp;fromPageId=30741168"
class="createlink">org.apache.cxf.dosgi.samples.greeter.GreeterService</a></p>
<ul>
	<li>
	<ul>
		<li>
		<ul>
			<li>EndpointDescription: ****<br/>
endpoint.framework.uuid  =&gt; 74455213-0926-4fa8-b3eb-0f9b4d15f119<br/>
endpoint.id  =&gt; <a href="http://localhost:9090/greeter" class="external-link" rel="nofollow">http://localhost:9090/greeter</a><br/>
endpoint.package.version.org.apache.cxf.dosgi.samples.greeter  =&gt; 0.0.0<br/>
endpoint.service.id  =&gt; 252<br/>
objectClass  =&gt; <a href="/confluence/pages/createpage.action?spaceKey=CXF&amp;title=org.apache.cxf.dosgi.samples.greeter.GreeterService&amp;linkCreation=true&amp;fromPageId=30741168"
class="createlink">org.apache.cxf.dosgi.samples.greeter.GreeterService</a><br/>
org.apache.cxf.ws.address  =&gt; <a href="http://localhost:9090/greeter" class="external-link"
rel="nofollow">http://localhost:9090/greeter</a><br/>
service.imported  =&gt; true<br/>
service.imported.configs  =&gt; <a href="/confluence/pages/createpage.action?spaceKey=CXF&amp;title=org.apache.cxf.ws&amp;linkCreation=true&amp;fromPageId=30741168"
class="createlink">org.apache.cxf.ws</a><br/>
service.intents  =&gt; <a href="/confluence/pages/createpage.action?spaceKey=CXF&amp;title=SOAP.1_1%2C+HTTP%2C+SOAP&amp;linkCreation=true&amp;fromPageId=30741168"
class="createlink">SOAP.1&#95;1, HTTP, SOAP</a><br/>
]</li>
		</ul>
		</li>
	</ul>
	</li>
</ul>


    </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=2&originalVersion=1">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