1 17 package org.apache.servicemix.jms.wsdl; 18 19 import javax.wsdl.extensions.ExtensionRegistry; 20 import javax.xml.namespace.QName ; 21 22 import com.ibm.wsdl.Constants; 23 24 public class JmsExtension { 25 26 public static final String NS_URI_JMS = "http://servicemix.org/wsdl/jms/"; 27 28 public static final String ELEM_ADDRESS = "address"; 29 30 public static final QName Q_ELEM_JMS_ADDRESS = new QName (NS_URI_JMS, ELEM_ADDRESS); 31 public static final QName Q_ELEM_JMS_BINDING = new QName (NS_URI_JMS, Constants.ELEM_BINDING); 32 33 public static final String INITIAL_CONTEXT_FACTORY = "initialContextFactory"; 34 public static final String JNDI_PROVIDER_URL = "jndiProviderURL"; 35 public static final String DESTINATION_STYLE = "destinationStyle"; 36 public static final String JNDI_CONNECTION_FACTORY_NAME = "jndiConnectionFactoryName"; 37 public static final String JNDI_DESTINATION_NAME = "jndiDestinationName"; 38 public static final String JMS_PROVIDER_DESTINATION_NAME = "jmsProviderDestinationName"; 39 40 public static final String WSDL2_NS = "http://www.w3.org/2004/08/wsdl/"; 41 42 public static void register(ExtensionRegistry registry) { 43 registry.registerDeserializer( 44 javax.wsdl.Port.class, 45 Q_ELEM_JMS_ADDRESS, 46 new JmsAddressDeserializer()); 47 registry.mapExtensionTypes( 48 javax.wsdl.Port.class, 49 Q_ELEM_JMS_ADDRESS, 50 JmsAddress.class); 51 registry.registerDeserializer( 52 javax.wsdl.Binding.class, 53 Q_ELEM_JMS_BINDING, 54 new JmsBindingDeserializer()); 55 registry.mapExtensionTypes( 56 javax.wsdl.Binding.class, 57 Q_ELEM_JMS_BINDING, 58 JmsBinding.class); 59 } 60 61 } 62 | Popular Tags |