blob: 3fd23af78dd43e18f2f0b4b8a80f0f55c600b9fb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/*
* Created on Jan 30, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.eclipse.jst.j2ee.ejb.internal.util;
import java.util.HashMap;
/**
* @author vijayb
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class MDBActivationConfigModelUtil {
public static HashMap activationConfigMap;
public static final String ackModeKey = "acknowledgeMode"; //$NON-NLS-1$
public static final String destinationTypeKey = "destinationType";//$NON-NLS-1$
public static final String durabilityKey = "subscriptionDurability";//$NON-NLS-1$
public static final String messageSelectorKey = "messageSelector";//$NON-NLS-1$
public static final String[] ackModeValues = new String[] { "Auto-acknowledge", "Dups-ok-acknowledge" }; //$NON-NLS-1$ //$NON-NLS-2$
public static final String[] destinationTypeValues = new String[] { "javax.jms.Queue", "javax.jms.Topic" };//$NON-NLS-1$ //$NON-NLS-2$
public static final String[] durabilityValue = new String[] { "Durable", "NonDurable" };//$NON-NLS-1$ //$NON-NLS-2$
/**
*
*/
public MDBActivationConfigModelUtil() {
super();
// TODO Auto-generated constructor stub
}
public static HashMap createStandardActivationConfigMap() {
activationConfigMap = new HashMap();
activationConfigMap.put(ackModeKey, ackModeValues);
activationConfigMap.put(destinationTypeKey, destinationTypeValues);
activationConfigMap.put(durabilityKey, durabilityValue);
activationConfigMap.put(messageSelectorKey, ""); //$NON-NLS-1$
return activationConfigMap;
}
}