Tag: jdbc

Java Essential Tips: How to set null value in Java JDBC PreparedStatement

This Java blog explains how to pass ‘null’ values to PreparedStatement. Passing ‘null’ to primitive data types is little tricky.

Permanent link to this article: https://blog.openshell.in/2012/03/java-essential-tips-how-to-set-null-value-in-java-jdbc-preparedstatement/

Configuring JNDI data source in Tomcat

By using Java Naming and Directory Interface (JNDI) service, one can connect resources of different technologies. A typical web application in Tomcat has a file called as context.xml in which the context path (root) of the web application is defined. Usually this file is located in META-INF directory of you web application (see figure 1). …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/11/configuring-jndi-data-source-in-tomcat/