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  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  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[</instructions>
...
<Import-Package>
@@ -140,7 +140,7 @@ feature:install cxf/3.1.0 cxf-jaxrs-cdi/
 <Web-ContextPath>...</Web-ContextPath>
<_wab>src/main/webapp</_wab>
</instructions>]]></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  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 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  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[<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
@@ -156,7 +156,7 @@ feature:install cxf/3.1.0 cxf-jaxrs-cdi/
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>]]></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>