John,

If I think I understand you correctly, you wish to identify and define
handlers for services you've configured through your spring
configuration file.  Correct?  If so, here's a sample of how I did it:

        <bean name="leaveService"
                class="org.codehaus.xfire.spring.ServiceBean">
                <property name="serviceBean" ref="leaveServiceImpl" />
                <property name="serviceFactory">
                        <ref bean="xfire.annotationServiceFactory" />
                </property>
                <property name="inHandlers">
                        <list>
                                <ref bean="domInHandler" />
                                <ref bean="wss4jHandler" />
                        </list>
                </property>
        </bean>

        <bean id="leaveServiceImpl"
class="com.somecompany.services.leave.LeaveServiceImpl" />

        <!-- Dom In handler, needed by WSS4J, do not edit! -->
        <bean id="domInHandler"
                class="org.codehaus.xfire.util.dom.DOMInHandler" />

        <!-- WSS4J Handler, do not edit! -->
        <bean id="wss4jHandler"
                class="org.codehaus.xfire.security.wss4j.WSS4JInHandler">
                <constructor-arg index="0">
                        <props>
                                <prop key="action">UsernameToken</prop>
                                <prop key="passwordCallbackClass">
                                        
com.somecompany.security.PasswordCallbackHandler
                                </prop>
                        </props>
                </constructor-arg>
        </bean>


I hope this helps.
Eric
On Tue, 2006-10-31 at 19:00 -0800, John Woolf wrote:
> Hi All,
> 
> I have several Jsr181 services configured via Spring - ie,
> xfire-servlet.xml instead of services.xml. They work great.
> 
> What I'm trying to do is add specific handlers to a subset of these
> services. What I'd like to do is declare them via my Spring config.
> Does anybody have experience with this or any advice on how to
> proceed?  Is there a way to combine service definitions from
> services.xml and another config file - for example, use the existing
> syntax to define handlers for my spring-config'd Jsr181 services in
> services.xml?
> 
> Note: using services.xml to define global handlers for my services
> won't work because we require that different handlers are applied to
> different services - some services having no additional handlers at
> all.
> 
> I suppose I could try to add the handlers programmatically on startup,
> but that seems hackish.
> 
> Thanks in advance...
> 
> -John
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 

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

    http://xircles.codehaus.org/manage_email

Reply via email to