I'm a bit confused to the best / proper way to be exposing my service
beans.  If I'm using annotations to expose stuff can I alert the service
in my xml configs using something like ServiceBean?  Right now I'm
exposing stuff with;

 

<bean id="webAnnotations"
class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations"/>

<bean id="handlerMapping"
class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping">

   <property name="typeMappingRegistry" ref="xfire.typeMappingRegistry"
/>

   <property name="xfire" ref="xfire" />

   <property name="webAnnotations" ref="webAnnotations" />

</bean>

 

 

Should I / Can I just add some annotations to add some inHandlers for
security?  

 

<bean id="domInHandler" class="org.codehaus.xfire.util.dom.DOMInHandler"
/>

 

<bean id="securityInHandler"
class="org.codehaus.xfire.security.wss4j.WSS4JInHandler" >

   <property name="properties">

    <props>

       <prop key="action">UsernameToken</prop>

       <prop
key="passwordCallbackClass">com.autoreturn.service.handler.PasswordHandl
er</prop>

    </props>

  </property>

</bean>

 

<bean id="authenticationHandler"
class="com.autoreturn.service.handler.ValidateUserTokenHandler" />

 

 

What about changing the serviceFactory? Or do I even need to worry about
that if I'm doing code first JAXB services?

 

 

Or would I be better off not using annotations and just wiring all up in
xml.  I'm sure a lot of this is personal preference but I seem to keep
up ending up with half one or half the other but never the full
configuration I want.

 

 

Thanks,

deno

Reply via email to