This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Good article about Hibernate Caching(First-level cache vs Second-level cache) | |
http://www.javabeat.net/2007/10/introduction-to-hibernate-caching/ | |
http://blog.streamlinelogic.ca/2007/03/nhibernate-cache.html | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Refer some basic naming conventions while designing data base schema, | |
http://www.oracle-base.com/articles/misc/naming-conventions.php | |
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:6729304326802 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.satlabs.helper; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
public class DBConnectionHelper { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oracle RAC in 11g:- | |
Single Client Access Name (SCAN) | |
==================================== | |
JDBC clients to connect to Oracle SCAN should use jdbc url - jdbc:oracle:thin:@sales1-scan:1521/oltp instead of jdbc:oracle:thin:@sales1-scan:1521:oltp | |
Oracle SCAN documentation for Developer view:- | |
http://www.oracle.com/technetwork/products/clustering/overview/scan-129069.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you have REST service that wanted to return both JSON & XML type, then one way is to set media type in the REST HTTP request header in "Accept" field | |
Setting media type in HTTP header: | |
GET /books/123 | |
Accept: application/json (or application/xml) | |
Other way is to set the return type in URI extensions as, | |
GET /books/123.json - to return json format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fgrep -o SATHISH file.txt | wc -l | |
Here, SATHISH is the text to count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add below under <plugins></plugins> section in the pom file | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>maven-jetty-plugin</artifactId> | |
</plugin> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To print the html page content in the console, instead of creating in file, use | |
wget -qO- www.google.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enterprise Spring Best Practices | |
http://gordondickens.com/wordpress/2012/07/03/enterprise-spring-best-practices-part-1-project-config/ |
OlderNewer