http://docs.cs.uct.ac.za/jms_tutorial/doc/jms_tutorialTOC.html
Archive for the ‘Java’ Category
JMS
Posted in Java on February 12, 2009 | Leave a Comment »
java links
Posted in Java, tagged Java links on January 31, 2009 | Leave a Comment »
Installation Notes for java:
————————–
http://java.sun.com/j2se/1.3/install-windows.html#Environment – installation notes fro java.
threads:
——–
http://forum.java.sun.com/thread.jspa?threadID=597388&messageID=3500454
Comparator :
—————–
http://www.onjava.com/pub/a/onjava/2003/03/12/java_comp.html?page=2
Collection Framework:
———————-
http://www.digilife.be/quickreferences/PT/Java%20Collections%20Framework.pdf
http://java.sun.com/docs/books/tutorial/collections/index.html
Exceptions:
————-
http://marxsoftware.blogspot.com/2008/02/java-exceptions-checked-versus.html
http://www.onjava.com/pub/a/onjava/2003/11/19/exceptions.html
http://www.artima.com/designtechniques/desexcept4.html
Design Patterns:
——————
http://www.javacamp.org/designPattern/
http://www.allapplabs.com/java_design_patterns/ General
———
http://www.tech-faq.com/j2ee.shtml
http://www.roseindia.net/java/beginners/oop-in-java.shtml
http://javaquestion.tripod.com/InterviewWithAnswer.html
http://www.geekinterview.com/Interview-Questions/J2EE/Core-Java
www.roseindia.net
Question/Doubts :
—————–
http://www.sap-img.com/java/do-you-have-a-java-question.htm
jar, war and ear files
Posted in Java on December 4, 2008 | Leave a Comment »
jar files: These files are with the .jar extension. The .jar files contain
the libraries,
resources and accessories files like property files.
.war files: These files are with the .war extension. The war file contains
the web
application that can be deployed on the any servlet/jsp container. The .war
file contains
jsp, html, javascript and other files for necessary for the development [...]
Servlets
Posted in Servlet on November 27, 2008 | Leave a Comment »
Request forward from servlet to JSP/HTML :
http://www.java-tips.org/java-ee-tips/javaserver-pages/how-to-forward-requests-from-servlet-t.html
http://www.codestyle.org/java
http://www.codestyle.org/java/servlets/faq-API.shtml
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets9.html
servlet and jsp book – Head First – download
————————————————–
http://knowfree.net/2008/05/23/head-first-servlets-and-jsp-2nd-edition.kf – jsp & servlet headfirst
http://knowfree.net/2008/04/17/head-first-servlets-and-jsp-passing-the-sun-certified-web-component-developer-exam.kf
General:
———–
http://www.tech-faq.com/j2ee.shtml
Relative path and Absolute path
Posted in Java on November 27, 2008 | Leave a Comment »
http://forums.sun.com/thread.jspa?threadID=650087&messageID=3824146
Introduction about http
Posted in Servlet, tagged http, introduction about http on November 25, 2008 | Leave a Comment »
What does WebServer do:
A WebServer takes the clients request and gives something back to the client.
Server responds with the status code.
a. 404 – Not found error. – The server cannot find the thing what the client asked.
b. 200 – OK. Server successfully send the response to the client what it is expecting.
What does Web Client [...]
Servlet life cycle
Posted in Servlet on November 20, 2008 | Leave a Comment »
Servlet Life Cycle:
init()
service()
destroy()
§ container load the servlet class.
§ Container Instantiate servlet. It runs the constructor. The constructor is default one given by compiler.
§ Container calls the init() method after Servlet Instance is created. It will be called only once in servlet lifecycle, must complete before container call the service().
§ Then container call the service() method.
§ [...]
Web app Architecture
Posted in Servlet, tagged container on November 20, 2008 | Leave a Comment »
Container:
Container helps servlets.
It instantiate the servlet or make a thread to handle the request
It calls the servlet’s doGet() or doPost() method
It create HTTP request and response object to the servlet.
It manages the life cycle of servlet.
It finds the URL in DD to find the correct servlet for the request.
[...]
Singleton Design pattern in java – example
Posted in Java on November 3, 2008 | Leave a Comment »
class Singleton{
private static Singleton singletonObject;
private static int single;
/** A private Constructor prevents any other class from instantiating. */
private Singleton(){
// Optional Code
single++;
System.out.println(“Singleton Zero ARGS Constructor:”+single);
}
public static synchronized Singleton getSingletonObject()
{
if (singletonObject == null){
singletonObject = new Singleton();
}
return singletonObject;
}
public Object clone()throws CloneNotSupportedException
{
throw new CloneNotSupportedException();
}
}
public class SingletonObjectDemo {
public static void main(String args[]){
// Singleton obj = new Singleton(); Compilation error not [...]
JVM, JRE, JDK
Posted in Java on November 3, 2008 | Leave a Comment »
JVM is interpreter.
JVM is an instance of JRE comes into action when a java program is executed.
JVM + API JRE
JVM may use Just in time compiler for interpreting or uses set of JVM instructions set.
JIIT is the part of the JVM that is used to speed up the execution time. JIT compiles parts of [...]