 |
This article demonstrates how to write a simple Stateful Session Bean. It consists of three POJO's: Remote interface Cart.java, Bean class CartBean.java and EJB client CartClient.java.
Prerequisites
In order to complete the example application, you should be familiar with the following:
*...
By Sanskruti
Last Message By Sujata420
|
7 70,821 |
 |
Here, these two codes are used to shows the difference between normal MultiThreading and Synchronized Multithreading. Notice, see the difference in the starting and finishing of all the threads in both the code and try to find why every time when you run the program code, random thread starts...
By manish174
Last Message By Omkarkarne
|
3 5,279 |
 |
Introduction
As we already know the primitive data type char represents a character. A chain of characters is called a string. The capability to handle strings is an important feature of any programming language. In Java, each character in a string is a 16-bit Unicode character.Because Unicode...
By techgeek.in
Last Message By kcrislyn
|
2 4,311 |
 |
This article continues our exploration of the Abstract Window Toolkit (AWT). It examines the standard controls defined by Java. Controls are components that allow a user to interact with your application in various ways—for example; a commonly used control is the push button.
The AWT supports...
By techgeek.in
Last Message By vikash85
|
8 7,569 |
 |
Layout Managers
In the previous article I discussed about the various Controls in Java like Button, Checkbox, Lists, Scrollbars, Text Fields, and Text Area etc. All of these components have been positioned by the default layout manager. A layout manager automatically arranges the controls within...
By techgeek.in
Last Message By shabbir
|
1 9,072 |
 |
In this article I will discuss about window and some advanced components which can be added to our window such as Menu Bars and Menus.
Window Fundamentals
The AWT defines windows according to a class hierarchy that adds functionality and specificity with each level. The two most common...
By techgeek.in
Last Message By shabbir
|
2 3,839 |
 |
Introduction
The instances of the String class represent a string that cannot be modified. If we do want to create modifiable strings because we are going to do lots of string manipulation, we should use the java.lang.StringBuffer and java.lang.StringBuilder classes.If we choose to do a lot of...
By techgeek.in
Last Message By shabbir
|
2 6,074 |
 |
Introduction
Applets are event-driven programs. Event handling is at the core of successful applet programming. Most events to which an applet will respond are generated by the user. There are several types of events. The most commonly handled events are those generated by the mouse, the...
By techgeek.in
Last Message By shabbir
|
2 5,969 |
 |
Introduction
In the last article on servlet, we noted that HTTP is the protocol most-commonly used to communicate with web applications. Unfortunately, HTTP offers no mechanism for data to be retained between requests; in other words it can't track the activities of a user across requests.
...
By techgeek.in
Last Message By shabbir
|
1 6,029 |
 |
In the previous article we discussed three examples, each of which demonstrates how to track user sessions programmatically, using URL rewriting, cookies, and hidden form fields respectively. Each of these techniques required some unique string to be exchanged between the client and the server, so...
By techgeek.in
Last Message By shabbir
|
3 17,580 |
 |
In the previous two articles I discussed all essential features and methods of applet. Here I give some examples which would clear your concept about applets.
A Font List Example
This is an example of an applet that displays the standard fonts and styles.
import java.applet.*;
import...
By techgeek.in
Last Message By shabbir
|
1 7,070 |
 |
Some Examples are same from Java AWT Reference and is because when I did those in my college days referred many sources.
Introduction
Graphics in any language gives a wonderful look and feel to the users as well as programmers. Programmers draw figures, strings etc with the help of...
By techgeek.in
Last Message By shabbir
|
1 6,286 |
 |
In the previous article Basic Graphics In Java With Examples I explained the methods of graphics class available for drawing various types of figures. In this article I will carry forward the graphics class with the methods it provides to work with those figures, methods available for working with...
By techgeek.in
Last Message By shabbir
|
1 5,038 |
 |
Parts so far Java Event Handling (Part-1)
In the previous article I presented the basic concepts and ideas about Event handling in java. In this article I will discuss about mouse event handling.
Firstly let me familiarize you with the various mouse events.
MouseEvent Class
There are...
By techgeek.in
Last Message By shabbir
|
1 3,608 |
 |
So far
Java Event Handling (Part-1)
Java Event Handling (Part-2)
In this article I will discuss about the events generated by entering input through keyboard and when characters are entered in text fields and text areas.
The KeyEvent Class
A KeyEvent is generated when keyboard input...
By techgeek.in
Last Message By shabbir
|
1 3,873 |
 |
Introduction
This component is suitable to convert a well-formed html with/without inline CSS to a PDF file.
HTML to PDF Converter is a tool to convert HTML to PDF.
HTML to PDF Converter accurately transforms well-formed HTML with or without inline cascading style sheets into PDF...
By sameer_havakajoka
Last Message By Jeffmax
|
14 6,672 |
 |
JDBC Basics - Part I
DSN
In the first article we have discussed about Type 1 JDBC driver. In this article we will discuss about the practical configurations essential for the successful execution of the JDBC program. According to the previous article "sun.jdbc.odbc.JdbcOdbcDriver" is the...
By techgeek.in
Last Message By techgeek.in
|
3 5,528 |
 |
Servlets are server side components that provide a powerful mechanism for developing server side programs. Servlets provide component-based, platform-independent methods for building Web-based applications, without the performance limitations of CGI programs.
Using servlets web developers can...
By techgeek.in
Last Message By shabbir
|
1 5,992 |
 |
In Java, networking is performed using Transmission Control Protocol/Internet Protocol (TCP/IP) or the User Datagram Protocol (UDP).
Java provides a low-level control on the connection, allowing you to customize it according to your requirements. The package containing networking classes, called...
By techgeek.in
Last Message By shabbir
|
3 15,722 |
 |
What is an EJB?
An Enterprise JavaBean (EJB) is a reusable, portable J2EE component. EJBs consist of methods that encapsulate business logic. For example, an EJB may have business logic that contains a method to update customer data in a database. A variety of remote and local clients can invoke...
By Sanskruti
Last Message By satyedra pal
|
1 4,440 |