logo       

Re: Dwr can´t find exposed method in wrapped service: msg#00144

java.dwr.user

Subject: Re: Dwr can´t find exposed method in wrapped service


Try the auto-config pages - they contain debug:
http://localhost:8080/[yourwebapp]/dwr/

Joe.

On 2/12/07, Danny Garcia Hernandez <danny-h69X8QHYOnY@xxxxxxxxxxxxxxxx> wrote:
Hi,

I have a wrapper to a class and expose this wrapper class to dwr. The
problem is that dwr  can´t find the exposed method. The config is like this:

g2kstore-conf.xml
--------------------

    <bean id="consultaDocLogic"
class="es.g2k.g2kstore.domain.servicio.impl.ServicioConsultaDocImpl">
        <property name="consultaDocDao" ref="consultaDocDao"/>
        <property name="mailSender" ref="mailSender"/>
        <property name="mailData" ref="mailData"/>
        <property name="paginado" value="20"/>
    </bean>

    <!-- Transactional proxy para los servicios de aplicaciones -->
    <bean id="consultaDocLogicProxy"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
        <property name="transactionManager" ref="transactionManager"/>
        <property name="target" ref="consultaDocLogic"/>
        <property name="transactionAttributes">
            <props>
                <prop key="get*">PROPAGATION_REQUIRED, readOnly</prop>
                <prop key="*">PROPAGATION_REQUIRED</prop>
            </props>
        </property>
    </bean>.

    <bean id="dwrConsultaDocLogic"
class="es.g2k.g2kstore.domain.servicio.impl.DwrServicioConsultaDocImpl">
        <property name="consultaDocSrv" ref="consultaDocLogic"/>
    </bean>

    <bean id="dwrConsultaDocLogicProxy"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
        <property name="transactionManager" ref="transactionManager"/>
        <property name="target" ref="dwrConsultaDocLogic"/>
        <property name="transactionAttributes">
            <props>
                <prop key="get*">PROPAGATION_REQUIRED, readOnly</prop>
                <prop key="*">PROPAGATION_REQUIRED</prop>
            </props>
        </property>
    </bean>

applicationContext.xml (Here we have a  bean, dwrConsultaDocSrvSecure,
wrapping a trasactional services and  with interceptors
to verify  acegi authetication, why dwr can´t  find exposed method in
it?, if i expose consultaDocSrv to dwr all work ok)
-----------------------

    <bean id="consultaDocSrv"
class="es.g2k.g2kstore.domain.servicio.factory.FabricaServicio "
factory-method="obtieneServicio">
        <constructor-arg value="consultaDocLogicProxy" />
    </bean>

    <bean id="dwrConsultaDocSrv"
class=" es.g2k.g2kstore.domain.servicio.factory.FabricaServicio"
factory-method="obtieneServicio">
        <constructor-arg value="dwrConsultaDocLogicProxy" />
    </bean>

    <bean id="dwrConsultaDocSrvSecure"
class="org.springframework.aop.framework.ProxyFactoryBean">
        <property name="target" ref="dwrConsultaDocSrv"/>
        <property name="interceptorNames">
            <idref local="dwrSecurityInterceptor"/>
        </property>
    </bean>


Any hints?.
Thanks Danny

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe-EyPigyGktj4FDOXUYO6UHQ@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help-EyPigyGktj5ZrVXG93RJLw@xxxxxxxxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise