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

robert lazarski commented on AXIS2-3258:
----------------------------------------

I suspect a Spring config issue, attach a sample project  using 
SpringServletContextObjectSupplier and maybe we can help. Its been a while but 
I remember using proxies with axis2 successfully, defined in the form: 

  <bean id="basicService" 
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" 
lazy-init="true">                                                       
        <property name="transactionManager"><ref 
bean="myTransactionManager"/></property>                                        
                                                   
        <property name="target"><ref bean="basicServ"/></property>              
                                                                                
                    
        <property name="transactionAttributes">                                 
                                                                                
                    
            <props>                                                             
                                                                                
                    
                <prop 
key="find*">PROPAGATION_REQUIRED,readOnly,timeout_180</prop>                    
                                                                              

            </props>                                                            
                                                                                
                    
        </property>                                                             
                                                                                
                    
    </bean>                                                                     
                                                                                
                    
                                                                                
                                                                                
                    
    <!-- Implementation of Basic Service -->                                    
                                                                                
                    
    <bean id="basicServ" class="com.sample.BasicServiceImpl" lazy-init="true">  
                                                                    
        <property name="basicDAO"><ref bean="basicDAO"/></property>             
                                                                                
                    
    </bean>  

Where basicService as a spring bean in the code, is an interface implemented by 
BasicServiceImpl. If done that way, and by matching correctly the class and 
bean names carefully as mention by others in this issue, it should just work. 


 
                
> Extend Spring support to accept proxies
> ---------------------------------------
>
>                 Key: AXIS2-3258
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3258
>             Project: Axis2
>          Issue Type: New Feature
>          Components: deployment, wsdl
>    Affects Versions: 1.3
>            Reporter: Oleg Efimov
>            Priority: Trivial
>             Fix For: 1.3
>
>
> ServiceBuilder presently requires service class's byte code to obtain method 
> parameter names. This won't work with proxies, thus making Spring support 
> really feeble.
> I propose introducing additional service.xml parameter, namely 
> ServiceInterface, to enumerate service methods and parameter names.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to