[ 
https://issues.apache.org/jira/browse/CXF-5576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944581#comment-13944581
 ] 

Sergey Beryozkin edited comment on CXF-5576 at 3/23/14 9:22 PM:
----------------------------------------------------------------

Hi, what about 
http://docs.oracle.com/javaee/6/tutorial/doc/bnawq.html#bnawr ?

There has to be a way to set CDI bean properties somehow the CDI way ?

We have two issues: 1) how to configure endpoint properties (ex, set 
jaxrs:properties somehow, transportId, etc) and 2) how to customize individual 
service beans.

We can do 1) and 2) in JAX-RS with Application.
We can do 2) may be as recommended in that link. May be if we wrap somehow 
JAXRSServerFactoryBean as CDI ManagedBean (say we introduce 
JAXRSServerFactoryManagedCdiBean extends JAXRSServerFactoryBean, same as it is 
done for Spring) then the info at the link may also apply to customizing 
JAXRSServerFactoryBean ?

Cheers, Sergey


was (Author: sergey_beryozkin):
Hi, what about 
http://docs.oracle.com/javaee/6/tutorial/doc/bnawq.html#bnawr ?

There has to be a way to set CDI bean properties somehow the CDI way ?

We have two issues: 1) how to configure endpoint properties (ex, set 
jaxrs:properties somehow, transportId, etc) and 2) how to customize individual 
service beans.

We can do 1) and 2) in JAX-RS with Application.
We can do 2) may be as recommended in that link. May be if we wrap somehow 
JAXRSServerFactoryBean as CDI ManagedBean then the info at the link may also 
apply to customizing JAXRSServerFactoryBean ?

Cheers, Sergey

> Initital support for CDI integration
> ------------------------------------
>
>                 Key: CXF-5576
>                 URL: https://issues.apache.org/jira/browse/CXF-5576
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 3.0.0
>            Reporter: Andriy Redko
>            Assignee: Andriy Redko
>              Labels: cdi
>         Attachments: weld-one-jar.zip, weld-one-war.zip
>
>
> A per section 10.2.3 Context and Dependency Injection (CDI) of JAX-RS 2.0 
> specification, in a product that supports CDI, the implementations MUST 
> support the use of CDI-style Beans as root resource classes, providers and 
> Application subclasses. Providers and Application subclasses MUST be 
> singletons or use application scope.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to