Mule 2.2.1, axis routing with filters

View: New views
2 Messages — Rating Filter:   Alert me  

Mule 2.2.1, axis routing with filters

by Richard Swart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to route a axis inbound endpoint using a forwarding router and two filters to two axis inbound endpoints but i keep getting a
error "java.lang.reflect.Method cannot be cast to org.mule.transport.soap.SoapMethod".
when mule tries to route to the axis end-points.

Can this be down?

Any help will be appreciated.


This is my configuration.



                <service name="aminoStbCommandService">
                        <inbound>
                       
                               
                               
                                 
                                <axis:inbound-endpoint
        address="http://localhost:8881/axis/amino"
        connector-ref="axis2">
        </axis:inbound-endpoint>
       
       
        <forwarding-router/>
       
        </inbound>
        <pooled-component>
        <spring-object bean="aminoStbCommandService1"/>
        </pooled-component>
        <outbound>
        <filtering-router>
        <outbound-endpoint  
        address="wsdl-axis:http://localhost:8882/axis/amino/stbRemoteCommandService"
        synchronous="true" />
        <message-property-filter pattern="type=stbRemoteCommand"/>
        </filtering-router>
        <filtering-router>
        <outbound-endpoint
        address="wsdl-axis:http://localhost:8883/axis/amino/libConfigService"
        />
        <message-property-filter pattern="type=libConfigCommand"/>
        </filtering-router>
        </outbound>
       
  <!--
                         
                        <pooled-component>
        <spring-object bean="aminoStbCommandService1"/>
        </pooled-component>
        -->
                </service>

        <service name="stbRemoteCommandService" >
       
        <inbound>
        <!--  
        <vm:inbound-endpoint path="StbRemoteCommand"/>
        -->
       
        <axis:inbound-endpoint
        address="http://localhost:8882/axis/amino"
        connector-ref="axis2">
        </axis:inbound-endpoint>
        <!--
        <selective-consumer-router>
       
        <message-property-filter pattern="type=stbRemoteCommand"/>
        </selective-consumer-router>
        -->
        </inbound>
        <pooled-component>
        <spring-object bean="aminoStbManager"/>
        </pooled-component>
       
       
        </service>
        <service name="libConfigService" >
       
        <inbound>
        <!--  
        <vm:inbound-endpoint path="LibConfigCommand"/>
        -->
       
        <axis:inbound-endpoint
        address="http://localhost:8883/axis/amino"
        connector-ref="axis2">
        </axis:inbound-endpoint>
        <!--
        <selective-consumer-router>
       
        <message-property-filter pattern="type=libConfigCommand"/>
        </selective-consumer-router>
        -->
        </inbound>
        <pooled-component>
        <spring-object bean="libConfigCommandService"/>
        </pooled-component>
       
       
        </service>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Mule 2.2.1, axis routing with filters

by antoine.borg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Are you sure that the inbound message on aminoStbCommandService can be
used with the other services? If the WSDL defines a different message
format, etc, then it will throw errors.

Also, why do you use a forwarding router on your service? Would it not
be simpler to just avoid declaring the component in the first place? As
it is, the component aminoStbCommandService1 is never invoked ...

HTH

A

Carl Spangenberger wrote:

> I am trying to route a axis inbound endpoint using a forwarding router and two filters to two axis inbound endpoints but i keep getting a
> error "java.lang.reflect.Method cannot be cast to org.mule.transport.soap.SoapMethod".
> when mule tries to route to the axis end-points.
>
> Can this be down?
>
> Any help will be appreciated.
>
>
> This is my configuration.
>
>
>
> <service name="aminoStbCommandService">
> <inbound>
>
>
>
>
> <axis:inbound-endpoint
>         address="http://localhost:8881/axis/amino"
>         connector-ref="axis2">
>         </axis:inbound-endpoint>
>        
>        
>         <forwarding-router/>
>        
>         </inbound>
>         <pooled-component>
>         <spring-object bean="aminoStbCommandService1"/>
>         </pooled-component>
>         <outbound>
>         <filtering-router>
>         <outbound-endpoint  
>         address="wsdl-axis:http://localhost:8882/axis/amino/stbRemoteCommandService"
>         synchronous="true" />
>         <message-property-filter pattern="type=stbRemoteCommand"/>
>         </filtering-router>
>         <filtering-router>
>         <outbound-endpoint
>         address="wsdl-axis:http://localhost:8883/axis/amino/libConfigService"
>         />
>         <message-property-filter pattern="type=libConfigCommand"/>
>         </filtering-router>
>         </outbound>
>        
>   <!--
>  
> <pooled-component>
>         <spring-object bean="aminoStbCommandService1"/>
>         </pooled-component>
>         -->
> </service>
>
>         <service name="stbRemoteCommandService" >
>        
>         <inbound>
>         <!--  
>         <vm:inbound-endpoint path="StbRemoteCommand"/>
>         -->
>        
>         <axis:inbound-endpoint
>         address="http://localhost:8882/axis/amino"
>         connector-ref="axis2">
>         </axis:inbound-endpoint>
>         <!--
>         <selective-consumer-router>
>        
>         <message-property-filter pattern="type=stbRemoteCommand"/>
>         </selective-consumer-router>
>         -->
>         </inbound>
>         <pooled-component>
>         <spring-object bean="aminoStbManager"/>
>         </pooled-component>
>        
>        
>         </service>
>         <service name="libConfigService" >
>        
>         <inbound>
>         <!--  
>         <vm:inbound-endpoint path="LibConfigCommand"/>
>         -->
>        
>         <axis:inbound-endpoint
>         address="http://localhost:8883/axis/amino"
>         connector-ref="axis2">
>         </axis:inbound-endpoint>
>         <!--
>         <selective-consumer-router>
>        
>         <message-property-filter pattern="type=libConfigCommand"/>
>         </selective-consumer-router>
>         -->
>         </inbound>
>         <pooled-component>
>         <spring-object bean="libConfigCommandService"/>
>         </pooled-component>
>        
>        
>         </service>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>  
--

Antoine Borg, Director of Services | Tel: +32 28 504 696
ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM

See our full schedule of Mule and Android courses:
http://www.ricston.com/courses/schedules/

email: _antoine.borg_@... <mailto:antoine.borg@...> |
blog: blog.ricston.com <http://blog.ricston.com> | web: ricston.com
<http://www.ricston.com/>



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email