This rule flags any usage of the javax.naming.InitialContext(Hashtable) constructor since it cannot always determine the runtime values in the Hashtable. When using the javax.naming.InitialContext(Hashtable) constructor, ensure that no proprietary JNDI property values are used. JBoss proprietary JNDI property values include:
If these JNDI property values are not used, then no additional action is necessary. If these JNDI property values are used then there are three possible manual solutions.
Use this option if there are no other JNDI properties are getting set. This option is valid for WebSphere Application Server traditional or Liberty.
Use this option if other JNDI properties are getting set. This option is valid for WebSphere Application Server traditional or Liberty.
If the literal string values for these JNDI property values are found in the same Java source file where the javax.naming.InitialContext(Hashtable) constructor is used, then use the Do not use JBoss-specific JNDI property values WebSphere Application Server traditional rule.