more validation wrp to jndiConnectionFactoryName usage java_tasklist_89600_t2b_c
authorjdtran88@netbeans.org
Mon, 09 Apr 2007 22:49:39 +0000
changeset 2930698381b3437
parent 292 d9c5235e3325
child 294 e102c6be3e09
more validation wrp to jndiConnectionFactoryName usage
wsdlextensions.jms/src/org/netbeans/modules/wsdlextensions/jms/validator/Bundle.properties
wsdlextensions.jms/src/org/netbeans/modules/wsdlextensions/jms/validator/JMSComponentValidator.java
     1.1 --- a/wsdlextensions.jms/src/org/netbeans/modules/wsdlextensions/jms/validator/Bundle.properties	Mon Apr 09 22:34:24 2007 +0000
     1.2 +++ b/wsdlextensions.jms/src/org/netbeans/modules/wsdlextensions/jms/validator/Bundle.properties	Mon Apr 09 22:49:39 2007 +0000
     1.3 @@ -43,7 +43,8 @@
     1.4  JMSAddress.IMPROPER_USAGE_OF_JNDIENVENTRY=The JMS address (jms:address) contains {0} jndienventry child element(s) (jms:jndienventry), the jndienventry element must be a child element of a jndienv element (jms:jndienv)
     1.5  JMSAddress.MISSING_JNDIENV_ELEM_IN_JMS_ADDRESS=The JMS address (jms:address) contains a connectionURL ''{0}'' that specifies a JNDI based connection but no jndienv element is defined
     1.6  JMSAddress.MISSING_JNDIENVENTRY_ELEMS_IN_JMS_JNDIENV=The JMS address (jms:address) contains a connectionURL ''{0}'' that specifies a JNDI based connection but the jndienv element does not have any jndienventry child element(s) to specify the JNDI environment entry(ies) needed to create the JNDI initial context
     1.7 -JMSAddress.JNDIENV_ELEM_IN_JMS_ADDRESS_IGNORED=The JMS address (jms:address) contains a connectionURL ''{0}'' which is not a JNDI url but the jndienv element is used to specify the JNDI environment map, the information in jndienv will be ignored
     1.8 +JMSAddress.JNDIENV_ELEM_IN_JMS_ADDRESS_IGNORED=The JMS address (jms:address) contains a connectionURL ''{0}'' which is not a JNDI url, but the jndienv element is used to specify the JNDI environment map, the information in jndienv will be ignored
     1.9 +JMSAddress.JNDI_CF_NAME_IN_JMS_ADDRESS_IGNORED=The JMS address (jms:address) contains a connectionURL ''{0}'' which is not a JNDI url, but the jndiConnectionFactoryName attribute has the value ''{1}'', the jndiConnectionFactoryName attribute will be ignored
    1.10  JMSAddress.JNDI_CONNECTION_FACTORY_NAME_UNDEFINED=The JMS address (jms:address) is invalid : the connectionURL ''{0}'' specifies a JNDI URL, but the jndiConnectionFactoryName attribute is either undefined or is empty, a valid JNDI name for the JMS connection factory must be specified
    1.11  
    1.12  JMSOperation.EMPTY_DESTINATION_EMPTY=Binding operation ''{0}'' has an invalid JMS binding operation (jms:operation) : the value of the destination attribute is either undefined or is empty
     2.1 --- a/wsdlextensions.jms/src/org/netbeans/modules/wsdlextensions/jms/validator/JMSComponentValidator.java	Mon Apr 09 22:34:24 2007 +0000
     2.2 +++ b/wsdlextensions.jms/src/org/netbeans/modules/wsdlextensions/jms/validator/JMSComponentValidator.java	Mon Apr 09 22:49:39 2007 +0000
     2.3 @@ -482,6 +482,16 @@
     2.4                              }
     2.5                          }             
     2.6                          
     2.7 +
     2.8 +                        // warn if jndiConnectionFactoryName is used
     2.9 +                        if (target.getJndiConnectionFactoryName() != null) {
    2.10 +                            results.add(new Validator.ResultItem(this,
    2.11 +                                    Validator.ResultType.WARNING,
    2.12 +                                    target,
    2.13 +                                    getMessage("JMSAddress.JNDI_CF_NAME_IN_JMS_ADDRESS_IGNORED",
    2.14 +                                               new Object[] {aurl, target.getJndiConnectionFactoryName()})));
    2.15 +                        }
    2.16 +                        
    2.17                          // warn if jndienv is used
    2.18                          List <JMSJNDIEnv> jndienvs = target.getExtensibilityElements(JMSJNDIEnv.class);
    2.19                          if (jndienvs.size() > 0) {