<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3694819702205617559</atom:id><lastBuildDate>Fri, 01 Nov 2024 10:34:15 +0000</lastBuildDate><category>Java EE or J2EE</category><category>Core Java</category><category>Java E-Books</category><category>SCJP and Interview Questions</category><category>News</category><category>Java IDEs</category><category>SCJP</category><category>AJAX</category><category>XML</category><category>JDBC</category><category>SCJD</category><title>JavaBastion</title><description>A place for Java Beginners and Java Developers.</description><link>http://javabastion.blogspot.com/</link><managingEditor>noreply@blogger.com (Shahid)</managingEditor><generator>Blogger</generator><openSearch:totalResults>55</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-2121996428607601694</guid><pubDate>Tue, 15 Apr 2008 12:19:00 +0000</pubDate><atom:updated>2008-04-15T17:56:52.657+05:30</atom:updated><title>Difference between a Web server and Application Server</title><description>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;u&gt;&lt;strong&gt;Difference between a &quot;Web server&quot; and &quot;Application Server&quot; &lt;/strong&gt;&lt;br /&gt;&lt;/u&gt;A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send or redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology. Whatever their purpose, such server-side programs generate a response, most often in HTML, for viewing in a Web browser.The web server simply passes the request to the program to handle it. The web server does not provides any functionality beyond providing an environment in which the server - side program can execute and pass back the generated responses. The server-side program usually provides such functions as transaction processing, database connectivity and messing .&lt;br /&gt;&lt;strong&gt;Application Server:&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt; &lt;/strong&gt;While an application server exposes business logic to client applications through various protocols like HTTP, TCP-IP etc. All the web servers mainly deals with sending HTML for displaying to a Web browser. An application server providers allows the client to access the business logic for use. The application server is used to run business logic or dynamically generating presentation code. A J2EE application server runs servlets and JSPs that are used to create HTML pages dynamically. In this case, J2EE application server can run EJBs – which are used to execute business logic. An application server is more capable of dynamic behaviour than webserver.&lt;/span&gt;&lt;/div&gt;</description><link>http://javabastion.blogspot.com/2008/04/difference-between-web-server-and.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>10</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-5938207372613894812</guid><pubDate>Tue, 15 Apr 2008 12:17:00 +0000</pubDate><atom:updated>2008-04-15T17:49:27.211+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>How to Run a Servlet?</title><description>&lt;div align=&quot;left&quot;&gt; &lt;strong&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;How to Run a Servlet?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;To run a servlet one should follow the steps illustrated below: &lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;Download and Install the tomcat server: Install the tomcat server in a directory in which you want to install and set the classpath.for the variable JAVA_HOME in the environment variable&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;Set the class for the jar file: Set the classpath of the servlet-api.jar file in the variable CLASSPATH inside the environment variable by using the following steps.For Windows XP, &lt;br /&gt;Go to Start-&gt;Control Panel-&gt;System-&gt;Advanced-&gt;Environment Variables-&gt;New button and Set the values asVariable Name:  CLASSPATH Variable Value:  C:\Program Files\Java\Tomcat 6.0\lib\servlet-api.jarFor Windows 2000 and NT&lt;br /&gt;Go to Start-&gt;Settings-&gt;Control Panel-&gt;System-&gt;Environment Variables-&gt;New button and Set the values asVariable Name:  CLASSPATH Variable Value:  C:\Program Files\Java\Tomcat 6.0\lib\servlet-api.jar&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;Create a java source file and a web.xml file in a &lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;directory structure&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;. &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Compile the java source file, put the compiled file (.class file) in the classes folder of your application and deploy the directory of your application in the webapps folder inside the tomcat directory.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Start the tomcat server, open a browser window and type the URL http://localhost:8080/directory (folder name of your application) name/servler name and press enter.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;If everything is correct your servlet will run.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;</description><link>http://javabastion.blogspot.com/2008/04/how-to-run-servlet.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-4441538183459972594</guid><pubDate>Tue, 15 Apr 2008 12:03:00 +0000</pubDate><atom:updated>2008-04-15T17:38:19.697+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>The Servlet Class Hierarchy</title><description>&lt;div align=&quot;center&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The Servlet Class Hierarchy&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The most basic servlet definitions live in the javax.servlet package and consist of a number of interfaces.&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The ServletContext interface provides a means for servlets to communicate with the surrounding Web server or application server. This communication can take the form of requests for system resources, reports written by the servlet to a log file, and so on. Indirectly, the ServletContext also allows servlets to communicate with one another, primarily by sending requests to other pages. This is how the jsp:forward and jsp:include tags are implemented, as will be seen shortly. ServletContext is implemented by people writing the Web or application server; servlet authors seldom need to use it directly and never need to extend it.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;The ServletConfig interface provides a mechanism for the web Server to pass initialization information to the servlet&#39;s init() method. This information takes the form of pairs of names and values, which are stored in a configuration file called web.xml. &lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;If a servlet is going to open a connection to a database, it would not make sense to hard-code the name of the driver class and the database URL in the servlet&#39;s code. Doing so would make the servlet more difficult to change if a new database were ever installed. Instead, this information could be sent to the servlet as parameters, and the servlet would use the ServletConfig to retrieve these values and act accordingly. Like ServletContext, this interface is implemented by the authors of the Web server.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The Servlet interface defines the three life-cycle methods—init(), service(), and destory()—as well as a handful of others.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The ServletRequest and ServletResponse interfaces encapsulate a request to the servlet and a response from the servlet, respectively. Objects that implement these interfaces will be passed to the servlet&#39;s service() method. Code within this method can then use the ServletRequest to determine information about the request, such as its origin, the exact data being requested, and so on. Similarly code in the service() method can then use the ServletResponse to return information about the response, as well as the data, such as an HTML page, that comprises the response itself.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The javax.servlet package also defines three other classes. Two are the ServletInputStream and ServletOutputStream classes, which servlets use to read and write data, respectively. The third class, GenericServlet, implements both the Servlet and ServletConfig interfaces and forms the basis for most real servlets.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;</description><link>http://javabastion.blogspot.com/2008/04/servlet-class-hierarchy.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-4953696077939745019</guid><pubDate>Wed, 19 Dec 2007 15:53:00 +0000</pubDate><atom:updated>2007-12-19T21:29:39.353+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>What are Java Server Pages?</title><description>&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;&lt;u&gt;JavaServer Pages (JSPs)&lt;/u&gt;&lt;br /&gt;&lt;/strong&gt;JavaServer Pages (JSPs) are based on the concept of server-side parsing. A JavaServer Page is an HTML page with Java statements embedded in it. The JSP specification defines certain special tags that can be embedded within the HTML page. In a normal working scenario, the JSP pages are parsed by a JSP compiler within the application server and converted into a Java servlet with the generated code embedded within the Java servlet as a set of Java statements. The generated Java servlet is then compiled as a normal servlet and loaded into the Java servlet container. The Java servlet is then used to process the user requests.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The JSP specification defines the following set of tags that can be used by application component providers:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;u&gt;Directive tag&lt;/u&gt;— A directive tag embedded in a JSP is used to issue directives to the JSP compiler that compiles the JSP.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;u&gt;Declaration tag&lt;/u&gt;— A declaration tag can be used by the application component provider to define variables or methods that need to be put outside the service() method of the final generated Java servlet.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;u&gt;Expression tag&lt;/u&gt;— In order to use Java values or variables directly in the JSP, you can use the expression tag.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;u&gt;Scriptlet tag&lt;/u&gt;— The scriptlet tag is the most important tag in the JSP specification because it enables the actual embedding of Java code within an HTML page. An application component provider can write entire processing routines within the scriptlet tags.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;u&gt;Custom tag&lt;/u&gt;— The final set of tags that the JavaServer Page specification defines is the embedding of custom tags. Because the JSP compiler cannot process these tags on its own, a special set of classes called the JSP tag library must be built by the application component provider to support the processing of the custom tags. &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;</description><link>http://javabastion.blogspot.com/2007/12/what-are-java-server-pages.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-8505629919822147117</guid><pubDate>Sun, 16 Dec 2007 10:00:00 +0000</pubDate><atom:updated>2007-12-16T15:33:09.046+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>Testing with JUnit</title><description>&lt;h3 style=&quot;font-family: arial;&quot; class=&quot;docSection1Title&quot;&gt;Testing with JUnit&lt;/h3&gt; &lt;p style=&quot;font-family: arial;&quot; class=&quot;docText&quot;&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2914&quot;&gt;&lt;/a&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2915&quot;&gt;&lt;/a&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2916&quot;&gt;&lt;/a&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2917&quot;&gt;&lt;/a&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2918&quot;&gt;&lt;/a&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2919&quot;&gt;&lt;/a&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2920&quot;&gt;&lt;/a&gt;JUnit is  an open source testing framework that comes with Eclipse and other IDEs. You can create  JUnit-based classes in the same project as other classes, and use this JUnit  code to test the other classes in your project. Using JUnit in this way, you can  construct a set of standard tests for everyone working on an application, and if  they change the application&#39;s code, all they&#39;ll need is a few clicks to verify  that the application still passes the standard set of tests.&lt;/p&gt; &lt;p style=&quot;font-family: arial;&quot; class=&quot;docText&quot;&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2921&quot;&gt;&lt;/a&gt;JUnit is designed to test  your code, and it&#39;s made up of assertion methods that can test various  conditions. Here they are:&lt;/p&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;eclipse-CHP-3-ITERM-2922&quot;&gt;&lt;/a&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;eclipse-CHP-3-ITERM-2923&quot;&gt;&lt;/a&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;eclipse-CHP-3-ITERM-2924&quot;&gt;&lt;/a&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;eclipse-CHP-3-ITERM-2925&quot;&gt;&lt;/a&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;eclipse-CHP-3-ITERM-2926&quot;&gt;&lt;/a&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;eclipse-CHP-3-ITERM-2927&quot;&gt;&lt;/a&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;eclipse-CHP-3-ITERM-2928&quot;&gt;&lt;/a&gt;&lt;a style=&quot;font-family: arial;&quot; name=&quot;eclipse-CHP-3-ITERM-2929&quot;&gt;&lt;/a&gt; &lt;dl style=&quot;font-family: arial;&quot; class=&quot;docList&quot;&gt;&lt;p&gt; &lt;/p&gt;&lt;dt&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docMonofont&quot;&gt;assertEquals(a, b)&lt;/span&gt;&lt;/span&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2922&quot;&gt;&lt;/a&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2923&quot;&gt;&lt;/a&gt; &lt;/span&gt;  &lt;/dt&gt;&lt;dd&gt; &lt;p class=&quot;docList&quot;&gt;Tests if a is equal to b (a and  b are either primitive values or must have an equals method  for comparison purposes)&lt;/p&gt;  &lt;/dd&gt;&lt;dt&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docMonofont&quot;&gt;assertFalse(a)&lt;/span&gt;&lt;/span&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2924&quot;&gt;&lt;/a&gt; &lt;/span&gt;  &lt;/dt&gt;&lt;dd&gt; &lt;p class=&quot;docList&quot;&gt;Tests if a is false, where a is a Boolean  value&lt;/p&gt;  &lt;/dd&gt;&lt;dt&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docMonofont&quot;&gt;assertNotNull(a)&lt;/span&gt;&lt;/span&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2925&quot;&gt;&lt;/a&gt; &lt;/span&gt;  &lt;/dt&gt;&lt;dd&gt; &lt;p class=&quot;docList&quot;&gt;Tests if a is not null, where a is  either an object or null&lt;/p&gt;  &lt;/dd&gt;&lt;dt&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docMonofont&quot;&gt;assertNotSame(a, b)&lt;/span&gt;&lt;/span&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2926&quot;&gt;&lt;/a&gt; &lt;/span&gt;  &lt;/dt&gt;&lt;dd&gt; &lt;p class=&quot;docList&quot;&gt;Tests if a and b both do not refer to the  identical object&lt;/p&gt;  &lt;/dd&gt;&lt;dt&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docMonofont&quot;&gt;assertNull(a)&lt;/span&gt;&lt;/span&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2927&quot;&gt;&lt;/a&gt; &lt;/span&gt;  &lt;/dt&gt;&lt;dd&gt; &lt;p class=&quot;docList&quot;&gt;Tests if a is null, where a is  either an object or null&lt;/p&gt;  &lt;/dd&gt;&lt;dt&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docMonofont&quot;&gt;assertSame(a, b)&lt;/span&gt;&lt;/span&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2928&quot;&gt;&lt;/a&gt; &lt;/span&gt;  &lt;/dt&gt;&lt;dd&gt; &lt;p class=&quot;docList&quot;&gt;Tests if a and b both refer to the identical  object&lt;/p&gt;  &lt;/dd&gt;&lt;dt&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docPubcolor&quot;&gt;&lt;span class=&quot;docMonofont&quot;&gt;assertTrue(a)&lt;/span&gt;&lt;/span&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2929&quot;&gt;&lt;/a&gt; &lt;/span&gt;  &lt;/dt&gt;&lt;dd&gt; &lt;p class=&quot;docList&quot;&gt;Tests if a is true, where a is a Boolean  value&lt;/p&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;p style=&quot;font-family: arial;&quot; class=&quot;docText&quot;&gt;&lt;a name=&quot;eclipse-CHP-3-ITERM-2930&quot;&gt;&lt;/a&gt;You construct JUnit tests  using these methods; when you run a JUnit application, it opens its own view to  give you an immediate indication of which tests have passed and which have  failed.&lt;/p&gt;</description><link>http://javabastion.blogspot.com/2007/12/testing-with-junit.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-5259099302783652059</guid><pubDate>Tue, 11 Dec 2007 08:22:00 +0000</pubDate><atom:updated>2007-12-11T13:55:30.415+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>What is Struts?</title><description>&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;What is Struts?&lt;br /&gt;&lt;/strong&gt;Struts Frame work is the implementation of Model-View-Controller (MVC) design pattern for the JSP. Struts is maintained as a part of Apache Jakarta project and is open source. Struts Framework is suited for the application of any size. Latest version of struts can be downloaded from &lt;/span&gt;&lt;a href=&quot;http://jakarta.apache.org/&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://jakarta.apache.org/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;. We are using jakarta-struts-1.1 and jakarta-tomcat-5.0.4 for this tutorial.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;What is Model-View-Controller (MVC) Architecture?&lt;br /&gt;&lt;/strong&gt;Model-View-Controller architecture is all about dividing application components into three different categories Model, View and the Controller. Components of the MVC architecture has unique responsibility and each component is independent of the other component. Changes in one component will have no or less impact on other component. Responsibilities of the components are:&lt;br /&gt;&lt;strong&gt;Model:&lt;/strong&gt; Model is responsible for providing the data from the &lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;database&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; and saving the data into the data store. All the business logic are implemented in the Model. Data entered by the user through View are check in the model before saving into the database. &lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Data access&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;, Data validation and the data saving logic are part of Model.&lt;br /&gt;&lt;strong&gt;View:&lt;/strong&gt; View represents the user view of the application and is responsible for taking the input from the user, dispatching the request to the controller and then receiving response from the controller and displaying the result to the user. HTML, &lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JSPs&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;, Custom Tag Libraries and Resources files are the part of view component.&lt;br /&gt;&lt;strong&gt;Controller:&lt;/strong&gt; Controller is intermediary between Model and View. Controller is responsible for receiving the request from client. Once request is received from client it executes the appropriate business logic from the Model and then produce the output to the user using the View component. ActionServlet, Action, ActionForm and struts-config.&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; are the part of Controller. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt;</description><link>http://javabastion.blogspot.com/2007/12/what-is-struts.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-7750265201708094828</guid><pubDate>Sat, 01 Dec 2007 05:02:00 +0000</pubDate><atom:updated>2007-12-01T10:39:59.578+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Core Java</category><category domain="http://www.blogger.com/atom/ns#">SCJP</category><title>Precedence and Associativity Rules for Operators in Java</title><description>&lt;strong&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Precedence and Associativity Rules for Operators&lt;/span&gt;&lt;/strong&gt;&lt;a name=&quot;idd1e14035&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14040&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14045&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Precedence and associativity rules are necessary for deterministic evaluation of expressions. &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The operators are shown with decreasing precedence from the top of the table.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Operators within the same row have the same precedence.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Parentheses, ( ), can be used to override precedence and associativity.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The unary operators, which require one operand, include the postfix increment (++) and decrement (--) operators from the first row, all the prefix operators (+, -, ++, --, ~, !) in the second row, and the prefix operators (object creation operator new, cast operator (type)) in the third row.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a name=&quot;idd1e14128&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14133&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The conditional operator (? :) is ternary, that is, requires three operands.&lt;/span&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14148&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a name=&quot;idd1e14133&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;All operators not listed above as unary or ternary, are binary, that is, require two operands.&lt;/span&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14160&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a name=&quot;idd1e14133&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;All binary operators, except for the relational and assignment operators, associate from left to right. The relational operators are nonassociative.&lt;/span&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14169&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14174&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a name=&quot;idd1e14133&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Except for unary postfix increment and decrement operators, all unary operators, all assignment operators, and the ternary conditional operator associate from right to left.&lt;/span&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14181&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14186&quot;&gt;&lt;/a&gt;&lt;a name=&quot;idd1e14191&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Precedence rules are used to determine which operator should be applied first if there are two operators with different precedence, and these follow each other in the expression. In such a case, the operator with the highest precedence is applied first.&lt;/span&gt;&lt;a name=&quot;idd1e14418&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;2 + 3 * 4 is evaluated as 2 + (3 * 4) (with the result 14) since * has higher precedence than +.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Associativity rules are used to determine which operator should be applied first if there are two operators with the same precedence, and these follow each other in the expression.&lt;br /&gt;Left associativity implies grouping from left to right, Right associativity implies grouping from right to left.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt; &lt;/p&gt;</description><link>http://javabastion.blogspot.com/2007/12/precedence-and-associativity-rules-for.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-4773059255787382758</guid><pubDate>Fri, 30 Nov 2007 05:49:00 +0000</pubDate><atom:updated>2007-11-30T11:23:53.543+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SCJP</category><title>Java Language Specification</title><description>&lt;strong&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;u&gt;Java Language Specification (Second Edition)&lt;/u&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Introduction&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;51863&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The Java programming language is a general-purpose, concurrent, class-based, object-oriented language. It is designed to be simple enough that many programmers can achieve fluency in the language. The Java programming language is related to C and C++ but is organized rather differently, with a number of aspects of C and C++ omitted and a few ideas from other languages included. It is intended to be a production language, not a research language, and so, as C. A. R. Hoare suggested in his classic paper on language design, the design has avoided including new and untested features.&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;51872&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The Java programming language is strongly typed. This specification clearly distinguishes between the compile-time errors that can and must be detected at compile time, and those that occur at run time. Compile time normally consists of translating programs into a machine-independent byte code representation. Run-time activities include loading and linking of the classes needed to execute a program, optional machine code generation and dynamic optimization of the program, and actual program execution.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Read the complete book (Java Language Specification second edition) here:&lt;/strong&gt;&lt;/span&gt;&lt;a href=&quot;http://java.sun.com/docs/books/jls/second_edition/html/jTOC.doc.html&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;http://java.sun.com/docs/books/jls/second_edition/html/jTOC.doc.html&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;</description><link>http://javabastion.blogspot.com/2007/11/java-language-specification.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-2416230080816075549</guid><pubDate>Tue, 27 Nov 2007 16:58:00 +0000</pubDate><atom:updated>2007-11-27T22:44:41.688+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>Rich Internet Applications (RIAs)</title><description>&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Rich Internet Applications (RIAs)&lt;/strong&gt; are web applications that offer the responsiveness, “rich” features and functionality approaching that of desktop applications. Early Internet applications supported only a basic HTML &lt;/span&gt;&lt;a id=&quot;Xaa1055194&quot; name=&quot;Xaa1055194&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;graphical user interface (GUI). Though they could serve simple functions, these applications did not have the look or feel of a desktop application. The relatively slow Internet connections these applications relied on led to the term &lt;/span&gt;&lt;a id=&quot;Xaa1055195&quot; name=&quot;Xaa1055195&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;“World Wide Wait.” RIAs are a result of today’s more advanced technologies that allow greater responsiveness and advanced GUIs.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Technologies used to develop Rich Client Applications are:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Ajax&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Dojo&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Flex&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Silverlight&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Java FX&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Ruby on Rails&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Script.aculo.us&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaServer Faces&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;ASP.NET Ajax&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Adobe Integrated Runtime and Google Gears&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Refer these links for more details on above technologies&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;“History.” The Dojo Toolkit, 10 April 2007 &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://dojotoolkit.org/book/dojo-book-0-9/introduction/history&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://dojotoolkit.org/book/dojo-book-0-9/introduction/history&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn2&quot; name=&quot;ftn2&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;“Adobe Flex 2.” Adobe &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://www.adobe.com/products/flex/whitepapers/pdfs/flex2wp_technicaloverview.pdf&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://www.adobe.com/products/flex/whitepapers/pdfs/flex2wp_technicaloverview.pdf&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn3&quot; name=&quot;ftn3&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Cubrilovic, N. “Silverlight: The Web Just Got Richer.” TechCrunch, 30 April 2007 &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://www.techcrunch.com/2007/04/30/silverlight-the-web-just-got-richer&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://www.techcrunch.com/2007/04/30/silverlight-the-web-just-got-richer&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn4&quot; name=&quot;ftn4&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;“Sun Radically Simplifies Content Authoring—Previews JavaFX Script.” Sun Microsystems, 8 May 2007 &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://www.sun.com/aboutsun/pr/2007-05/sunflash.20070508.2.xml&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://www.sun.com/aboutsun/pr/2007-05/sunflash.20070508.2.xml&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn5&quot; name=&quot;ftn5&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;“Prototype Tips and Tutorials.” Prototype JavaScript &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://prototypejs.org/learn&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://prototypejs.org/learn&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn6&quot; name=&quot;ftn6&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;“Core Effects.” Script.aculo.us Wiki &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://wiki.script.aculo.us/scriptaculous/show/CoreEffects&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://wiki.script.aculo.us/scriptaculous/show/CoreEffects&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn7&quot; name=&quot;ftn7&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Berlind, D. “Google Gears Vies to be De Facto Tech for Offline Web Apps.” ZDNet, 31 May 2007 &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://blogs.zdnet.com/Berlind/?p=504&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://blogs.zdnet.com/Berlind/?p=504&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn8&quot; name=&quot;ftn8&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Mills, E. “Google Gears Churns Toward Microsoft.” CNET, 31 May 2007 &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://news.com.com/2100-1012_3-6187942.html&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://news.com.com/2100-1012_3-6187942.html&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn9&quot; name=&quot;ftn9&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;“The 70 Percent Solution.” Business 2.0, 28 November 2005 &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://money.cnn.com/2005/11/28/news/newsmakers/schmidt_biz20_1205/&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://money.cnn.com/2005/11/28/news/newsmakers/schmidt_biz20_1205/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;a id=&quot;ftn10&quot; name=&quot;ftn10&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;“The Dojo Offline Toolkit.” The Dojo Toolkit &lt;&lt;/span&gt;&lt;a class=&quot;footnote&quot; href=&quot;http://dojotoolkit.org/offline&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://dojotoolkit.org/offline&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&gt;.&lt;/span&gt; &lt;/p&gt;</description><link>http://javabastion.blogspot.com/2007/11/rich-internet-applications-rias.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-3445094076661135942</guid><pubDate>Mon, 26 Nov 2007 17:11:00 +0000</pubDate><atom:updated>2007-11-26T22:52:49.078+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Core Java</category><title>What is in java.lang package?</title><description>&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;&lt;u&gt;The lang package&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The java.lang package provides classes that are fundamental to the Java programming language. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;java.lang is automatically imported in all programs. It is java&#39;s most widely used package.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;java.lang package provides 29 classes and three interfaces. Due to its importance, the java.lang package is provided with all Java platforms ranging from Embedded Java to the JDK.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Interfaces in java.lang &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The java.lang package contains three interfaces namely&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Cloneable     &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Comparable&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Runnable&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Cloneable&lt;/strong&gt; : A class implements Cloneable to indicate the Object.clone() method that it is authorized to make a copy of instances of that class.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The exception CloneNotSupportedException will be thrown if the user clones instances, which do not implement the Cloneable interface. The interface Cloneable declares no methods.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Comparable&lt;/strong&gt; : Java 2 adds a new interface to java.lang called Comparable. Classes that implement Comparable interface contain objects that can be compared with each other.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The comparable method declares only one method. The syntax is:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;int compareTo(Object obj)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;this method compares the invoking object with &#39;obj&#39;. It returns 0 if the values are equal.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Runnable&lt;/strong&gt; : Any class that initiates a separate thread of execution must implement the Runnable interface.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Runnable defines only one abstract method, called run(), which is the entry point to the thread. Threads that are created by the user must implement abstract void run() method.&lt;/span&gt;&lt;/p&gt;</description><link>http://javabastion.blogspot.com/2007/11/what-is-in-javalang-package.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-5960611140384482514</guid><pubDate>Sat, 17 Nov 2007 04:48:00 +0000</pubDate><atom:updated>2007-11-17T10:32:47.849+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java E-Books</category><title>XML, XSLT, Java, and JSP: A Case Study in Developing a Web Application</title><description>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-family: trebuchet ms;font-size:100%;&quot; &gt;XML, XSLT, Java,  and JSP: A Case Study in Developing a Web Application&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKO-Hz-qIerCKHfn0MKVTo7kbBKmCP_AQAiaF3nLKCIvsw_Zg2i4_1Fnk7rLPYiABUJvmhyQ3i48s95R2enPZX52dENhQS1oeO-pBNrvT_-ZKVG7XJ5hVokgKiRkJlU9EMxCyUyi4AWxV4/s1600-h/xml-xslt-java-and-jsp-a-case-study-in-developing-a-web-application.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKO-Hz-qIerCKHfn0MKVTo7kbBKmCP_AQAiaF3nLKCIvsw_Zg2i4_1Fnk7rLPYiABUJvmhyQ3i48s95R2enPZX52dENhQS1oeO-pBNrvT_-ZKVG7XJ5hVokgKiRkJlU9EMxCyUyi4AWxV4/s320/xml-xslt-java-and-jsp-a-case-study-in-developing-a-web-application.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5133669681976586578&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: verdana;font-size:85%;&quot; &gt;&lt;strong&gt;XML, XSLT, Java, and JSP: A Case Study in Developing a  Web Application&lt;/strong&gt;&lt;/span&gt; &lt;p style=&quot;font-family: trebuchet ms;&quot; align=&quot;center&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Publisher:New Riders Press (2001-07-19) | ISBN-10: 0735710899 |  PDF | 4.3 Mb | 768 pages&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;font-family: trebuchet ms;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;As a Web Developer, you know the challenge of building robust applications on  multiple platforms. Creating truly portable applications becomes possible by  using Java for code and XML for organizing and managing data. “XML, XSLT, Java,  and JSP:A Case Study” will help you maximize the capabilities of XML, XSLT,  Java, and JSP in your Web applications.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: trebuchet ms;&quot; id=&quot;more-1586&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center; font-weight: bold; font-family: trebuchet ms;&quot;&gt;&lt;a href=&quot;http://uploadphiles.com/index.php?page=main&amp;amp;id=fd439914&amp;amp;name=New%20Riders%20-%20XML,%20XSLT,%20Java,%20and%20JSP%20-%20A%20Case%20Study%20in%20Deve.rar&quot;&gt;Download&lt;/a&gt;&lt;/div&gt;</description><link>http://javabastion.blogspot.com/2007/11/xml-xslt-java-and-jsp-case-study-in.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKO-Hz-qIerCKHfn0MKVTo7kbBKmCP_AQAiaF3nLKCIvsw_Zg2i4_1Fnk7rLPYiABUJvmhyQ3i48s95R2enPZX52dENhQS1oeO-pBNrvT_-ZKVG7XJ5hVokgKiRkJlU9EMxCyUyi4AWxV4/s72-c/xml-xslt-java-and-jsp-a-case-study-in-developing-a-web-application.jpg" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-9154065336382483705</guid><pubDate>Mon, 12 Nov 2007 14:27:00 +0000</pubDate><atom:updated>2007-11-12T20:02:22.639+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java E-Books</category><category domain="http://www.blogger.com/atom/ns#">SCJP</category><title>Fast Track to Sun Certified Java Programmer (SCJP) 5.0 Upgrade Exam</title><description>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-weight: bold; font-family: trebuchet ms;font-size:100%;&quot; &gt;Fast Track to Sun Certified Java Programmer (SCJP) 5.0 Upgrade Exam&lt;/span&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3jpnnVJn3HsectgXQyuVFjRRnn1gM51bGYFjubpw-gubkvmo1Ui6zXZ1XFz0EXIZm6yW2DKiDFZXRNCCoGkUjLWNzLlCWZ0w3vcI3BriipFuHa-xqLE89LkDvt69uRT7xYIyEnxauw4D2/s1600-h/fast-track-to-sun-certified-java-programmer-scjp-50-upgrade-exam.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3jpnnVJn3HsectgXQyuVFjRRnn1gM51bGYFjubpw-gubkvmo1Ui6zXZ1XFz0EXIZm6yW2DKiDFZXRNCCoGkUjLWNzLlCWZ0w3vcI3BriipFuHa-xqLE89LkDvt69uRT7xYIyEnxauw4D2/s320/fast-track-to-sun-certified-java-programmer-scjp-50-upgrade-exam.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5131961320206508706&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;strong&gt;Ka, Iok Tong, “Fast Track to Sun Certified Java Programmer (SCJP) 5.0 Upgrade Exam”&lt;/strong&gt;&lt;br /&gt;&lt;p style=&quot;font-family: trebuchet ms;&quot; align=&quot;center&quot;&gt; ISBN:143030393X | November 30, 2006 | 152 pages | PDF | 0.5MB&lt;/p&gt; &lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;If you’d like to learn the new features in Java SE 5.0 and pass the Sun Certified Java Programmer Upgrade Exam (CX-310-056), then this book is for you. It covers all the Java SE 5.0 new features required in the exam. You don’t need to read about the existing features that you already know. 117 review questions and mock exam questions are included.&lt;/span&gt;&lt;/div&gt; &lt;!-- AddThis Bookmark Button END --&gt;  &lt;div style=&quot;text-align: center; font-family: trebuchet ms;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;a href=&quot;http://uploadphiles.com/index.php?page=main&amp;amp;id=1be66925&amp;amp;name=Fast.Track.rar&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;/strong&gt;&lt;/div&gt;</description><link>http://javabastion.blogspot.com/2007/11/fast-track-to-sun-certified-java.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3jpnnVJn3HsectgXQyuVFjRRnn1gM51bGYFjubpw-gubkvmo1Ui6zXZ1XFz0EXIZm6yW2DKiDFZXRNCCoGkUjLWNzLlCWZ0w3vcI3BriipFuHa-xqLE89LkDvt69uRT7xYIyEnxauw4D2/s72-c/fast-track-to-sun-certified-java-programmer-scjp-50-upgrade-exam.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-3660235474887470726</guid><pubDate>Mon, 12 Nov 2007 14:16:00 +0000</pubDate><atom:updated>2007-11-12T19:56:48.911+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java E-Books</category><category domain="http://www.blogger.com/atom/ns#">SCJP and Interview Questions</category><title>Java/J2EE Job Interview Companion - 400+ Questions &amp; Answers, 2nd Edition</title><description>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: trebuchet ms; font-weight: bold;font-size:100%;&quot; &gt;Java/J2EE Job Interview Companion - 400+ Questions &amp;amp; Answers, 2nd Edition&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbf_vIv_CPpM04aoSUTaTYAF6XCeQBUdg-Qy4UGsyjf1cCX56v6VYZL9PF3RLgMWGYDY3Plp5nMM_sNXaTMLKonsXfKbTLKVYy2fFvDx1uZTwKMPWoVD3opnOYgB-9ihk-H6hN8jqOe8AX/s1600-h/javaj2ee-job-interview-companion-400-questions-answers-2nd-edition.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 236px; height: 236px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbf_vIv_CPpM04aoSUTaTYAF6XCeQBUdg-Qy4UGsyjf1cCX56v6VYZL9PF3RLgMWGYDY3Plp5nMM_sNXaTMLKonsXfKbTLKVYy2fFvDx1uZTwKMPWoVD3opnOYgB-9ihk-H6hN8jqOe8AX/s320/javaj2ee-job-interview-companion-400-questions-answers-2nd-edition.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5131959718183707282&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;strong style=&quot;font-family: trebuchet ms;&quot;&gt;Arulkumaran Kumaraswamipillai, Sivayini Arulkumaran, “Java/J2EE Job Interview Companion - 400+ Questions &amp;amp; Answers”&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt; ISBN:1411668243 | April 5, 2007 | 356 pages | PDF | 3.5MB&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;!-- AddThis Bookmark Button END --&gt;  &lt;div style=&quot;text-align: center;&quot;&gt;&lt;strong style=&quot;font-family: trebuchet ms;&quot;&gt;&lt;a href=&quot;http://uploadphiles.com/index.php?page=main&amp;amp;id=d8175918&amp;amp;name=Java.J2EE.Job.Interview.Companion.rar&quot;&gt;DOWNLOAD&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://javabastion.blogspot.com/2007/11/javaj2ee-job-interview-companion-400.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbf_vIv_CPpM04aoSUTaTYAF6XCeQBUdg-Qy4UGsyjf1cCX56v6VYZL9PF3RLgMWGYDY3Plp5nMM_sNXaTMLKonsXfKbTLKVYy2fFvDx1uZTwKMPWoVD3opnOYgB-9ihk-H6hN8jqOe8AX/s72-c/javaj2ee-job-interview-companion-400-questions-answers-2nd-edition.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-1210008583424221249</guid><pubDate>Sun, 11 Nov 2007 12:30:00 +0000</pubDate><atom:updated>2007-11-11T18:05:20.568+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java E-Books</category><title>Java All-In-One Desk Reference For Dummies 2nd Edition</title><description>&lt;div align=&quot;center&quot;&gt;&lt;a href=&quot;http://vmagz.com/freebooks/?p=1871&quot; rel=&quot;bookmark&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Java All-In-One Desk Reference For Dummies 2nd Edition&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAcy4LH0afEbNkt4WAPXgymSO-MpnLYIc4Q2Y5TJXnRl8FeAdMX-En5lGkEfm2F0JmWpKGYVnETWHKdzro7rVUs44CkD4VvVyWrsR2yyQh1grfs3Wsx6PCgpgvj29iXPfMngldOrrCapFL/s1600-h/java-all-in-one-desk-reference-for-dummies-2nd-edition.jpg&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5131559680634790530&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAcy4LH0afEbNkt4WAPXgymSO-MpnLYIc4Q2Y5TJXnRl8FeAdMX-En5lGkEfm2F0JmWpKGYVnETWHKdzro7rVUs44CkD4VvVyWrsR2yyQh1grfs3Wsx6PCgpgvj29iXPfMngldOrrCapFL/s320/java-all-in-one-desk-reference-for-dummies-2nd-edition.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Publisher: For Dummies  ISBN: 0470124512  2nd Edition  Author: Doug Lowe, Barry Burd  914 pages  June 25, 2007  English  CHM  12.3 MB&lt;br /&gt;- Eight minibooks comprising nearly 900 pages give developers the tips and techniques they need to get up and running on the new J2SE 6 (Java Standard Edition 6) and JDK 6 (Java Development Kit 6)- This friendly, all-inclusive reference delivers the lowdown on Java language and syntax fundamentals as well as Java server-side programming, with explanations, reference information, and how-to instructions for both beginning and intermediate-to-advanced programmers- Minibooks cover Java basics; programming basics; strings, arrays, and collections; programming techniques; Swing; Web programming; files and databases; and fun and games&lt;/span&gt;&lt;a id=&quot;more-1871&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://vmagz.com/freebooks/?p=1871&quot; rel=&quot;bookmark&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;strong&gt; &lt;/strong&gt;&lt;a href=&quot;http://uploadphiles.com/index.php?page=main&amp;amp;id=2696b1043&amp;amp;name=For.Dummies.Java.All.In.One.Desk.Reference.For.Dummies.2nd.Edition.Jun.2007.rar&quot;&gt;&lt;strong&gt;DOWNLOAD&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;/p&gt;</description><link>http://javabastion.blogspot.com/2007/11/java-all-in-one-desk-reference-for.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAcy4LH0afEbNkt4WAPXgymSO-MpnLYIc4Q2Y5TJXnRl8FeAdMX-En5lGkEfm2F0JmWpKGYVnETWHKdzro7rVUs44CkD4VvVyWrsR2yyQh1grfs3Wsx6PCgpgvj29iXPfMngldOrrCapFL/s72-c/java-all-in-one-desk-reference-for-dummies-2nd-edition.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-1744139367616171761</guid><pubDate>Fri, 09 Nov 2007 12:01:00 +0000</pubDate><atom:updated>2007-11-09T17:35:38.554+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><category domain="http://www.blogger.com/atom/ns#">XML</category><title>An Overview of the Java APIs for XML</title><description>&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;An Overview of the APIs&lt;br /&gt;&lt;/strong&gt;This page gives you a map so you can find your way around JAXP and the associated XML APIs. The first step is to understand where JAXP fits in with respect to the major Java APIs for XML:&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;JAXP: Java API for XML Processing&lt;/strong&gt;&lt;br /&gt;This API is the subject of the present tutorial. It provides a common interface for creating and using the standard SAX, DOM, and XSLT APIs in Java, regardless of which vendor&#39;s implementation is actually being used..&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;JAXB: Java Architecture for XML Binding&lt;/strong&gt;&lt;br /&gt;This standard defines a mechanism for writing out Java objects as XML (marshalling) and for creating Java objects from such structures (unmarshalling). (You compile a class description to create the Java classes, and use those classes in your application.)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;strong&gt;JDOM: Java DOM&lt;/strong&gt;&lt;br /&gt;The standard DOM is a very simple data structure that intermixes text nodes, element nodes, processing instruction nodes, CDATA nodes, entity references, and several other kinds of nodes. That makes it difficult to work with in practice, because you are always sifting through collections of nodes, discarding the ones you don&#39;t need into order to process the ones you are interested in. JDOM, on the other hand, creates a tree of objects from an XML structure. The resulting tree is much easier to use, and it can be created from an XML structure without a compilation step. For more information on JDOM, visit &lt;a href=&quot;http://www.jdom.org/&quot;&gt;http://www.jdom.org&lt;/a&gt;. For information on the Java Community Process (JCP) standards effort for JDOM, see &lt;a href=&quot;http://java.sun.com/aboutJava/communityprocess/jsr/jsr_102_jdom.html&quot;&gt;JSR 102&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;strong&gt;DOM4J&lt;/strong&gt;&lt;br /&gt;Although it is not on the JCP standards track, DOM4J is an open-source, object-oriented alternative to DOM that is in many ways ahead of JDOM in terms of implemented features. As such, it represents an excellent alternative for Java developers who need to manipulate XML-based data. For more information on DOM4J, see &lt;a href=&quot;http://www.dom4j.org/&quot;&gt;http://www.dom4j.org&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;JAXM: Java API for XML Messaging&lt;/strong&gt;&lt;br /&gt;The JAXM API defines a mechanism for exchanging asynchronous XML-based messages between applications. (&quot;Asynchronous&quot; means &quot;send it and forget it&quot;.)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;JAX-RPC: Java API for XML-based Remote Process Communications&lt;/strong&gt;&lt;br /&gt;The JAX-RPC API defines a mechanism for exchanging synchronous XML-based messages between applications. (&quot;Synchronous&quot; means &quot;send a message and wait for the reply&quot;.)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;JAXR: Java API for XML Registries&lt;/strong&gt;&lt;br /&gt;The JAXR API provides a mechanism for publishing available services in an external registry, and for consulting the registry to find those services. &lt;/span&gt;</description><link>http://javabastion.blogspot.com/2007/11/overview-of-java-apis-for-xml.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-2286548958322768939</guid><pubDate>Fri, 09 Nov 2007 04:41:00 +0000</pubDate><atom:updated>2007-11-09T10:16:38.993+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SCJP</category><title>Mock SCJP Exam</title><description>&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Hello visitors, &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Here is a mock exam for all those preparing for SCJP certification. Just click on the below link and start testing your skills. These questions are from The complete Java 2 Certification guide. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Use the following URL to access the page and test your Java skills before going for the SCJP examination.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://web.archive.org/web/20000510040645/http://developer.java.sun.com/developer/Books/certification/testyourself.html&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;http://web.archive.org/web/20000510040645/http://developer.java.sun.com/developer/Books/certification/testyourself.html&lt;/span&gt;&lt;/a&gt;</description><link>http://javabastion.blogspot.com/2007/11/mock-scjp-exam.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-1187253698124346314</guid><pubDate>Wed, 07 Nov 2007 11:49:00 +0000</pubDate><atom:updated>2007-11-07T17:22:54.930+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SCJD</category><category domain="http://www.blogger.com/atom/ns#">SCJP</category><title>SCJD (Sun Certified Java Developer) Exam Details</title><description>&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;&lt;u&gt;Sun Certified Developer for Java 2 Platform (Step 1 of 2) (CX-310-252A)&lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;This certification is for Sun Certified Programmers who are already familiar with the basic structure and syntax of the Java programming language, and who have a need to demonstrate advanced proficiency in developing complex, production-level applications using Java 2 Platform, Standard Edition (J2SE) technology.&lt;br /&gt;&lt;strong&gt;Exam number&lt;/strong&gt;:CX-310-252A&lt;br /&gt;&lt;strong&gt;Delivered at&lt;/strong&gt;:CertManager database&lt;br /&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;:Must be Sun Certified Programmer for  the Java Platform (any edition)&lt;br /&gt;&lt;strong&gt;Other exams/assignments required for this certification:&lt;/strong&gt;Step 2 (CX-310-027)&lt;br /&gt;&lt;strong&gt;Exam Type&lt;/strong&gt;:Programming assignment&lt;br /&gt;&lt;strong&gt;Cost:&lt;/strong&gt;250.00 USD&lt;br /&gt;&lt;strong&gt;Number of questions&lt;/strong&gt;:N/A&lt;br /&gt;&lt;strong&gt;Pass score&lt;/strong&gt;:320 points out of 400 possible points&lt;br /&gt;&lt;strong&gt;Time Limit&lt;/strong&gt;:None&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;&lt;strong&gt;&lt;u&gt;Sun Certified Developer for Java 2 Platform (Step 2 of 2) (CX-310-027)&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;This certification is for Sun Certified Programmers who are already familiar with the basic structure and syntax of the Java programming language, and who have a need to demonstrate advanced proficiency in developing complex, production-level applications using Java 2 Platform, Standard Edition (J2SE) technology.&lt;br /&gt;&lt;strong&gt;Exam number&lt;/strong&gt;:CX-310-027&lt;br /&gt;&lt;strong&gt;Delivered at&lt;/strong&gt;:Authorized Prometric testing centers&lt;br /&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;:Must be Sun Certified Programmer for the Java Platform (any edition) Completion of Step 1 (CX-310-252A)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;&lt;strong&gt;Other exams/assignments required for this certification&lt;/strong&gt;:Step 1 (CX-310-252A)&lt;br /&gt;&lt;strong&gt;Exam Type&lt;/strong&gt;:Essay&lt;br /&gt;&lt;strong&gt;Cost&lt;/strong&gt;:250.00 USD&lt;br /&gt;&lt;strong&gt;Number of questions&lt;/strong&gt;:4&lt;br /&gt;&lt;strong&gt;Pass score&lt;/strong&gt;:Subject to the evaluation of the essay exam and validation of the authenticity of the assignment&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;&lt;strong&gt;Time Limit&lt;/strong&gt;:120 minutes (2 hrs)&lt;/span&gt;</description><link>http://javabastion.blogspot.com/2007/11/scjd-sun-certified-java-developer-exam.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-1469818741352850128</guid><pubDate>Wed, 07 Nov 2007 11:42:00 +0000</pubDate><atom:updated>2007-11-07T17:16:59.586+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java E-Books</category><title>Teach Yourself Java 6 in 21 days.</title><description>&lt;div align=&quot;center&quot;&gt;&lt;u&gt; &lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Sams Teach Yourself Java 6 in 21 Days&lt;/strong&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;center&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;p&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5130062664167806402&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0T2uXLNrnJY5GwQ8GR-A7HEqNA5do3fME9GpEEJNJU6HuJ0-cr40pee9aNKCmCUW-eC2UlQXE5jBpcVKKqchibeFxgYjFLlCtygbDfZ31B3pyHjgKygdP_oajgT9s8KLrVqcci1FJA0Vu/s320/sams-teach-yourself-java-6-in-21-days.jpg&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Sams  ISBN 0672329433  Edition 5th  PDF  720 pages  3.8 MB&lt;br /&gt;In just 21 days, you can acquire the knowledge and skills necessary to develop three kinds of programs with Java: applications on your computer, servlets on a web server, and browser-launched Java Web Start applications.&lt;/span&gt;&lt;a id=&quot;more-2781&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;No previous programming experience required. By following the 21 carefully organized lessons in this book, anyone can learn the basics of Java programming.&lt;br /&gt;Learn at your own pace. You can work through each chapter sequentially to make sure you thoroughly understand all of the concepts and methodologies, or you can focus on specific lessons to learn the techniques that interest you most.&lt;br /&gt;Test your knowledge. Each chapter ends with a Workshop section filled with questions, answers, and exercises for further study. There are even certification practice questions.&lt;br /&gt;* Completely revised, updated, and expanded to cover the latest features of Java 6&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;* Learn to develop standalone Java applications, web servlets, JavaServer Pages, and Java Web Start applications&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;* Easy-to-understand, practical examples clearly illustrate the fundamentals of Java programming&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;* Discover how Swing can help you quickly develop programs with a graphical user interface&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;* Find out about JDBC database programming, Internet client/server programming, and XML parsing with the open source XOM class library&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;* Covers new features of version 6 such as Java DB, the new relational database that is now a built-in&lt;/span&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt; part of Java&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div align=&quot;left&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt; &lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://uploadphiles.com/index.php?page=main&amp;amp;id=26d331348&amp;amp;name=200710311323.zip&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;DOWNLOAD&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt; &lt;/div&gt;</description><link>http://javabastion.blogspot.com/2007/11/teach-yourself-java-6-in-21-days.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0T2uXLNrnJY5GwQ8GR-A7HEqNA5do3fME9GpEEJNJU6HuJ0-cr40pee9aNKCmCUW-eC2UlQXE5jBpcVKKqchibeFxgYjFLlCtygbDfZ31B3pyHjgKygdP_oajgT9s8KLrVqcci1FJA0Vu/s72-c/sams-teach-yourself-java-6-in-21-days.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-3635169691603236190</guid><pubDate>Wed, 07 Nov 2007 11:29:00 +0000</pubDate><atom:updated>2007-11-07T17:07:13.753+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">SCJP and Interview Questions</category><title>SCJP Exam Details</title><description>&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;u&gt;&lt;strong&gt;Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 (CX-310-055)&lt;/strong&gt;&lt;br /&gt;&lt;/u&gt;The Sun Certified Programmer for Java 2 Platform 5.0 certification exam is for programmers experienced using the Java programming language.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Exam number: &lt;/strong&gt;CX-310-055&lt;br /&gt;&lt;strong&gt;Available at&lt;/strong&gt;: Authorized Prometric testing centers&lt;br /&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;: None&lt;br /&gt;&lt;strong&gt;Other exams/assignments required for this certification&lt;/strong&gt;: None&lt;br /&gt;&lt;strong&gt;Exam Type: &lt;/strong&gt;Multiple choice and Drag and Drop&lt;br /&gt;&lt;strong&gt;Cost&lt;/strong&gt;: 150 USD&lt;br /&gt;&lt;strong&gt;Number of questions: &lt;/strong&gt;72&lt;br /&gt;&lt;strong&gt;Pass score: &lt;/strong&gt;59% (43 of 72 questions)&lt;br /&gt;&lt;strong&gt;Time Limit: &lt;/strong&gt;175 minutes (2 hrs and 55 minutes)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;u&gt;Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 Upgrade Exam (CX-310-056)&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;The Sun Certified Programmer for Java 2 Platform 5.0 certification exam is for programmers experienced using the Java programming language.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Exam number:&lt;/strong&gt;CX-310-056&lt;br /&gt;&lt;strong&gt;Available at&lt;/strong&gt;:Authorized Prometric testing centers&lt;br /&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt;Successful completion of previous version of Sun Certified Programmer for Java 2 Platform exam&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Other exams/assignments required for this certification:&lt;/strong&gt;None&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Exam&lt;/strong&gt; &lt;/span&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Type&lt;/strong&gt;:Multiple choice and Drag and Drop&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;strong&gt;Cost&lt;/strong&gt;:100 USD&lt;br /&gt;&lt;strong&gt;Number of questions:&lt;/strong&gt;46&lt;br /&gt;&lt;strong&gt;Pass score:&lt;/strong&gt;58% (27 of 46 questions)&lt;br /&gt;&lt;strong&gt;Time Limit:&lt;/strong&gt;105 minutes (1 hr and 45 minutes)&lt;/span&gt;</description><link>http://javabastion.blogspot.com/2007/11/scjp-for-j2se-50-cx-310-055-details.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-7215010496186716372</guid><pubDate>Tue, 06 Nov 2007 12:00:00 +0000</pubDate><atom:updated>2007-11-06T17:47:51.367+05:30</atom:updated><title>What is Web 2.0 ?</title><description>&lt;strong&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;What is Web 2.0?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;Design patterns and business models for the next generation&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;by &lt;a href=&quot;http://www.oreillynet.com/pub/au/27&quot;&gt;Tim O&#39;Reilly&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;The bursting of the dot-com bubble in the fall of 2001 marked a turning point for the web. Many people concluded that the web was overhyped, when in fact &lt;a href=&quot;http://www.carlotaperez.org/&quot;&gt;bubbles and consequent shakeouts appear to be a common feature of all technological revolutions&lt;/a&gt;. Shakeouts typically mark the point at which an ascendant technology is ready to take its place at center stage. The pretenders are given the bum&#39;s rush, the real success stories show their strength, and there begins to be an understanding of what separates one from the other.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;The concept of &quot;Web 2.0&quot; began with a conference brainstorming session between O&#39;Reilly and MediaLive International. Dale Dougherty, web pioneer and O&#39;Reilly VP, noted that far from having &quot;crashed&quot;, the web was more important than ever, with exciting new applications and sites popping up with surprising regularity. What&#39;s more, the companies that had survived the collapse seemed to have some things in common. Could it be that the dot-com collapse marked some kind of turning point for the web, such that a call to action such as &quot;Web 2.0&quot; might make sense? We agreed that it did, and so the &lt;a href=&quot;http://www.web2con.com/&quot;&gt;Web 2.0 Conference&lt;/a&gt; was born.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;In the year and a half since, the term &quot;Web 2.0&quot; has clearly taken hold, with more than 9.5 million citations in Google. But there&#39;s still &lt;a href=&quot;http://radar.oreilly.com/archives/2005/08/not_20.html&quot;&gt;a huge amount of disagreement about just what Web 2.0 means&lt;/a&gt;, with some people decrying it as a meaningless marketing buzzword, and others accepting it as the new conventional wisdom.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;This article is an attempt to clarify just what we mean by Web 2.0.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;It is a good article by O&#39;Reilly, dont forget to read the article; it provides a good introduction to web 2.0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Read the complete article here:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;a href=&quot;http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;</description><link>http://javabastion.blogspot.com/2007/11/what-is-web-20.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-4402444688675317004</guid><pubDate>Tue, 06 Nov 2007 11:49:00 +0000</pubDate><atom:updated>2007-11-06T17:25:26.466+05:30</atom:updated><title>Java FAQs, interview questions</title><description>&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;&lt;u&gt;Java FAQs&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;1)How can I write a program that takes command line input?&lt;br /&gt;A:&lt;/strong&gt; Java programs that take input from the command line declare a special static method called main, which takes a String array as an argument and returns void. The example program below loops through any arguments passed to the program on the command line and lists their values.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;2)What does public static void main(String[]) mean?&lt;br /&gt;A&lt;/strong&gt;: This is a special static method signature that is used to run Java programs from a command line interface (CLI). There is nothing special about the method itself, it is a standard Java method, but the Java interpreter is designed to call this method when a class reference is given on the command line, as below.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;3)Why are command line arguments passed as a String?&lt;br /&gt;A:&lt;/strong&gt; Command line arguments are passed to the application&#39;s main method by the Java runtime system before the application class or any supporting objects are instantiated. It would be much more complex to define and construct arbitrary object types to pass to the main method and primitive values alone are not versatile enough to provide the range of input data that strings can. String arguments can be parsed for primitive values and can also be used for arbitrary text input, file and URL references.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;4)Why doesn&#39;t the main method throw an error with no arguments?&lt;br /&gt;A:&lt;/strong&gt; When you invoke the Java Virtual Machine on a class without any arguments, the class&#39; main method receives a String array of zero length. Thus, the method signature is fulfilled. Provided the main method does not make any reference to elements in the array, or checks the array length before doing so, no exception will occur.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;5)Why do we only use the main method to start a program?&lt;br /&gt;A:&lt;/strong&gt; The entry point method main is used to the provide a standard convention for starting Java programs. The choice of the method name is somewhat arbitrary, but is partly designed to avoid clashes with the Thread start() and Runnable run() methods, for example.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;6)Can the main method be overloaded?&lt;br /&gt;A:&lt;/strong&gt; Yes, any Java method can be overloaded, provided there is no final method with the same signature already. The Java interpreter will only invoke the standard entry point signature for the main method, with a string array argument, but your application can call its own main method as required.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;7)Can the main method be declared final?&lt;br /&gt;A:&lt;/strong&gt; Yes, the static void main(String[]) method can be declared final.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;8)I get an exception if I remove the static modifier from main!&lt;br /&gt;A:&lt;/strong&gt; The static void main(String[]) method is a basic convention of the Java programming language that provides an entry point into the runtime system. The main method must be declared static because no objects exist when you first invoke the Java Virtual Machine (JVM), so there are no references to instance methods. The JVM creates the initial runtime environment in which this static method can be called, if you remove the static modifier, it will throw a NoSuchMethodException.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;9)How can the static main method use instance variables?&lt;br /&gt;A:&lt;/strong&gt; For very simple programs it is possible to write a main method that only uses static variables and methods. For more complex systems, the main method is used to create an instance of itself, or another primary class, as the basis of the application. The primary application object reference uses instance methods to create and interact with other objects, do the work and return when the application terminates.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;public class SimpleClass {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;public void doSomething() { &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;// Instance method statements } &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;public static main(final String[] args) &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;simpleClass instance = new SimpleClass(); &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;instance.doSomething(); }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Courier New;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;10)main method from another class? &lt;br /&gt;A:&lt;/strong&gt; Yes, the main method can be called from a separate class. First you must prepare the string array of arguments to pass to the method, then call the method through a static reference to the host class, MaxFactors in the example below. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;String[] arguments = new String[] {&quot;123&quot;};&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;MaxFactors.main(arguments);&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Taken from &lt;a href=&quot;http://www.javabeat.net/&quot;&gt;http://www.javabeat.net/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://javabastion.blogspot.com/2007/11/java-faqs-interview-questions.html</link><author>noreply@blogger.com (Shahid)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-947538469236564318</guid><pubDate>Mon, 05 Nov 2007 14:01:00 +0000</pubDate><atom:updated>2007-11-06T17:19:06.685+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><category domain="http://www.blogger.com/atom/ns#">Java IDEs</category><title>Introducing JavaFX: Sun’s new family of Java-based products</title><description>&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Introducing JavaFX: Sun’s new family of Java-based products&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Author: Peter Mikhalenko&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;http://www.sun.com/software/javafx/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaFX&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; is a new family of products and technologies from Sun Microsystems that you can use to create Rich Internet Applications (RIAs). JavaFX currently consists of &lt;/span&gt;&lt;a href=&quot;http://www.sun.com/software/javafx/script/index.jsp&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaFX Script&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; and &lt;/span&gt;&lt;a href=&quot;http://www.sun.com/software/javafx/mobile/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaFX Mobile&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;; other JavaFX products are planned for release in the future.&lt;br /&gt;JavaFX is anticipated to compete in the space already occupied by &lt;/span&gt;&lt;a href=&quot;http://labs.adobe.com/technologies/air/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Adobe AIR&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; and &lt;/span&gt;&lt;a href=&quot;http://blogs.techrepublic.com.com/programming-and-development/?p=520&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Microsoft’s Silverlight&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; technologies. In a nutshell, Adobe AIR enables Flex and DHTML developers to build applications for the desktop; Silverlight allows developers to build rich media applications that run in the browser; and JavaFX Script lets developers build rich UIs for Java applications.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;JavaFX products&lt;/strong&gt;&lt;br /&gt;JavaFX Mobile is a complete mobile operating and application environment built around Java and Linux. JavaFX Script is a highly productive scripting language for content developers to create rich media and content for deployment on Java technology. JavaFX Script is the core of the JavaFX family, and it’s the most interesting part of the product set. (Sun thinks that developers will shorten JavaFX Script to JavaFX in conversations, as long as JavaFX Script is the core in the JavaFX product family.)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaFX Script is intended to simplify the creation of rich UIs for Java clients. JavaFX Script is implemented in Java, and it uses Java APIs for 2D and 3D graphics as well as UI controls. JavaFX Script supports a declarative syntax for UI definition that is somewhat similar to the ones used by Microsoft in XAML and Adobe in MXML, yet it’s not XML-based. In fact, it’s a real programming language — not just a markup tool — so you can write an entire application in JavaFX Script.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;If you want to write JavaFX applications directly from the IDE, the best way to do that is to download and install &lt;/span&gt;&lt;a href=&quot;http://java.sun.com/javase/downloads/netbeans.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JDK 6.1 with NetBeans 5.5.1 or 6.0&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; and then install the &lt;/span&gt;&lt;a href=&quot;https://openjfx.dev.java.net/javafx-nb55-plugin-install.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaFX Script plug-in for NetBeans 5.5.1&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; or the &lt;/span&gt;&lt;a href=&quot;https://openjfx.dev.java.net/javafx-nb60-plugin-install.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaFX Script plug-in for NetBeans 6.0&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;. There is also a &lt;/span&gt;&lt;a href=&quot;https://openjfx.dev.java.net/javafx-eclipse-plugin-install.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaFX plug-in for Eclipse&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;There is a separate initiative called &lt;/span&gt;&lt;a href=&quot;https://openjfx-compiler.dev.java.net/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;OpenJFX Compiler&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;, which focuses on creating a JavaFX compiler to translate JavaFX scripts directly into JVM class files (bytecode) without any intermediate steps. It is still in the very early stages of design and implementation.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;strong&gt;Hello World application&lt;/strong&gt;&lt;br /&gt;This is the typical “Hello World” application:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;import javafx.ui.*; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;Frame { title: &quot;Hello World JavaFX&quot; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;width: 300 &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;height: 100&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;content: Box {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;content:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;[Label {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;text: &quot;Hello World&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;toolTipText: &quot;Tool tip&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;font: Font { &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;size: 18&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;border: EmptyBorder {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;top: 10&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;left: 10&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;background: Color { &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;blue: 255&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;green: 255&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;red: 255&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;} &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}] &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;} &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;visible: true &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://i.i.com.com/cnwk.1d/i/tr/NL_images/HelloWorld1030.txt&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;View the code online.&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;In order to run this application in NetBeans 5.5, you need to follow these steps:&lt;br /&gt;1. Launch NetBeans 5.5.&lt;br /&gt;2. From the main menu, go to File New Project.&lt;br /&gt;3. In the New Project window, select the General category, select Java Application project, and click Next.&lt;br /&gt;4. In the New Java Application window, type FXExample in the Project Name text field.&lt;br /&gt;5. In the same window, use the Browse button to select the location of the project.&lt;br /&gt;6. Uncheck the Set As Main Project and Create Main Class check boxes and click Finish.&lt;br /&gt;7. Right-click on the FXExample Source Packages and select New - File/Folder.&lt;br /&gt;8. In the New File window, select the Other category, select the JavaFX File file type, and click Next.&lt;br /&gt;9. In the New JavaFX File window, type “HelloWorld” for the File Name, type “src” for the Folder, and click Finish.&lt;br /&gt;10. Copy the code from Listing 1 and paste it in HelloWorld.fx.&lt;br /&gt;11. Right-click FXExample project and select Properties.&lt;br /&gt;12. In the Project Properties - FXExample, select the Run node from the Categories pane.&lt;br /&gt;13. In the Arguments text field, type “Hello World” and click OK.&lt;br /&gt;14. Right-click FXExample project and select the Run Project option.&lt;br /&gt;If everything works, you should see the Hello World application running (see Figure A).&lt;br /&gt;Figure A&lt;/span&gt;&lt;/p&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5129359268783805874&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVTDKw4fTv_6g6oQP2Sa0FSYcfBS6fhKK11yYXzI6t8dgFrrAEA4Zb4DhptC1obBbhUxLhSw7zykmd5gaCyGBTiLm7HOlJNxbUDHw57GszjIG7VBRlf9dLhYovlCsPGf1FZ7groH4eW39F/s320/Java1030A.jpg&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;To read the complete article click on the link:&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://blogs.techrepublic.com.com/programming-and-development/?p=539&amp;amp;tag=nl.e138&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;http://blogs.techrepublic.com.com/programming-and-development/?p=539&amp;amp;tag=nl.e138&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://javabastion.blogspot.com/2007/11/introducing-javafx-suns-new-family-of.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVTDKw4fTv_6g6oQP2Sa0FSYcfBS6fhKK11yYXzI6t8dgFrrAEA4Zb4DhptC1obBbhUxLhSw7zykmd5gaCyGBTiLm7HOlJNxbUDHw57GszjIG7VBRlf9dLhYovlCsPGf1FZ7groH4eW39F/s72-c/Java1030A.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-1713674312101046871</guid><pubDate>Sun, 04 Nov 2007 10:33:00 +0000</pubDate><atom:updated>2007-11-04T16:10:06.601+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>What is RMI (Remote Method Invocation)?</title><description>&lt;div&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Remote Method Invocation (RMI)&lt;/strong&gt;&lt;br /&gt;Java Remote Method Invocation (Java RMI) enables the programmer to create distributed Java technology-based to Java technology-based applications, in which the methods of remote Java objects can be invoked from other Java virtual machines*, possibly on different hosts. RMI uses object serialization to marshal and unmarshal parameters and does not truncate types, supporting true object-oriented polymorphism.&lt;br /&gt;Java RMI is included with Java SE and is available as a &lt;/span&gt;&lt;a href=&quot;http://java.sun.com/products/rmiop&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;separate download&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; for Java ME.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;strong&gt;An Overview of RMI Applications&lt;/strong&gt;&lt;br /&gt;RMI applications are often comprised of two separate programs: a server and a client. A typical server application creates some remote objects, makes references to them accessible, and waits for clients to invoke methods on these remote objects. A typical client application gets a remote reference to one or more remote objects in the server and then invokes methods on them. RMI provides the mechanism by which the server and the client communicate and pass information back and forth. Such an application is sometimes referred to as a distributed object application.&lt;br /&gt;Distributed object applications need to&lt;br /&gt;&lt;em&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;&lt;strong&gt;Locate remote objects:&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt; Applications can use one of two mechanisms to obtain references to remote objects. An application can register its remote objects with RMI&#39;s simple naming facility, the rmiregistry, or the application can pass and return remote object references as part of its normal operation.&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;&lt;em&gt;Communicate with remote objects&lt;/em&gt;&lt;/span&gt;:&lt;/strong&gt; Details of communication between remote objects are handled by RMI; to the programmer, remote communication looks like a standard Java method invocation.&lt;br /&gt;&lt;em&gt;&lt;span style=&quot;font-family:times new roman;&quot;&gt;&lt;strong&gt;Load class bytecodes for objects that are passed around:&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt; Because RMI allows a caller to pass objects to remote objects, RMI provides the necessary mechanisms for loading an object&#39;s code, as well as for transmitting its data. &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;The following illustration depicts an RMI distributed application that uses the registry to obtain a reference to a remote object. The server calls the registry to associate (or bind) a name with a remote object. The client looks up the remote object by its name in the server&#39;s registry and then invokes a method on it. The illustration also shows that the RMI system uses an existing Web server to load class bytecodes, from server to client and from client to server, for objects when needed. &lt;/span&gt;&lt;/p&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5128932984689743266&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1qusTOKdF8yY8AJthBsgF4LIHpGhUyW4cipad08yrZwahgtCwPkNsNlrhZ-6A6Yvxu0fEHdicn70ezVul6Zv90fq5OA3w9Hqo57sDtmi5qV85YBXpoAMMMqnwTBxiPaKFYmyO99R2GevR/s320/rmi-2.gif&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</description><link>http://javabastion.blogspot.com/2007/11/what-is-rmi-remote-method-invocation.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1qusTOKdF8yY8AJthBsgF4LIHpGhUyW4cipad08yrZwahgtCwPkNsNlrhZ-6A6Yvxu0fEHdicn70ezVul6Zv90fq5OA3w9Hqo57sDtmi5qV85YBXpoAMMMqnwTBxiPaKFYmyO99R2GevR/s72-c/rmi-2.gif" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-6396268632182804959</guid><pubDate>Sat, 03 Nov 2007 17:16:00 +0000</pubDate><atom:updated>2007-11-03T23:19:01.842+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>J2EE Architecture</title><description>&lt;div&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;J2EE Architecture&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;9944&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The following figure shows the major elements of the J2EE architecture: &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5128669866403255650&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5IDqVO4cgSICe6o51UGzyQmYrMBQNmPQqPywo2F8k8lFOsSO4wbRX6cBN109Zto9PhIJPyPvl-zCEXAFt7hkVo35mcpInAFibCnsvaYlshW4GQKSqsQ0l4NztDLk4LPaEL_wYS1oqZON9/s320/J2EEArch.gif&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;J2EE Server&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;9971&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The J2EE server of the JavaTM 2 SDK, Enterprise Edition implements the J2EE architecture. The J2EE server provides the following services: &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;9972&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;---Naming and Directory - allows programs to locate services and components through the JavaNaming and Directory InterfaceTM (JNDI) API&lt;/span&gt;&lt;a name=&quot;9973&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;---Authentication - enforces security by requiring users to log in&lt;/span&gt;&lt;a name=&quot;9976&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;---HTTP - enables Web browsers to access servlets and JavaServer PagesTM (JSP) files&lt;/span&gt;&lt;a name=&quot;9977&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;----EJB - allows clients to invoke methods on enterprise beans&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;a name=&quot;9965&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;EJB Container&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a name=&quot;9421&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Enterprise bean instances run within an EJB container. The container controls the enterprise beans, and provides them with important system-level services. Since you don&#39;t have to develop these services yourself, you are free to concentrate on the business methods in the enterprise beans. The container provides the following services to enterprise beans:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;**Transaction Management&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;**Security&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;**Remote Client Connectivity&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;**Life Cycle Management&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;**Database Connection Pooling&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Transaction Management&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;When a client invokes a method in an enterprise bean, the container intervenes in order to manage the transaction. Because the container manages the transaction, you do not have to code transaction boundaries in the enterprise bean. The code required to control distributed transactions can be quite complex. Instead of writing and debugging complex code, you simply declare the enterprise bean&#39;s transactional properties in the deployment descriptor file. The container reads the file and handles the enterprise bean&#39;s transactions for you.&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;9363&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Security&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a name=&quot;9365&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The container permits only authorized clients to invoke an enterprise bean&#39;s methods. Each client belongs to a particular role, and each role is permitted to invoke certain methods. You declare the roles and the methods they may invoke in the enterprise bean&#39;s deployment descriptor. Because of this this declarative approach, you don&#39;t need to code routines that enforce security.&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;9749&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Remote Client Connectivity&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a name=&quot;9366&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The container manages the low-level communications between clients and enterprise beans. After an enterprise bean has been created, a client invokes methods on it as if it were in the same virtual machine.&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;9367&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Life Cycle Management&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a name=&quot;9368&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;An enterprise bean passes through several states during its lifetime. The container creates the enterprise bean, moves it between a pool of available instances and the active state, and finally, removes it. Although the client calls methods to create and remove an an enterprise bean, the container performs these tasks behind the scenes.&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;10005&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Database Connection Pooling&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a name=&quot;10006&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;A database connection is a costly resource. Obtaining a database connection is time-consuming and the number of connnections may be limited. To alleviate these problems, the container manages a pool of database connections. An enterprise bean can quickly obtain a connection from the pool. After the bean releases the connection, it may be re-used by another bean.&lt;/span&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Web Container&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;10020&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JSP files and and servlets reside in the Web container. For more information on developing Web components, see the &lt;/span&gt;&lt;a href=&quot;http://www.java.sun.com/products/OV_enterpriseProduct.html&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;JavaTM 2 Technologies for the Enterprise&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; Web page.&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;9369&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Enterprise Beans&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a name=&quot;9370&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Enterprise beans are server components written in the Java programming language. Enterprise beans contain the business logic for your application. For example, a checkbook client might invoke the debit and credit methods of an account enterprise bean.&lt;br /&gt;&lt;/span&gt;&lt;a name=&quot;9371&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;There are two types of enterprise beans: session beans and entity beans.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;</description><link>http://javabastion.blogspot.com/2007/11/j2ee-architecture.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5IDqVO4cgSICe6o51UGzyQmYrMBQNmPQqPywo2F8k8lFOsSO4wbRX6cBN109Zto9PhIJPyPvl-zCEXAFt7hkVo35mcpInAFibCnsvaYlshW4GQKSqsQ0l4NztDLk4LPaEL_wYS1oqZON9/s72-c/J2EEArch.gif" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3694819702205617559.post-4656476690936992816</guid><pubDate>Fri, 02 Nov 2007 10:38:00 +0000</pubDate><atom:updated>2007-11-02T16:23:48.674+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java EE or J2EE</category><title>What is CORBA?</title><description>&lt;div&gt;&lt;a name=&quot;co1&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;What is CORBA?&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;CORBA, or &lt;em&gt;Common Object Request Broker Architecture&lt;/em&gt;, is a standard architecture for distributed object systems. It allows a distributed, heterogeneous collection of objects to interoperate.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a name=&quot;co2&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;The OMG&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The &lt;/span&gt;&lt;a href=&quot;http://www.omg.org/&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Object Management Group&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt; (OMG) is responsible for defining CORBA. The OMG comprises over 700 companies and organizations, including almost all the major vendors and developers of distributed object technology, including platform, database, and application vendors as well as software tool and corporate developers.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a name=&quot;co3&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;CORBA Architecture&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;CORBA defines an architecture for distributed objects. The basic CORBA paradigm is that of a request for services of a distributed object. Everything else defined by the OMG is in terms of this basic paradigm.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The services that an object provides are given by its interface. Interfaces are defined in OMG&#39;s Interface Definition Language (IDL). Distributed objects are identified by object references, which are typed by IDL interfaces.&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The figure below graphically depicts a request. A client holds an object reference to a distributed object. The object reference is typed by an interface. In the figure below the object reference is typed by the &lt;span style=&quot;font-family:courier new;&quot;&gt;Rabbit&lt;/span&gt; interface. The Object Request Broker, or ORB, delivers the request to the object and returns any results to the client. In the figure, a &lt;span style=&quot;font-family:courier new;&quot;&gt;jump&lt;/span&gt; request returns an object reference typed by the &lt;span style=&quot;font-family:courier new;&quot;&gt;AnotherObject&lt;/span&gt; interface. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5128191359801840962&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg47Rq8Dc9tO46fzcOO9AbweZLYHipkxl9T3NuEefgVh_M2LiX8hmKVHkB2DqO5hpIG4DcbxGNUuQ0I6KIbRRlR5eJFc1dLaA0H8pi5yl_YtCep6RB97C7bhdvAKPYdPrlbUzkaqqz8Ht7k/s320/7.gif&quot; border=&quot;0&quot; /&gt;&lt;a name=&quot;co4&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;The ORB&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The ORB is the distributed service that implements the request to the remote object. It locates the remote object on the network, communicates the request to the object, waits for the results and when available communicates those results back to the client.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The ORB implements location transparency. Exactly the same request mechanism is used by the client and the CORBA object regardless of where the object is located. It might be in the same process with the client, down the hall or across the planet. The client cannot tell the difference.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;The ORB implements programming language independence for the request. The client issuing the request can be written in a different programming language from the implementation of the CORBA object. The ORB does the necessary translation between programming languages. Language bindings are defined for all popular programming languages.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a name=&quot;co5&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;CORBA as a Standard for Distributed Objects&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;One of the goals of the CORBA specification is that clients and object implementations are portable. The CORBA specification defines an application programmer&#39;s interface (API) for clients of a distributed object as well as an API for the implementation of a CORBA object. This means that code written for one vendor&#39;s CORBA product could, with a minimum of effort, be rewritten to work with a different vendor&#39;s product. However, the reality of CORBA products on the market today is that CORBA clients are portable but object implementations need some rework to port from one CORBA product to another.&lt;br /&gt;CORBA 2.0 added interoperability as a goal in the specification. In particular, CORBA 2.0 defines a network protocol, called IIOP (Internet Inter-ORB Protocol), that allows clients using a CORBA product from any vendor to communicate with objects using a CORBA product from any other vendor. IIOP works across the Internet, or more precisely, across any TCP/IP implementation.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Interoperability is more important in a distributed system than portability. IIOP is used in other systems that do not even attempt to provide the CORBA API. In particular, IIOP is used as the transport protocol for a version of Java RMI (so called &quot;RMI over IIOP&quot;). Since EJB is defined in terms of RMI, it too can use IIOP. Various application servers available on the market use IIOP but do not expose the entire CORBA API. Because they all use IIOP, programs written to these different API&#39;s can interoperate with each other and with programs written to the CORBA API.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a name=&quot;co6&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;CORBA Services&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Another important part of the CORBA standard is the definition of a set of distributed services to support the integration and interoperation of distributed objects. As depicted in the graphic below, the services, known as CORBA Services or COS, are defined on top of the ORB. That is, they are defined as standard CORBA objects with IDL interfaces, sometimes referred to as &quot;Object Services.&quot;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5128191913852622162&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL6rVKrPIpn2d62bxs3J9IYx3hACBCMP7xmDBordRbhhVysPmzSUNmJShQ1nQlyOujeCkzuoQRL2o4hA7Gc_7uxjrcKyncCVuTWTxLouYy4lRYPnUC2ww6Fwk-209_eTzGROyy5YqCO_WB/s320/8.gif&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;There are several CORBA services. The popular ones are described in detail in another module of this course. Below is a brief description of each: &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Service                                                                   Description&lt;br /&gt;&lt;/strong&gt;Object life cycle        Defines how CORBA objects are created, removed, moved, and copied&lt;br /&gt;Naming                     Defines how CORBA objects can have friendly symbolic names&lt;br /&gt;Events                       Decouples the communication between distributed objects&lt;br /&gt;Relationships           Provides arbitrary typed n-ary relationships between CORBA objects&lt;br /&gt;Externalization         Coordinates the transformation of CORBA objects to and from external media.                                   &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Transactions                Coordinates atomic access to CORBA objects&lt;br /&gt;Concurrency Control      Provides a locking service for CORBA objects in order to ensure serializable access        &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Property                           Supports the association of name-value pairs with CORBA objects&lt;br /&gt;Trader                              Supports the finding of CORBA objects based on properties describing the service offered by the object&lt;br /&gt;Query                               Supports queries on objects&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a name=&quot;co7&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;CORBA Products&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;CORBA is a specification; it is a guide for implementing products. Several vendors provide CORBA products for various programming languages. The CORBA products that support the Java programming language include:&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;ORB and its Description&lt;br /&gt;&lt;/strong&gt;&lt;u&gt;The Java 2 ORB :&lt;/u&gt; The Java 2 ORB comes with Sun&#39;s Java 2 SDK. It is missing several features.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;u&gt;VisiBroker for Java &lt;/u&gt; A popular Java ORB from Inprise Corporation. VisiBroker is also embedded in other products. For example, it is the ORB that is embedded in the Netscape Communicator browser.&lt;br /&gt;&lt;u&gt;OrbixWeb:&lt;/u&gt;A popular Java ORB from Iona Technologies.&lt;br /&gt;&lt;u&gt;WebSphere: &lt;/u&gt;A popular application server with an ORB from IBM.&lt;br /&gt;&lt;u&gt;Netscape Communicator: &lt;/u&gt;Netscape browsers have a version of VisiBroker embedded in them. Applets can issue request on CORBA objects without downloading ORB classes into the browser. They are already there.&lt;br /&gt;&lt;u&gt;Various free or shareware ORBs: &lt;/u&gt;CORBA implementations for various languages are available for download on the web from various sources.&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;</description><link>http://javabastion.blogspot.com/2007/11/what-is-corba.html</link><author>noreply@blogger.com (Shahid)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg47Rq8Dc9tO46fzcOO9AbweZLYHipkxl9T3NuEefgVh_M2LiX8hmKVHkB2DqO5hpIG4DcbxGNUuQ0I6KIbRRlR5eJFc1dLaA0H8pi5yl_YtCep6RB97C7bhdvAKPYdPrlbUzkaqqz8Ht7k/s72-c/7.gif" height="72" width="72"/><thr:total>0</thr:total></item></channel></rss>