[ 
https://issues.apache.org/jira/browse/CXF-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colm O hEigeartaigh resolved CXF-3157.
--------------------------------------
    Resolution: Fixed

Both the servlet context handling and the {{RMTxStore}} initialization have 
changed since this was reported.

> @PostConstruct doesn't work with servlet transport 
> ---------------------------------------------------
>
>                 Key: CXF-3157
>                 URL: https://issues.apache.org/jira/browse/CXF-3157
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>            Priority: Major
>
> The cxf-servlet.xml is loaded with GenericApplicationContext which is not 
> refreshable, the method annotated with @PostConstruct can not be executed by 
> JSR250PostProcessor. 
> Below is an example uses WS-RM persistence  and RMTxStore can not be 
> initialized :
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xmlns:cxf="http://cxf.apache.org/core";
>        xmlns:wsa="http://cxf.apache.org/ws/addressing";
>        xmlns:wsrm-mgr="http://cxf.apache.org/ws/rm/manager";
>        xmlns:jaxws='http://cxf.apache.org/jaxws'  
>        xsi:schemaLocation="
> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
> http://cxf.apache.org/ws/rm/manager 
> http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd
> http://www.springframework.org/schema/beans 
> http://www.springframework.org/schema/beans/spring-beans.xsd    
> http://cxf.apache.org/jaxws
>  http://cxf.apache.org/schemas/jaxws.xsd";>
>     
>     <cxf:bus>
>         <cxf:features>
>             <wsa:addressing/>
>             <wsrm-mgr:reliableMessaging>
>                 <wsrm-mgr:store>
>                    <ref bean="testStore"/>
>                 </wsrm-mgr:store>
>             </wsrm-mgr:reliableMessaging>
>         </cxf:features>
>     </cxf:bus>
>     
>     <wsrm-mgr:jdbcStore id="testStore"/>
>    
>   <jaxws:endpoint id='EndpointImpl'
>     implementor='org.apche.cxf.EndpointImpl'>
>   </jaxws:endpoint>
>     
> </beans>



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to