ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | celtix List | May 2006 Index

<--  Date Index  --> <--  Thread Index  -->

Custom transport configuration


Title: Custom transport configuration

I've written (or started to write) a custom transport which gets the response to a message from a file on an FTP server. One use of this custom transport is to use it when testing clients, I change the client WSDL file to use an FTP file transport and create my test response in an XML file. When the test passes the WSDL can be changed back to use the live web service instead.

My question is how do I add the new tranport to the existing transports, my config file replaces the existing transports with my new one.

I've used the following config -

<beans
    xmlns:ct="http://celtix.objectweb.org/configuration/types"
    xmlns:bus-conf="http://celtix.objectweb.org/bus/bus-config">

  <bean id="celtix.{http://www.atkinsglobal.com/inform/trafficnews}TrafficNewsService/TrafficNewsI"
        class="org.objectweb.celtix.bus.bus_config.spring.BusConfigBean">

      <property name="transportFactories">
          <value>
                        <ct:classNamespaceMappingListValue>
                    <ct:map>
                        <ct:classname>com.atkinsglobal.inform.celtix.bus.transports.ftpfile.FTPFileTransportFactory</ct:classname>

                        <ct:namespace>http://www.atkinsglobal.com/inform/celtix/bus/transport/ftpfile</ct:namespace>
                    </ct:map>         
            </ct:classNamespaceMappingListValue>
          </value>
      </property>
  </bean>

This replaces the map instead of adding an entry to the map. If I have to I can copy the existing items into here but that doesn't seem to be ideal.

Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems

Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 
E-mail: richard.shaw@xxxxxxxxxxxxxxxx

www.atkinsglobal.com/its



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.