1 23 24 package com.sun.enterprise.admin.common.constant; 25 26 29 public final class JMSAdminConstants 30 { 31 public static final String JMS_OBJ_TYPE_TOPIC = "topic"; 33 public static final String JMS_OBJ_TYPE_QUEUE = "queue"; 34 public static final String JMS_OBJ_TYPE_QUEUE_CONN_FACTORY = "qconfactory"; 35 public static final String JMS_OBJ_TYPE_TOPIC_CONN_FACTORY = "tconfactory"; 36 37 public static final String JMS_DEST_TYPE_TOPIC = "topic"; 39 public static final String JMS_DEST_TYPE_QUEUE = "queue"; 40 41 public static final String JMS_HOST_RUNNING = "RUNNING"; 43 44 51 public static boolean isValidJMSObjType(String objType) 52 { 53 if ( (objType.equals(JMS_OBJ_TYPE_TOPIC)) || 54 (objType.equals(JMS_OBJ_TYPE_QUEUE)) || 55 (objType.equals(JMS_OBJ_TYPE_QUEUE_CONN_FACTORY)) || 56 (objType.equals(JMS_OBJ_TYPE_TOPIC_CONN_FACTORY)) ) 57 { 58 return (true); 59 } 60 61 return (false); 62 } 63 64 72 public static boolean isValidJMSDestType(String destType) 73 { 74 if ( (destType.equals(JMS_DEST_TYPE_TOPIC)) || 75 (destType.equals(JMS_DEST_TYPE_QUEUE)) ) 76 { 77 return (true); 78 } 79 80 return (false); 81 } 82 } 83 | Popular Tags |