JMSExtension.java :  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » runtime » component » jms » wsdl » Java Open Source

Java Open Source » ESB » cbesb 1.2 
cbesb 1.2 » com » bostechcorp » cbesb » runtime » component » jms » wsdl » JMSExtension.java
/*
 * ChainBuilder ESB
 *     Visual Enterprise Integration
 * 
 * Copyright (C) 2006 Bostech Corporation
 * 
 * This program is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published by the 
 * Free Software Foundation; either version 2 of the License, or (at your option) 
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
 * for more details.
 * 
 * You should have received a copy of the GNU General Public License along with 
 * this program; if not, write to the Free Software Foundation, Inc., 
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 *
 * $Id: JMSExtension.java 1206 2006-09-23 03:51:32Z fling $
 */
package com.bostechcorp.cbesb.runtime.component.jms.wsdl;

import javax.wsdl.extensions.ExtensionRegistry;
import javax.xml.namespace.QName;

import com.ibm.wsdl.Constants;

public class JMSExtension {

  public static final String NS_URI_JMS = "http://cbesb.bostechcorp.com/wsdl/jms/1.0";

  public static final String ELEM_CONFIG = "config";
  
  public static final QName Q_ELEM_JMS_ADDRESS = new QName(NS_URI_JMS,
      ELEM_CONFIG);
  public static final QName Q_ELEM_JMS_BINDING = new QName(NS_URI_JMS,
      Constants.ELEM_BINDING);

  //public static final String WRITE_DIRECTORY_PATH = "writeDirectoryPath";
  public static final String DEFAULT_MEP = "defaultMep";
  public static final String DEFAULT_OPERATION = "defaultOperation";
  public static final String JNDI_INITIAL_CONTEXT_FACTORY = "jndiInitialContextFactory";
  public static final String JNDI_PROVIDER_URL = "jndiProviderUrl";
  public static final String JNDI_CONNECTION_FACTORY_NAME = "jndiConnectionFactoryName";
  public static final String DESTINATION_STYLE = "destinationStyle";
  public static final String TARGET_DESTINATION_NAME = "targetDestinationName";
  public static final String REPLY_DESTINATION_NAME = "replyDestinationName";
  public static final String AWAIT_TIMEOUT = "awaitTimeout";
  public static final String REPLY_TIMEOUT = "replyTimeout";
  public static final String RECORDS_PER_MESSAGE = "recordsPerMessage";
  public static final String READ_STYLE = "readStyle";
  public static final String RECORD_TYPE = "recordType";
  public static final String WRITE_STYLE = "writeStyle";
  public static final String CHARSET = "charset";
  public static final String WSDL2_NS = "http://www.w3.org/2004/08/wsdl/";
  
  //JMS 1.2
  public static final String TRANSACTION ="transaction";
  public static final String RETRY ="retry";
  public static final String RETRY_INTERVAL ="retryInterval";
  public static final String RETRY_COUNT ="retryCount";
  public static final String ENABLE_QUERY ="enableQuery";
  public static final String QUERY_EXPRESSION ="queryExpression";
  public static final String DLQ ="DLQ";
  public static final String SAVE_METADATA ="saveMetadata";

  //

  public static void register(ExtensionRegistry registry) {
    
    registry.registerDeserializer(javax.wsdl.Port.class,
        Q_ELEM_JMS_ADDRESS, new JMSAddressDeserializer());
    registry.mapExtensionTypes(javax.wsdl.Port.class, Q_ELEM_JMS_ADDRESS,
        JMSAddress.class);
    registry.registerDeserializer(javax.wsdl.Binding.class,
        Q_ELEM_JMS_BINDING, new JMSBindingDeserializer());
    registry.mapExtensionTypes(javax.wsdl.Binding.class,
        Q_ELEM_JMS_BINDING, JMSBinding.class);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.