Skip to main content
summaryrefslogtreecommitdiffstats
blob: 6cf74f6560420b3ec48820e1edc51f5482df67ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*******************************************************************************
 * 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
 */
package org.eclipse.jst.j2ee.ejb.internal.util;

import java.util.HashMap;

/**
 * @author vijayb
 */
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();
    }
    
    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;
    }

}

Back to the top