felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Felix > 4.8. Configuration
Date Mon, 12 Oct 2009 14:37:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=FELIX&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/FELIX/4.8.+Configuration">4.8.
Configuration</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~gnodet">Guillaume
Nodet</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <style type='text/css'>/*<![CDATA[*/
table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color:
#f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}

/*]]>*/</style><div class="Scrollbar"><table class='ScrollbarTable'><tr><td
class='ScrollbarPrevIcon'><a href="/confluence/display/FELIX/4.7.+Administration"><img
border='0' align='middle' src='/confluence/images/icons/back_16.gif' width='16' height='16'></a></td><td
width='33%' class='ScrollbarPrevName'><a href="/confluence/display/FELIX/4.7.+Administration">4.7.
Administration</a>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a
href="/confluence/display/FELIX/4.+Understanding+Karaf"><img border='0' align='middle'
src='/confluence/images/icons/up_16.gif' width='8' height='8'></a></sup><a
href="/confluence/display/FELIX/4.+Understanding+Karaf">4. Understanding Karaf</a></td><td
width='33%' class='ScrollbarNextName'>&nbsp;</td></tr></table></div>
<p><a name="4.8.Configuration-top"></a></p>

<h1><a name="4.8.Configuration-4.8.Configuration"></a>4.8. Configuration</h1>

<p>The files in the <tt>etc</tt> directory are used to set the startup configuration.
 </p>

<p>For dynamic configuration, Karaf provides a suite of command to administer the configuration
service grouped under <tt>config</tt>. To learn about all currently supported
configuration commands type:</p>

<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Command </th>
<th class='confluenceTh'> Description   </th>
</tr>
<tr>
<td class='confluenceTd'> cancel   </td>
<td class='confluenceTd'> Change the changes to the configuration being edited. </td>
</tr>
<tr>
<td class='confluenceTd'> edit     </td>
<td class='confluenceTd'> Create or edit a configuration. </td>
</tr>
<tr>
<td class='confluenceTd'> list     </td>
<td class='confluenceTd'> List existing configurations. </td>
</tr>
<tr>
<td class='confluenceTd'> propdel  </td>
<td class='confluenceTd'> Delete a property from the edited configuration. </td>
</tr>
<tr>
<td class='confluenceTd'> proplist </td>
<td class='confluenceTd'> List properties from the edited configuration. </td>
</tr>
<tr>
<td class='confluenceTd'> propset  </td>
<td class='confluenceTd'> Set a property on the edited configuration. </td>
</tr>
<tr>
<td class='confluenceTd'> update   </td>
<td class='confluenceTd'> Save and propagate changes from the configuration being edited.
</td>
</tr>
</tbody></table>


<h2><a name="4.8.Configuration-Editing"></a>Editing</h2>

<h3><a name="4.8.Configuration-SelectConfigurationToEdit"></a>Select Configuration
To Edit</h3>

<p>For example to edit configuration <tt>foo.bar</tt>:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
karaf@root:/&gt; config:edit foo.bar
</pre>
</div></div>

<h3><a name="4.8.Configuration-ModifyProperties"></a>Modify Properties</h3>

<p>Use:</p>

<ul>
	<li><tt>config:proplist</tt> to list existing properties</li>
	<li><tt>config:propdel</tt> to delete existing properties</li>
	<li><tt>config:propset</tt> to set a new value for a property</li>
</ul>


<p>Any number of properties can be modified within a single editing session. </p>

<h3><a name="4.8.Configuration-CommitOrRollbackChanges"></a>Commit Or Rollback
Changes</h3>

<p>Use</p>

<ul>
	<li><tt>config:update</tt> to commit all changes made in the current session</li>
	<li><tt>config:cancel</tt> to roll back any changes made in the current
session</li>
</ul>


<p><a href="#4.8.Configuration-top">top</a></p>
<style type='text/css'>/*<![CDATA[*/
table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color:
#f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}

/*]]>*/</style><div class="Scrollbar"><table class='ScrollbarTable'><tr><td
class='ScrollbarPrevIcon'><a href="/confluence/display/FELIX/4.7.+Administration"><img
border='0' align='middle' src='/confluence/images/icons/back_16.gif' width='16' height='16'></a></td><td
width='33%' class='ScrollbarPrevName'><a href="/confluence/display/FELIX/4.7.+Administration">4.7.
Administration</a>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a
href="/confluence/display/FELIX/4.+Understanding+Karaf"><img border='0' align='middle'
src='/confluence/images/icons/up_16.gif' width='8' height='8'></a></sup><a
href="/confluence/display/FELIX/4.+Understanding+Karaf">4. Understanding Karaf</a></td><td
width='33%' class='ScrollbarNextName'>&nbsp;</td></tr></table></div>
     </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/FELIX/4.8.+Configuration">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=118828&revisedVersion=4&originalVersion=3">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/FELIX/4.8.+Configuration?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message