Java Messaging Service opened the door for modeling the asynchronous mode of communication. It provides a common way of sending and receiving messages by having a middle man, also called as Message Broker or Message oriented Middleware. Now with the capability of an asynchronous framework like JMS being integrated with Spring, it can take all [...]
Archive | Java / J2EE RSS feed for this section
JDBC connection in JDeveloper with MySQL database
November 25, 2008
The Java Database Connectivity (JDBC) API is used to access a SQL database from a Java application. JDBC also supports tabular data sources, such as a spreadsheet. Oracle JDeveloper is a free Integrated Development Environment (IDE) for modeling, developing, debugging, optimizing, and deploying Java applications. JDeveloper 10g is used to develop J2EE applications comprising the JSPs, [...]
Pagination using Hibernate and JSP
October 3, 2008
If the result set is large, then having the entire result set in memory will not be feasible. With large result sets, you cannot afford to have them in memory. In such case, you have to fetch a chunk of data at a time (query based paging). The down side of using query based paging, [...]
Servlet 3.0
October 2, 2008
Can’t wait to see Servlet 3.0 in action. More details about the specification and the current status is available in its JSR homepage. The introduction of support for non-blocking I/O takes Java Servlets to a new level and this, in my opinion,is the most significant stride in Servlet specification since it was introduced. The benefits [...]
EJB Webservices in JBoss application server sample code
September 25, 2008
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 Employee Service.java ———————- package [...]
How to delete a cookie on server in a J2EE application
September 25, 2008
There is no direct method offered by servlet API to delete a cookie on server side. This is how you can go about doing it. 1) Loop through the cookies in the request object to locate the one that you want to delete. 1 2 3 4 5 for (Cookie cookie: request.getCookies()) { if (USER_COOKIE_NAME.equals(cookie.getName())) [...]
New Features in JSP 2.0
September 19, 2008
New Features in JSP 2.0 JSP 2.0 is released with new promises. JSP 2.0 is an upgrade to JSP 1.2 with several new and interesting features. These features makes the life of web application developers and designers easier. The JavaServer Pages 2.0 Specification is fully backwards compatible with version 1.2. JSP 2.0 allows the developer [...]
Servlet Life Cycle
August 1, 2008
Before start writing the servlet, it is important to know the life cylce of every servlet instance created. Read What is Servlet? tips to know about the servlet basics. Servlet Life Cycle Methods The following are the life cycle methods of a servlet instance: init() service() destroy() We will look into the each method in [...]
New Features in Servlet 3.0
July 31, 2008
Servlet 3.0 The next version for servlet technology is Servlet 3.0, which is planned to be released with JEE 6.0 in the last quarter of 2008. After the release of servlet 2.5 in spetember 2005, this is the new version with many new features included. Servlet 2.5 is released with JEE 5.0. Servlet 3.0 is [...]
What is servlet?
July 31, 2008
Java Servlets Java Servlet is the serverside Java programming language. We can say it as serverside applet. How applet is used for writing the client side code, servlet is used for writing the serverside programming language. Servlet programming is first created by Sun Microsystems in June 1997. The latest version is Servlet 2.5 which is [...]






December 16, 2008
8 Comments