This category contains 3 posts

Java JDK Environment Variables Configuration in Linux (Centos)

Environment Variables need to be configured PATH environment variable. Role is specified command search path, while executing a command in shell, it will go to the PATH variable to find the path specified to see if it could find the appropriate command. We need to add the bin folder under the JDK directory to the … Continue reading

java.sql.SQLRecoverableException: No more data to read from socket cause by connection pool running out

java.sql.SQLRecoverableException: No more data to read from socket caused by connection pool running out Issues Currently, in Oracle database server is built on more than one tablespace for different systems, both systems at the same time in the course of a project being developed in a test run, appeared from time to time the connection … Continue reading

JAVA connect to database through connection Pool – a better approach

JAVA connect to database through connection Pool – a better approach

Test JDBC Thin connection to Oracle RAC database (11gR2)

Test JDBC Thin connection to Oracle RAC database (11gR2) Set the classpath Oracle Client configuration testdb= (DESCRIPTION= (FAILOVER=ON)(LOAD_BALANCE=ON) (ADDRESS= (PROTOCOL=TCP) (HOST=testdb-cluster-scan.newzonetech.com) (PORT=1521) ) (CONNECT_DATA= (SERVER=dedicated) (SERVICE_NAME=testdboltp.newzonetech.com) ) ) testdb1= (DESCRIPTION= (FAILOVER=ON)(LOAD_BALANCE=ON) (ADDRESS= (PROTOCOL=TCP) (HOST=testdbt01.newzonetech.com) (PORT=1521) ) (CONNECT_DATA= (SERVER=dedicated) (SID=testdb1) ) ) Database Configuration JDBC Thin connection methods For single instance Oracle database, the connection string … Continue reading

public static void main(String args[]) – explanation

public static void main(String[] args) This is definitely not want to come out of thin air, nor dead provision does not make sense, but need java program execution. before jvm attempting to run a class, it has to check whether the class includes a special method. This method must be public, in order to obtain … Continue reading

Install Apache Tomcat on CentOS Linux

Install Apache Tomcat on CentOS Linux Download and install the Apache Tomcat for Linux For the Apache Tomcat Linux Installation, we want to download the Source Code Distributions version, in this case apache-tomcat-8.0.31.tar.gz Extract the Tomcat package to /usr/local/ Set the environment for Tomcat Add the follow content to the file .bash_profile Run the startup.sh … Continue reading

Install Apache Tomcat 8 on Windows 7

How to install the Apache Tomcat (Version 8) on Windows 7 (64bit) Install the Java SDK 7 (Or above) Download the Java SDK 7 from Oracle Website, open the JDK Installation program and click Next->Next>Next until the Installation is completed Download and Install the Apache Tomcat Download the Apache Tomcat from Apache website, I selected … Continue reading

Java Servlets

LoginServlet.java SearchStudentServlet.java SetCookies.java SetSessionServlet.java ShowCookies.java TestLifeCycleServlet.java UrlRewriteSession.java

JDBC Code with Oracle – Transaction

JDBC Code with Oracle – Delete