cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r946410 - in /websites/production/cxf/content: cache/docs.pageCache docs/using-cxf-and-cdi-1112-jsr-346-in-osgi-environment.html
Date Sun, 05 Apr 2015 16:46:54 GMT
Author: buildbot
Date: Sun Apr  5 16:46:54 2015
New Revision: 946410

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/using-cxf-and-cdi-1112-jsr-346-in-osgi-environment.html

Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/cxf/content/docs/using-cxf-and-cdi-1112-jsr-346-in-osgi-environment.html
==============================================================================
--- websites/production/cxf/content/docs/using-cxf-and-cdi-1112-jsr-346-in-osgi-environment.html
(original)
+++ websites/production/cxf/content/docs/using-cxf-and-cdi-1112-jsr-346-in-osgi-environment.html
Sun Apr  5 16:46:54 2015
@@ -123,7 +123,7 @@ Apache CXF -- Using CXF and CDI 1.1/1.2
 </div></div><p>Next, Apache CXF 3.1.0+ features should be installed:</p><div
class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
 <pre>feature:repo-add cxf 3.1.0
 feature:install cxf/3.1.0 cxf-jaxrs-cdi/3.1.0</pre>
-</div></div><h1 id="UsingCXFandCDI1.1/1.2(JSR-346)inOSGienvironment-BundleMetadata">Bundle
Metadata</h1><p>In order for the bundle to be recognized as web CDI one and use
Apache CXF CDI capabilities, it should provide special bundle manifest instructions (f.e.by&#160;
using <strong>maven-bundle-plugin</strong> plugin).</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h1 id="UsingCXFandCDI1.1/1.2(JSR-346)inOSGienvironment-BundleMetadata">Bundle
Metadata</h1><p>In order for the bundle to be recognized as web CDI one and use
Apache CXF CDI capabilities, it should provide special bundle manifest instructions (f.e.
by&#160; using <strong>maven-bundle-plugin</strong> plugin).</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;/instructions&gt;
     ... 
     &lt;Import-Package&gt;
@@ -140,7 +140,7 @@ feature:install cxf/3.1.0 cxf-jaxrs-cdi/
     &lt;Web-ContextPath&gt;...&lt;/Web-ContextPath&gt;
     &lt;_wab&gt;src/main/webapp&lt;/_wab&gt;
 &lt;/instructions&gt;]]></script>
-</div></div><p>The <strong>Require-Capability</strong> instruction
is very important in order for CDI initialization, discovery and injections to work with Apache
CXF. The <strong>Web-ContextPath</strong> is the context path for this web application
to be deployed at. And <strong>_wab</strong> is the instruction&#160; to point
out the <strong>web.xml</strong> file location. Please notice, the application
will not be deployed under usual<strong> /cxf</strong> endpoint (common endpoint
for regular Apache CXF services). The reason for that is that Pax Web is used for deployment
of web CDI applications.</p><h1 id="UsingCXFandCDI1.1/1.2(JSR-346)inOSGienvironment-WebApplicationConfiguration">Web
Application Configuration</h1><p>At the moment,&#160; Apache CXF OSGi application
should explicitly provide <strong>web.xml</strong> descriptor with at least <strong>CXFCdiServlet
</strong>defined. For example:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panel
 Content pdl">
+</div></div><p>The <strong>Require-Capability</strong> instruction
is very important in order for CDI initialization, discovery and injections to work with Apache
CXF. The <strong>Web-ContextPath</strong> is the context path for this web application
to be deployed at. And <strong>_wab</strong> is the instruction&#160; to point
out the <strong>web.xml</strong> file location. Please notice, the application
will not be deployed under usual<strong> /cxf</strong> endpoint (common endpoint
for regular Apache CXF services). The reason for that is that Pax Web is used for deployment
of web CDI applications.</p><h1 id="UsingCXFandCDI1.1/1.2(JSR-346)inOSGienvironment-WebApplicationConfiguration">Web
Application Configuration</h1><p>At the moment, Apache CXF OSGi application should
explicitly provide <strong>web.xml</strong> descriptor with at least <strong>CXFCdiServlet
</strong>defined. For example:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelConten
 t pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;web-app
version=&quot;3.0&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
     xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
 
@@ -156,7 +156,7 @@ feature:install cxf/3.1.0 cxf-jaxrs-cdi/
         &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
     &lt;/servlet-mapping&gt;
 &lt;/web-app&gt;]]></script>
-</div></div></div>
+</div></div><h1 id="UsingCXFandCDI1.1/1.2(JSR-346)inOSGienvironment-Discovery">Discovery</h1><p>Pax
CDI uses own definition of bean bundles and as such, only bundles which follow these requirements
are available for discovery (providers, services and features) and injection (see please <a
shape="rect" class="external-link" href="https://ops4j1.jira.com/wiki/display/PAXCDI/Getting+Started+for+OSGi+Users"
rel="nofollow">https://ops4j1.jira.com/wiki/display/PAXCDI/Getting+Started+for+OSGi+Users</a>
for more details).</p></div>
            </div>
            <!-- Content -->
          </td>



Mime
View raw message