FileDocCategorySizeDatePackage
JMSAdminConstants.javaAPI DocGlassfish v2 API3644Fri May 04 22:33:32 BST 2007com.sun.enterprise.admin.common.constant

JMSAdminConstants

public final class JMSAdminConstants extends Object
Constants needed by the JMS administration handler.

Fields Summary
public static final String
JMS_OBJ_TYPE_TOPIC
public static final String
JMS_OBJ_TYPE_QUEUE
public static final String
JMS_OBJ_TYPE_QUEUE_CONN_FACTORY
public static final String
JMS_OBJ_TYPE_TOPIC_CONN_FACTORY
public static final String
JMS_DEST_TYPE_TOPIC
public static final String
JMS_DEST_TYPE_QUEUE
public static final String
JMS_HOST_RUNNING
Constructors Summary
Methods Summary
public static booleanisValidJMSDestType(java.lang.String destType)
Convenience method for checking if the JMS destination type specified is valid.

param
destType The destination type.
return
true if the destination type specified was valid. False if it is not valid.

	if ( (destType.equals(JMS_DEST_TYPE_TOPIC)) ||
	     (destType.equals(JMS_DEST_TYPE_QUEUE)) )
	{
	    return (true);
	}

	return (false);
    
public static booleanisValidJMSObjType(java.lang.String objType)
Convenience method for checking if the JMS object type specified is valid.

param
objType The JMS object type.
return
true if the object type specified was valid. False if it is not valid.


                       	     	           	      
        
    
	if ( (objType.equals(JMS_OBJ_TYPE_TOPIC)) ||
	     (objType.equals(JMS_OBJ_TYPE_QUEUE)) ||
	     (objType.equals(JMS_OBJ_TYPE_QUEUE_CONN_FACTORY)) ||
	     (objType.equals(JMS_OBJ_TYPE_TOPIC_CONN_FACTORY)) )
	{
	    return (true);
	}

	return (false);