<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java Tutorial Java HowTo Java Basics Java Application Servers Jboss Tomcat Java Tips Java Tricks</title>
	<atom:link href="http://www.deknight.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.deknight.com</link>
	<description>Java Tutorial for beginners as well as advanced programmers Java sample programs Java web application JSP tutorial iBatis Java</description>
	<lastBuildDate>Mon, 02 Jan 2012 16:35:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>JEE architecture- What is Java Enterprise edition architecture ?</title>
		<link>http://www.deknight.com/java/jee-architecture-java-enterprise-edition-architecture.html</link>
		<comments>http://www.deknight.com/java/jee-architecture-java-enterprise-edition-architecture.html#comments</comments>
		<pubDate>Sun, 01 Jan 2012 16:39:29 +0000</pubDate>
		<dc:creator>jaisonpjohn</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.deknight.com/?p=39</guid>
		<description><![CDATA[     JEE (Java Enterprise Edition) follows the distributed multi-tiered application approach which means the entire application may not reside at a single location, but distributed. And the applications is divided into various tiers. J2ee application is composed of various components which can be created by the different developers and then assembled together. These components can [...]]]></description>
			<content:encoded><![CDATA[<p><strong>     JEE </strong>(Java Enterprise Edition) follows the distributed multi-tiered application approach which means the entire application may not reside at a single location, but distributed. And the applications is divided into various tiers. J2ee application is composed of various components which can be created by the different developers and then assembled together. These components can be installed on different machines across various tiers. And the distribution of application components across the solely different tiers depends upon the functionality it performs.</p>
<p><strong>JEE Architecture Diagrom</strong></p>
<p>J2EE application tiers are as follows</p>
<ul>
<li>Client Tier (Web Browser or any other kinds of clients)</li>
<li>Web tier</li>
<li>Business Tier</li>
<li>Enterprise Information tier (Database or sometimes XMLs or flatfiles)</li>
</ul>
<p><strong>Various JEE Components</strong></p>
<p>Components are self contained piece of software that are reusable across applications and are configurable external to the source code.<br />
J2EE components are of three types : client component, web component and business component. The client components interact with the user, the web components interact with the web browsers using the HTTP protocol, and the business components interact with the application server and execute the business logic.</p>
<div><strong>Client component of JEE architecture</strong></div>
<p>Client components is of two types : web client and application client.</p>
<ul>
<li>A web client, generally a browser, sends a request to the server and renders the webpage sent back by the server. However, it may not perform any complex tasks such as querying a database or performing any complicated business tasks and hence is also referred to as thin client. The complex tasks are performed on the server. For displaying web pages with applets, the web clients may require Java plug-ins and security policy files for executing the applets.</li>
<li>An application client is a standalone application that doesn’t run in browsers. It can access components in the business tier directly. Note that web clients that require access to a servlet running in the Web tier can open an HTTP connection with the servlet.</li>
</ul>
<div><strong>Web component of JEE architecture</strong></div>
<p>Web components for java are Servlets and JavaServer Pages (JSP). A servlet receives HTTP requests from the client, processes them, and returns the output. It can also generate dynamic responses. Similar to servlets, JSP also create dynamic web pages. JSP pages are converted into servlets and executed within a servlet container. They are used to display the results processed by a servlet.</p>
<div><strong>Business component of JEE architecture</strong></div>
<p>Business components implement the business logic or the functional process logic that defines the business rules and constraints. For example business process such as withdrawing amount from the bank. Business components are of three types : session beans, entity beans, and message-driven beans. Session beans represent a session with a client. Being a transient object, they lose their data on completion of the session. On the other hand, entity beans are persistent objects and so retain data even after the session. They represent a row of data in a database table. Message-driven beans are for receiving the receiving Java Message Service (JMS) messages asynchronously.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deknight.com/java/jee-architecture-java-enterprise-edition-architecture.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Garbage Collection or Memory DeAllocation in Java</title>
		<link>http://www.deknight.com/java/garbage-collection-memory-deallocation-in-java.html</link>
		<comments>http://www.deknight.com/java/garbage-collection-memory-deallocation-in-java.html#comments</comments>
		<pubDate>Fri, 09 Dec 2011 09:32:30 +0000</pubDate>
		<dc:creator>jaisonpjohn</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[garbage collection]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.deknight.com/?p=26</guid>
		<description><![CDATA[In Java, an object which is no longer referred by any reference variable will automatically be removed from the memory, this process is known as Garbage Collection. Garbage Collection is automatically done by Java Virtual Machine (JVM), the automatic Garbage Collection of Java de-allocates the dynamic memory when this memory is no more used by the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.deknight.com/wp-content/uploads/2011/12/Garbage-Collection-Memory-DeAllocation-in-Java.png"><img class="alignleft size-full wp-image-36" title="Garbage Collection Memory DeAllocation in Java" src="http://www.deknight.com/wp-content/uploads/2011/12/Garbage-Collection-Memory-DeAllocation-in-Java.png" alt="Garbage Collection Memory DeAllocation in Java" width="340" height="367" /></a></p>
<p>In Java, an object which is no longer referred by any reference variable will automatically be removed from the memory, this process is known as Garbage Collection. Garbage Collection is automatically done by Java Virtual Machine (JVM), the automatic Garbage Collection of Java de-allocates the dynamic memory when this memory is no more used by the program. Thus the Garabage collection feature of Java relieves the programmer from the overhead of memory de-allocation.(A major difficulty in dynamic memory allocation in C/C++ was that the programmer is responsible for de-allocating the dynamic memory at the right time. Even though experienced programmers can do this very well, beginners and average programmers often miss the statements for de-allocation which leads to memory-leak in many systems.)</p>
<p><strong>How Garbage collection in Java works</strong></p>
<p>If a reference variable is declared within a function, the reference is invalidated soon as the function call ends. Or programmer can explicitly set the reference variable to null to indicate that the referred object is no longer in use. And then Garbage collector will claim the memory allotted for that.</p>
<p><strong>Please note:</strong> Primitive data types are not objects and they cannot be assigned null.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deknight.com/java/garbage-collection-memory-deallocation-in-java.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What are JEE containers?</title>
		<link>http://www.deknight.com/java/java-jee-containers-what-are-jee-containers.html</link>
		<comments>http://www.deknight.com/java/java-jee-containers-what-are-jee-containers.html#comments</comments>
		<pubDate>Sat, 15 Oct 2011 19:12:15 +0000</pubDate>
		<dc:creator>jaisonpjohn</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JEE]]></category>

		<guid isPermaLink="false">http://www.deknight.com/?p=20</guid>
		<description><![CDATA[There are different kind of JEE containers. Take a look at the following JEE containers. Application client container Application client container is the one which is responsible for managing the application client components. Both application client and its container resides at the client machine and are executed on the client end. Example of application container is [...]]]></description>
			<content:encoded><![CDATA[<p>There are different kind of JEE containers. Take a look at the following JEE containers.</p>
<p><strong>Application client container</strong><br />
Application client container is the one which is responsible for managing the application client components. Both application client and its container resides at the client machine and are executed on the client end. Example of application container is JVM.</p>
<p><strong>Applet container</strong><br />
Applet container is the container to manage the execution of applets. Examples of an applet container include Web browser and applet viewer.</p>
<p><strong>Enterprise JavaBeans (EJB) container</strong><br />
Enterprise JavaBeans (EJB) container is used to manage the execution of EJB component of the J2EE application. Both the EJBs and its container run on the J2EE server. J2EE server provides the EJB container, and an example of J2EE server is WebLogic.</p>
<p><strong>Web container</strong><br />
Web container is used to manage the execution of the Servlets and the JSP. Both the Web components and its container run on the J2EE server. An example of a web container is Tomcat.</p>
<div><strong>Responsibilities of JEE containers</strong></div>
<ul>
<li>Life cycle Management- Creating and deleting components</li>
<li>Persistence- Saving information in the components</li>
<li>Naming- Recording the name of a server component and locating it for the client.</li>
<li>Deployment- Placing components in the server</li>
<li>Messaging- Exchanging information between components.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.deknight.com/java/java-jee-containers-what-are-jee-containers.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Difference between Class and object in Java?</title>
		<link>http://www.deknight.com/java/difference-between-class-and-object-in-java.html</link>
		<comments>http://www.deknight.com/java/difference-between-class-and-object-in-java.html#comments</comments>
		<pubDate>Sat, 15 Oct 2011 06:49:52 +0000</pubDate>
		<dc:creator>jaisonpjohn</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java Class]]></category>
		<category><![CDATA[Java Object]]></category>

		<guid isPermaLink="false">http://www.deknight.com/?p=4</guid>
		<description><![CDATA[&#160; Difference between Class and object in Java In Java,  Class is a blue print used to create objects. In other words, a Class is a template that defines the methods (Functions) and Members (variables) to be included in a particular kind of Object. Here, &#8220;Student&#8221; is a class. And &#8220;Jenna&#8221; is an object of the [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<div id="attachment_16" class="wp-caption alignnone" style="width: 590px"><a href="http://www.deknight.com/java/difference-between-class-and-object-in-java/attachment/java_object_class_difference-2/" rel="attachment wp-att-16"><img class="size-full wp-image-16" title="Java Object and Class Difference between Object and Class" src="http://www.deknight.com/wp-content/uploads/2011/10/java_object_class_difference.png" alt="Java Object and Class Difference between Object and Class" width="580" height="318" /></a><p class="wp-caption-text">Java Object and Class Difference</p></div>
<p><strong>Difference between Class and object in Java</strong></p>
<p>In Java,  Class is a blue print used to create objects. In other words, a Class is a template that defines the methods (Functions) and Members (variables) to be included in a particular kind of Object.</p>
<p>Here, &#8220;Student&#8221; is a class. And &#8220;Jenna&#8221; is an object of the class &#8220;Student&#8221;. And &#8220;John&#8221; is another object of the class &#8220;Student&#8221;. A Class is a template for an object, a user-defined datatype that contains the variables and methods in it.</p>
<p>A class defines the abstract characteristics of a thing (object), including its characteristics (its attributes, fields or properties) and the thing&#8217;s behaviors (the things it can do, or methods, operations or features). That is, Class is a blue print used to create objects. In other words, each object is an instance of a class. One class can have multiple number of instances. (There can be Number of instances of the class &#8220;Student&#8221;, like &#8220;Jenna&#8221;, &#8220;John&#8221; etc).</p>
<p>A class is a predefined frame of an object, in which its mentioning what all variables and methods an object (object of that class) can have.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deknight.com/java/difference-between-class-and-object-in-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

