<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;DEABQH08eip7ImA9WxBXEEs.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476</id><updated>2010-01-21T01:39:11.372-08:00</updated><title>JAVA ENTERPRISE EDITION [J2EE]</title><subtitle type='html'>J2EE is a Java platform designed for the mainframe-scale computing typical of large enterprises.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://java4-u.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;DEABQH0zeSp7ImA9WxBXEEs.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-3952186945686392557</id><published>2010-01-21T01:38:00.001-08:00</published><updated>2010-01-21T01:39:11.381-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-01-21T01:39:11.381-08:00</app:edited><title>WEB HOSTING GUIDE</title><content type='html'>&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Looking for and buying a reliable web hosting solution is an imperative  decision. Whether you are doing online business, providing important information  or sharing views online on a common interest, you need a reliable web hosting  service that will allow online visitors to browse through your site  effortlessly. It is only powerful web hosting that allows your website to be  downloaded, browsed and updated in minimal time.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Trying to identify a web host can be a very daunting task especially when  there are so many available nowadays and all of them promise one thing or  another. Hence, it is crucial that before you jump in, you do your own homework  or research for selecting the most appropriate web hosting company for your  website.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;With the changing trend of technology, web hosts are also changing. Most of  them provide various services in addition to their basic ones. Say if you are  running an e-commerce website, then of course you need high end security and a  medium through which you can manage your web content efficiently. There are many  tools that facilitate this, however if your web hosting service is not reliable  then you can miss out on serious revenues and prospective clients.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Once you have determined and identified what web hosting services you require  for your online business, it is then time to enlist certain web hosting features  and options you must consider. You can find below some of the most important  aspects of web hosting:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Disk space and bandwidth&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;You should know how much space your website would need and approximate data  it will generate. When we talk about disk space, well, it's actually the amount  of storage assigned to you by the web hosting provider. The bandwidth is the  amount of traffic that is allowed to access and leave your website. In case your  website has a lot of graphics then you would require higher storage area and  greater bandwidth.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Programming tools and the OS&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;You need to be sure that your website is uploaded through secure servers  using the latest Operating System. Most web hosts run on a UNIX based operating  system, usually Linux or BSD. For the running of various web applications you  would require ASP, .NET, MS SQL, SBS and for these you need a Window based  host.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Pricing Aspect&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;You need to compare pricing before you finalize a web hosting service. Some  may provide you better services but at low pricing. It's not always true that  the best hosting services are always the most expensive. Do your research and  then finalize.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Support, Security, Guaranteed uptime and Backups&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Security and backups are two very important aspects that you need to  consider. You should always choose a web hosting service with reliable telephone  support. Some also offer 24/7 support through local or toll-free numbers. In  case you are running an ecommerce website then security is one aspect that you  just cannot discard. Your web hosting service provider should be such that they  can monitor things round the clock and ensure no unwanted intruder can hack your  site. After all it's your website and it is really worth looking into this  aspect of web hosting.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-3952186945686392557?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/3952186945686392557?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/3952186945686392557?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2010/01/web-hosting-guide.html' title='WEB HOSTING GUIDE'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;DEMCQ3cyeyp7ImA9WxBXEEs.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-2793852576702155169</id><published>2010-01-21T01:20:00.000-08:00</published><updated>2010-01-21T01:34:22.993-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-01-21T01:34:22.993-08:00</app:edited><title>WEB HOSTING</title><content type='html'>&lt;div  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;FREE HOSTING&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;A &lt;b&gt;free web hosting service&lt;/b&gt; is a web hosting service  that is free, usually advertisement-supported. Free web hosts will  usually provide a subdomain  (yoursite.example.com) or a directory (www.example.com/~yourname). In contrast,  paid web hosts will usually provide a second-level domain along with the hosting  (www.yourname.com). Many free hosts do allow use of separately-purchased domains. Rarely, a free host  may also operate as a domain name registrar.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p  style="text-align: justify; font-weight: bold; font-style: italic;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;SHARED HOSTING&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-weight: bold; font-style: italic;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;A &lt;b&gt;shared web hosting service&lt;/b&gt; or &lt;b&gt;virtual hosting service&lt;/b&gt; or  &lt;b&gt;derive host&lt;/b&gt; refers to a web hosting service where many websites  reside on one web server  connected to the Internet. Each site "sits" on its own partition, or  section/place on the server to keep it separate from other sites.  This is generally the most economical option for hosting, as many people share  the overall cost of server maintenance.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-style: italic; font-weight: bold;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;CLUSTERE HOSTING&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-style: italic; font-weight: bold;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Clustered hosting&lt;/b&gt; is a type of web hosting that spreads the  load of hosting across multiple physical machines ("nodes"), increasing  availability and decreasing the chances of one service (for example FTP, or  email) affecting another - for example web or database (e.g. MySQL). Many large  websites run on clustered hosting solutions, for example, large discussion  forums will tend to run using multiple front-end webservers with multiple  back-end database servers.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Typically, most hosting infrastructures are based on the paradigm of using a  single physical machine to host multiple hosted services, including web,  database, email, FTP and others. A single physical machine is not only a single  point of failure, but also has finite capacity for traffic, that in practice can  be troublesome for a busy website or for a website that is experiencing  transient bursts in traffic.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;By clustering services across multiple hardware machines, and using load balancing you can eliminate single points of failure increasing availability  of your website and other web services beyond that of ordinary single server  hosting. A single server can require periodic reboots for software upgrades and  the like, whereas in a clustered platform you can stagger the restarts such that  the service is still available whilst still upgrading all necessary machines in  the cluster.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Clustered hosting is similar to cloud hosting, in that the resources of many machines are available for a website  to utilize on demand, making scalability a large advantage to a clustered  hosting solution.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-weight: bold; font-style: italic;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;RESELLER HOSTING&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-weight: bold; font-style: italic;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Reseller hosting&lt;/b&gt; is a form of web hosting wherein the account owner has the  ability to use his/her allotted &lt;a class="mw-redirect" title="Hard drive" href="http://www.blogger.com/wiki/Hard_drive"&gt;&lt;/a&gt;hard drive space and &lt;a title="Bandwidth (computing)" href="http://www.blogger.com/wiki/Bandwidth_%28computing%29"&gt;&lt;/a&gt;bandwidth  to host websites on behalf of third parties. The reseller purchases the host's  services wholesale and then sells them to customers for a profit. A certain  portion of hard drive and bandwidth is allocated to the reseller account. The  reseller may rent a dedicated server from a hosting company, or resell shared  hosting services. In the latter case, the reseller is simply given the  permission to sell a certain amount of disk space and bandwidth to his own  customers without renting a server from a web hosting company he signed for a  reseller account with.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The typical web hosting reseller might be a web design firm, web developer or  systems integrator who offers web hosting as an add-on service. Reseller hosting  is also an inexpensive way for web hosting entrepreneurs to start a company.  Most reseller hosting plans allow resellers to create their own service plans  and choose their own pricing structure. In many cases, resellers are able to  establish their own branding via customized control panels and name servers.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Reseller hosting does not require extensive knowledge of the technical  aspects of web hosting. Usually, the data center operator is responsible for maintaining  network infrastructure and hardware, and the dedicated server owner configures,  secures, and updates the server. A reseller is responsible for interfacing with  his/her own customer base, but any hardware, software and connectivity problems  are typically forwarded to the server provider from whom the reseller plan was  purchased. It should be noted that being a profitable reseller firm usually  involves extensive advertising to get customers. While the monthly fees with  major hosts are only a few dollars a month, it's a low margin business, and  resellers must devote large advertising budgets to compete with established  competitors. However, web hosting is one of the biggest online businesses,  because every website needs hosting.&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-weight: bold; font-style: italic;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;FFMPEG HOSTING&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify; font-weight: bold; font-style: italic;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;FFmpeg hosting&lt;/b&gt; is a term that is used to refer to any "assortment of  software which is available free, which helps in recording, converting and  streaming a digital video or an audio", and to those domain registrars and &lt;a title="Web hosting service" href="http://www.blogger.com/wiki/Web_hosting_service"&gt;&lt;/a&gt;web hosting  companies which provide the above assortment of software to video hosting  services. It is known as &lt;i&gt;FFmpeg hosting&lt;/i&gt; due to the usage by several &lt;a title="Video hosting service" href="http://www.blogger.com/wiki/Video_hosting_service"&gt;&lt;/a&gt;video hosting service of the &lt;a title="FFmpeg" href="http://www.blogger.com/wiki/FFmpeg"&gt;&lt;/a&gt;FFmpeg software  library in the server-side conversion of files with variously-encoded video and  audio formats into a single preferred video or audio format that is both  playable from the video hosting service and embeddable into any offsite webpage.  As of 2010, the preferred format for the presentation of converted video is the .mp4 format.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-2793852576702155169?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/2793852576702155169?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/2793852576702155169?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2010/01/web-hosting.html' title='WEB HOSTING'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;D0IDSXo-eSp7ImA9WxBXEEs.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-260450681559144268</id><published>2010-01-21T01:07:00.000-08:00</published><updated>2010-01-21T01:19:38.451-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-01-21T01:19:38.451-08:00</app:edited><title>TYPE OF WEB HOSTING</title><content type='html'>&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Internet hosting services can run &lt;a class="mw-redirect" title="Web servers" href="http://www.blogger.com/wiki/Web_servers"&gt;&lt;/a&gt;Web servers; seeInternet &lt;a class="mw-redirect" title="Internet hosting services" href="http://www.blogger.com/wiki/Internet_hosting_services"&gt;&lt;/a&gt;hosting services.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Hosting services limited to the Web:&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Many large companies who are not internet service providers also need a  computer permanently connected to the web so they can send email, files, etc. to  other sites. They may also use the computer as a website host so they can  provide details of their goods and services to anyone interested. Additionally  these people may decide to place online orders.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;FREE WEB HOSTING SERVICE&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; offered  by different companies with limited services, sometimes supported by  advertisements, and often limited when compared to paid hosting.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;SHARED WEB HOSTING SERVICE&lt;/span&gt;&lt;b&gt;:&lt;/b&gt;  one's website is placed on the same server as many other sites, ranging from a  few to hundreds or thousands. Typically, all domains may share a common pool of  server resources, such as RAM and the CPU. The features available with this type of service can  be quite extensive. A shared website may be hosted with a reseller.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;RESELLER WEB HOSTING&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; allows clients  to become web hosts themselves. Resellers could function, for individual  domains, under any combination of these listed types of hosting, depending on  who they are affiliated with as a provider. Resellers' accounts may vary  tremendously in size: they may have their own virtual dedicated server to a  collocated server. Many resellers provide a nearly identical service to their  provider's shared hosting plan and provide the technical support themselves.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;VERTUAL DEDICATED SERVER&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; also known as a Virtual Private Server (VPS), divides  server resources into virtual servers, where resources can be allocated in a way  that does not directly reflect the underlying hardware. VPS will often be  allocated resources based on a one server to many VPSs relationship, however  virtualisation may be done for a number of reasons, including the ability to  move a VPS container between servers. The users may have root access to their  own virtual space. Customers are sometimes responsible for patching and  maintaining the server.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;DEDICATED HOSTING SERVICE&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; the  user gets his or her own Web server and gains full control over it (root access  for Linux/administrator access for Windows); however, the user typically does  not own the server. Another type of Dedicated hosting is Self-Managed or  Unmanaged. This is usually the least expensive for Dedicated plans. The user has  full administrative access to the box, which means the client is responsible for  the security and maintenance of his own dedicated box.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;MANAGED HOSTING SERVICE&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; the user  gets his or her own Web server but is not allowed full control over it (root  access for Linux/administrator access for Windows); however, they are allowed to  manage their data via FTP or other remote management tools. The user is  disallowed full control so that the provider can guarantee quality of service by  not allowing the user to modify the server or potentially create configuration  problems. The user typically does not own the server. The server is leased to  the client.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;COLOCATION WEB HOSTING SERVICE&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; similar to the dedicated web hosting service, but  the user owns the colo server; the hosting company provides physical space that  the server takes up and takes care of the server. This is the most powerful and  expensive type of the web hosting service. In most cases, the colocation  provider may provide little to no support directly for their client's machine,  providing only the electrical, Internet access, and storage facilities for the  server. In most cases for colo, the client would have his own administrator  visit the data center on site to do any hardware upgrades or changes.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;CLOUD&lt;/span&gt;&lt;b style="font-weight: bold;"&gt; &lt;/b&gt;&lt;span style="font-weight: bold;"&gt;HOSTING&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; is a new type of hosting  platform that allows customers powerful, scalable and reliable hosting based on  clustered load-balanced servers and utility billing. Removing single-point of  failures and allowing customers to pay for only what they use versus what they  could use.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;CLUSTERED&lt;/span&gt;&lt;b style="font-weight: bold;"&gt; &lt;/b&gt;&lt;span style="font-weight: bold;"&gt;HOSTING&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; having multiple servers hosting the same content for better  resource utilization. Clustered Servers are a perfect solution for  high-availability dedicated hosting, or creating a scalable web hosting  solution. A cluster may separate web serving from database hosting capability.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;GRID&lt;/span&gt;&lt;b style="font-weight: bold;"&gt; &lt;/b&gt;&lt;span style="font-weight: bold;"&gt;HOSTING&lt;/span&gt;&lt;b&gt;:&lt;/b&gt; this form of distributed hosting is when a server cluster acts  like a grid and is composed of multiple nodes.  &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;HOME SERVER&lt;/span&gt;&lt;b&gt;:&lt;/b&gt;  usually a single machine placed in a private residence can be used to host one  or more web sites from a usually consumer-grade broadband connection. These can be purpose-built  machines or more commonly old PCs. Some ISPs actively attempt to block home  servers by disallowing incoming requests to TCP port 80 of the user's  connection and by refusing to provide static IP addresses. A common way to attain a reliable DNS hostname is by creating an  account with a dynamic DNS  service. A dynamic DNS service will automatically change the IP address that a  URL points to when the IP address changes&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-260450681559144268?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/260450681559144268?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/260450681559144268?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2010/01/type-of-web-hosting.html' title='TYPE OF WEB HOSTING'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;DkANRnkzeyp7ImA9WxBXEEs.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-441338507823990721</id><published>2010-01-21T00:52:00.000-08:00</published><updated>2010-01-21T01:06:37.783-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-01-21T01:06:37.783-08:00</app:edited><title>WB HOSTING SERVICE</title><content type='html'>&lt;div  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;A &lt;b&gt;web hosting service&lt;/b&gt; is a type of Internet hosting service that allows  individuals and organizations to make their own website accessible via the &lt;a title="World Wide Web" href="http://www.blogger.com/wiki/World_Wide_Web"&gt;&lt;/a&gt;World Wide Web. Web hosts are companies that  provide space on a server they own or lease for use by their  clients as well as providing Internet connectivity, typically in a data center&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;. Web hosts can also  provide data center space and connectivity to the Internet for servers they do  not own to be located in their data center, called&lt;a title="Colocation" href="http://www.blogger.com/wiki/Colocation"&gt;&lt;/a&gt; colocation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SERVICE SCOPE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The scope of hosting services varies widely. The most basic is &lt;a title="Web page" href="http://www.blogger.com/wiki/Web_page"&gt;&lt;/a&gt;web page and small-scale file  hosting, where files can be &lt;a title="Uploading and downloading" href="http://www.blogger.com/wiki/Uploading_and_downloading"&gt;&lt;/a&gt;uploaded via &lt;a title="File Transfer Protocol" href="http://www.blogger.com/wiki/File_Transfer_Protocol"&gt;&lt;/a&gt;File Transfer Protocol(FTP) or a Web interface. The files are usually delivered to the  Web "as is" or with little processing. Many &lt;a title="Internet service provider" href="http://www.blogger.com/wiki/Internet_service_provider"&gt;&lt;/a&gt;Internet Service Providers (ISPs)  offer this service free to their subscribers. People can also obtain Web page  hosting from other, alternative service providers. Personal web site hosting is  typically free, advertisement-sponsored, or cheap. Business web site hosting  often has a higher expense.&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;Single page hosting is generally sufficient only for personal web pages.  A complex site calls for a more comprehensive package that provides &lt;a title="Database" href="http://www.blogger.com/wiki/Database"&gt;&lt;/a&gt;database support and application  development platforms (e.g. PHP,Java, Ruby on Rails&lt;a title="Ruby on Rails" href="http://www.blogger.com/wiki/Ruby_on_Rails"&gt;&lt;/a&gt;,&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt; and &lt;a title="ASP.NET" href="http://www.blogger.com/wiki/ASP.NET"&gt;&lt;/a&gt;ASP.NET). These facilities allow the customers to write  or install scripts for applications like forums and content management&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;. For e-commerce, &lt;a class="mw-redirect" title="Secure Sockets Layer" href="http://www.blogger.com/wiki/Secure_Sockets_Layer"&gt;&lt;/a&gt;SSL&lt;/span&gt; is also highly recommended.&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;The host may also provide an interface or control panel for managing the Web server and installing scripts  as well as other services like e-mail. Some hosts specialize in certain software  or services (e.g. e-commerce). They are commonly used by larger companies to  outsource network infrastructure to a hosting company.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:100%;"&gt;HOSTING RELIABILITY AND UPTIME&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;Hosting&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt; uptime refers to the  percentage of time the host is accessible via the internet. Many providers state  that they aim for at least 99.9% uptime (roughly equivalent to 45 minutes of  downtime a month, or less), but there may be server restarts and planned (or  unplanned) maintenance in any hosting environment, which may or may not be  considered part of the official uptime promise.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;Many providers tie uptime and accessibility into their own service level  agreement (SLA). SLAs sometimes include refunds or reduced costs if performance  goals are not met.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-441338507823990721?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/441338507823990721?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/441338507823990721?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2010/01/wb-hosting-service.html' title='WB HOSTING SERVICE'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;C0AHR3s4eCp7ImA9WxBSFkk.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-3072797288886778616</id><published>2009-12-17T08:03:00.001-08:00</published><updated>2009-12-24T00:02:16.530-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-24T00:02:16.530-08:00</app:edited><title>J2EE ARCHITECTURE</title><content type='html'>&lt;p  style="text-align: justify;font-family:arial;" class="id_shortdesc"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;" class="id_shortdesc"&gt;&lt;span style="font-size:100%;"&gt;The Java™ 2 Platform, Enterprise Edition (J2EE) provides a standard for developing multitier, enterprise services.&lt;/span&gt;&lt;/p&gt;&lt;div face="arial" style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;" class="anchor_topictop"&gt;&lt;span style="font-size:100%;"&gt;The economy and technology of today have intensified the need for faster, more efficient, and larger-scale information management solutions. The J2EE specification satisfies these challenges by providing a programming model that improves development productivity, standardizes the platform for hosting enterprise applications, and ensures portability of developed applications with an extensive test suite.&lt;/span&gt;&lt;/p&gt;&lt;div face="arial" style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;J2EE architecture supports component-based development of multi-tier enterprise applications. A J2EE application system typically includes the following tiers:&lt;/span&gt;&lt;/p&gt;&lt;div face="arial" style="text-align: justify;"&gt;  &lt;/div&gt;&lt;ul  style="text-align: justify;font-family:arial;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Client tier&lt;/strong&gt;: In the client tier, Web components, such as Servlets and JavaServer Pages (JSPs), or standalone Java applications provide a dynamic interface to the middle tier.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Middle tier&lt;/strong&gt;: In the server tier, or middle tier, enterprise beans and Web Services encapsulate reusable, distributable business logic for the application. These server-tier components are contained on a J2EE Application Server, which provides the platform for these components to perform actions and store data.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Enterprise data tier&lt;/strong&gt;: In the data tier, the enterprise's data is stored and persisted, typically in a relational database.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: arial; text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;J2EE applications are comprised of components, containers, and services. Components are application-level components. Web components, such as Servlets and JSPs, provide dynamic responses to requests from a Web page. EJB components contain server-side business logic for enterprise applications. Web and EJB component containers host services that support Web and EJB modules.&lt;/span&gt;&lt;/p&gt;&lt;div style="font-family: arial; text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="fig1"&gt;J2EE Architecture&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;img src="http://www.woodger.ca/images/archj2ee.gif" alt="Java 2 EE Web Arch" border="1" width="447" height="570" /&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;J2EE implements the Presentation Layer with Servlets and, more recently, Java provides the option to generate webpages with dynamic content using JavaServer Pages (JSP). Servlets/JSP generate webpages with dynamic content (typically originating from the database). They also parse webpages submitted from the client and pass them to Enterprise JavaBeans for handling. Servlets and JSPs run inside a Web Server.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;J2EE implements the Business Logic layer with Enterprise JavaBeans (EJB). Enterprise JavaBeans are responsible for logic like validation and calculations as well as provided data access (e.g. database I/O) for the application. Enterprise JavaBeans run inside an Application Sever.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Under J2EE, EJBs access a database through one of two means:  &lt;/span&gt;&lt;/p&gt;&lt;ul  style="text-align: justify;font-family:arial;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;using a JDBC interface which requires a lower level of coding and/or&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;using SQLJ which provides a higher level interface to the database&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify; font-family: arial;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;In addition to these components for web application, J2EE provides for access by non-web clients to the business logic layer. A standalone Java application (IIOP client) can access an EJB directly using J2EE's Remote Method Invocation (RMI) API. &lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-3072797288886778616?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/3072797288886778616?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/3072797288886778616?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/j2ee-architecture-java-2-platform_17.html' title='J2EE ARCHITECTURE'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;C08MQn4-eSp7ImA9WxBSFkk.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-2816782002651661249</id><published>2009-12-17T07:41:00.000-08:00</published><updated>2009-12-24T00:04:43.051-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-24T00:04:43.051-08:00</app:edited><title>OBJECT RELATION MAPPING IN HIBERNATE</title><content type='html'>&lt;div  style="text-align: justify;font-family:arial;"&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;b style="font-family: arial;"&gt;ORM - Object Relation Mapping.&lt;/b&gt;&lt;span style="font-family:arial;"&gt; Almost all contemporary databases are  relational and based on SQL language. Most programs using them are created in an  object way. So some kind of incoherence appears at the meeting point of a  database and software. We need some appropriate tools to translate data from  relational language into an object language and the other way round.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Service  of JDBC is extremely troublesome while dealing with more complex  applications.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;ORM deals with following tasks:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Hibernate is currently  one of the most popular ORM solutions.Its popularity and effectiveness were  proved by the fact that e.g. implementation of CMP in EJB3 on JBoss server is  based on Hibernate. What is more, a lot of solutions were copied during  designing EJB3 specification.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Other, common solutions ORM include: &lt;/span&gt;&lt;b style="font-family: arial;"&gt;CMP,  JDO. Hibernate,&lt;/b&gt;&lt;span style="font-family:arial;"&gt; as opposed to them, is not a standard but a concrete  solution.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Its main advantage is:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;- lightness � it is no need to use  special containers, it is enough to attach an appropriate library. One can also  use it to both: web and client applications. There is no need to generate  manually an additional code. As opposed to e.g. JDO, Hibernate requires only  presence of configuration files. Additional classes used by it are generated  during performing a task.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;Persistence&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;Meaning of the persistence is one of the most imporant thing in application  development. Nowdays almost all applications require persistent data so it is  very important for an system to preserve data entered by users even if the  machine was powered off. Persistance in Java ( Hibernate ) is storing data in a  relational databse using SQL.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Relational technology provides  a way of sharing data among different aplications or among technologies that  form part of the same application. Relational technology is a common denominator  of many different technology platforms and systems so it is't specific to a  particular application.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;span style="font-family:georgia;"&gt;SQL in Hibernate&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;SQL in Hibernate During working with an SQL database in a Java application , the  Java code issues SQL statements to the databese using Java DataBase Connectivity  API (JDBC). JDBC API is used to bind arguments to query parameters for example:  to retrieve values from the result set. But these are low-level data access  tasks, and what we really like to do is write code that saves and retrives  complex objects, to and from the database.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-2816782002651661249?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/2816782002651661249?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/2816782002651661249?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/object-relation-mapping-in-hibernate.html' title='OBJECT RELATION MAPPING IN HIBERNATE'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;C04ARXg-cSp7ImA9WxBSFkk.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-4026085002782770197</id><published>2009-12-17T07:32:00.000-08:00</published><updated>2009-12-24T00:05:44.659-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-24T00:05:44.659-08:00</app:edited><title>HIBERNATE'S ARCHITECTURE</title><content type='html'>&lt;div  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Hibernate is based on similar ideas and patterns like other ORM(Object-relational mapping)&lt;br /&gt;solutions (JDO, CMP).&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;Basic classes used while working with Hibernate  are:&lt;/span&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;&lt;b&gt;- SessionFactory,&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;&lt;b&gt;- Session,&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;&lt;b&gt;-  Transaction&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;&lt;b&gt;SessionFactory&lt;/b&gt;&lt;/code&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;An object of this class provides  with &lt;/span&gt;&lt;code style="font-family: arial;"&gt;&lt;b&gt;Session&lt;/b&gt;&lt;/code&gt;&lt;span style="font-family:arial;"&gt; objects. It contains information concerning  mapped objects a configuration is being loaded during its formation.An  application has usually one object of this class it can be managed by e.g.  Spring.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code style="font-family: arial;"&gt;&lt;b&gt;Session&lt;/b&gt;&lt;/code&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;one of the most important objects of  Hibernate and one of the most troublesome at the beginning. An object of this  class represents a unit of work with a database, it usually equals one  connection (Connection) with a database. It represents a unit of work with  Hibernate. It equals e.g. PersistenceManager in CMP. All persistent objects are  attributed to some definite session and any attempt to modify them or even (  sometimes) acces to them results in an exception.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div  style="text-align: justify;font-family:arial;"&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;Session is opened by&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt; &lt;span style="font-size:85%;"&gt;&lt;code style="font-family: courier new;"&gt;&lt;b&gt;SessionFactory.newSession()&lt;/b&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt; and  closed by&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt; &lt;span style="font-size:100%;"&gt;&lt;code&gt;&lt;b&gt;session.close()&lt;/b&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:130%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:130%;"  &gt;&lt;code&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;code&gt;&lt;/code&gt;One session should match a  logic part of the program an execution of a task. Sometimes ( but not always!)  it can be a transaction. While dealing with www applications &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt; &lt;code&gt;&lt;b&gt;session-per-request&lt;/b&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;code&gt;&lt;b&gt;Transaction&lt;/b&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt; - equals one database  transaction. It is connected with a concrete session and is made by means of &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt; &lt;code&gt;&lt;b&gt;Transaction tx = session.beginTransaction( );&lt;/b&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;We can  cancel it or confirm &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;code&gt;&lt;b&gt;tx.commit(); tx.rollback();&lt;/b&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;model is very common and easy to  implement. Then the session is opened at the beginning of the processing of a  claim and closed at the end. The easiest way to do it is by means of the filter.  This model can be a bit troublesome if we store some persistent objects in a  html sesion ( that is when we use e.g. JSF,  Struts)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-4026085002782770197?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/4026085002782770197?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/4026085002782770197?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/hibernates-architecture-hibernate-is.html' title='HIBERNATE&apos;S ARCHITECTURE'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;D0MNRXs4cSp7ImA9WxBSEEs.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-1165458947360610388</id><published>2009-12-17T07:05:00.000-08:00</published><updated>2009-12-17T07:58:14.539-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-17T07:58:14.539-08:00</app:edited><title></title><content type='html'>&lt;strong&gt;HIBERNATE - Introduction to Hibernate&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Hibernate is an open source object/relational mapping tool for Java. Hibernate lets you develop persistent classes following common Java idiom - including association, inheritance, polymorphism, composition and the Java collections framework. Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC. Hibernates goal is to relieve the developer from 95 percent of common data persistence related programming tasks.Hibernate is Free Software. The LGPL license is sufficiently flexible to allow the use of Hibernate in both open source and commercial projects.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;HIBERNATE - Overview of Hibernate&lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Hibernate makes use of persistent objects commonly called as POJO (POJO = "Plain Old Java Object".) along with XML mapping documents for persisting objects to the database layer. The term POJO refers to a normal Java objects that does not serve any other special role or implement any special interfaces of any of the Java frameworks (EJB, JDBC, DAO, JDO, etc...).&lt;br /&gt;Rather than utilize byte code processing or code generation, Hibernate uses runtime reflection to determine the persistent properties of a class. The objects to be persisted are defined in a mapping document, which serves to describe the persistent fields and associations, as well as any subclasses or proxies of the persistent object. The mapping documents are compiled at application startup time and provide the framework with necessary information for a class. Additionally, they are used in support operations, such as generating the database schema or creating stub Java source files.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Typical Hibernate code&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sessionFactory = new Configuration().configure().buildSessionFactory();&lt;br /&gt;Session session = sessionFactory.openSession();&lt;br /&gt;Transaction tx = session.beginTransaction();&lt;br /&gt;Customer newCustomer = new Customer();newCustomer.setName("New Customer");newCustomer.setAddress("Address of New Customer");newCustomer.setEmailId("NewCustomer@NewCustomer.com");&lt;br /&gt;session.save(newCustomer);tx.commit();&lt;br /&gt;session.close();&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;First step is hibernate application is to retrieve Hibernate Session; Hibernate Session is the main runtime interface between a Java application and Hibernate. SessionFactory allows applications to create hibernate session by reading hibernate configurations file hibernate.cfg.xml.After specifying transaction boundaries, application can make use of persistent java objects and use session for persisting to the databases.&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;strong&gt;HIBERNATE - Main Features&lt;/strong&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;The most important Hibernate's feature is mapping from Java classes to database tables (and from Java data types to SQL data types), but also to provides data query ( and retrieval facilities ).It is important that Hibernate generates the SQL calls and relieves keeping the application portable to all SQL databases, with database portability delivered at very little performance overhead.This feature can significialy reduce development time that programmer would have to spent with manual data handling in SQL and JDBC.Reasuming Hibernate allows to create high-performance database applications with Java much faster and easier. Thanks to transparent persistence for Plain Old Java Objects (POJOs) all you need to do is build a simple POJO, next create XML mapping file that will describe relationship between the databse and the class attributes and at the end call Hibernate API's to specify the operationsYou can use Hibernate as in standalone Java applications or as in Java EE applications using servlets or EJB session beans.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/nLOiW9Lw4mo&amp;hl=en_US&amp;fs=1&amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/nLOiW9Lw4mo&amp;hl=en_US&amp;fs=1&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-1165458947360610388?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/1165458947360610388?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/1165458947360610388?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/hibernate-introduction-to-hibernate.html' title=''/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;CEcERno4eyp7ImA9WxBSFkk.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-3004927130291331821</id><published>2009-12-13T04:57:00.000-08:00</published><updated>2009-12-24T00:06:47.433-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-24T00:06:47.433-08:00</app:edited><title>JAVA SERVER PAGE (JSP)</title><content type='html'>&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Java Server Pages&lt;/b&gt; (&lt;b&gt;JSP&lt;/b&gt;) is server side java technology that allows software developers to create HTML, XML, or other document types, in response to a web client request to a Java Web Application container (server). Architecturally, JSP may be viewed as a high-level abstraction of Java servelets. JSP pages are loaded in the server and operated from a structured special installed Java server packet called a J2EE Web Application often packaged as a &lt;code&gt;.war&lt;/code&gt; or &lt;code&gt;.ear&lt;/code&gt; file archive.&lt;/span&gt; dynamically generated web pages, with&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The technology allows Java code and certain pre-defined actions to be embedded into static page content and compiled on the server at runtime of each page request. Both the Java Server (J2EE specification) and the page scripts and/or extended customised programming added operate by (in the runtime context of being loaded programs used) a special pre-installed base program called a vertual machine(VM) that integrates with the host operating system, this type being the Java (JVM).&lt;/span&gt; vertual machine&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;JSP syntax has two basic forms, &lt;i&gt;scriptlet&lt;/i&gt; and &lt;i&gt;markup&lt;/i&gt; though fundamentally the page is either HTML or XML markup. Scriptlet tagging (called Scriptlet Elements)(delimited) blocks of code with the markup are not effectively markup and allows any java server relevant API (e.g. the servers running binaries themselves or database connections API or java mail API) or more specialist JSP API language code to be embedded in an HTML or XML page provided the correct declarations in the JSP file and file extension of the page are used. Scriptlet blocks do not require to be completed in the block itself only the last line of the block itself being completed syntactically correctly as a statement is required, it can be completed in a later block. This system of split inline coding sections is called step over scripting because it can wrap around the static markup by stepping over it. At runtime (during a client request) the code is compiled and evaluated, but compilation of the code generally only occurs when a change to the code of the file occurs. The JSP syntax adds additional XML-like tags, called JSP actions, to be used to invoke built-in functionality. Additionally, the technology allows for the creation of JSP tag libraries that act as extensions to the standard HTML or XML tags. JVM operated Tag libraries provide a &lt;a href="http://en.wikipedia.org/wiki/Platform_independent" title="Platform independent" class="mw-redirect"&gt;&lt;/a&gt;platform independent way of extending the capabilities of a&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt; web server. Note that not all company makes of Java servers are J2EE specification compliant.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-3004927130291331821?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/3004927130291331821?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/3004927130291331821?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/java-server-page-jsp-javaserver-pages.html' title='JAVA SERVER PAGE (JSP)'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;CEcMQn48eip7ImA9WxBSFkk.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-2771527407168649646</id><published>2009-12-13T04:25:00.000-08:00</published><updated>2009-12-24T00:08:03.072-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-24T00:08:03.072-08:00</app:edited><title>LIFE CYCLE OF AN APPLET</title><content type='html'>&lt;span style="font-size:100%;"&gt;An applet can react to major events in the following ways: &lt;/span&gt;&lt;ul  style="font-family:arial;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; It can &lt;em&gt;initialize&lt;/em&gt; itself. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; It can &lt;em&gt;start&lt;/em&gt; running. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; It can &lt;em&gt;stop&lt;/em&gt; running. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; It can perform a &lt;em&gt;final cleanup&lt;/em&gt;,      in preparation for being unloaded. &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt; This section  introduces a new applet, &lt;code&gt;Simple&lt;/code&gt;, that uses all of these methods.  Unlike Java applications, applets do &lt;em&gt;not&lt;/em&gt; need to implement a  &lt;code&gt;main&lt;/code&gt; method.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt; The following is the source code for the &lt;/span&gt;&lt;code style="font-family: arial;"&gt;Simple&lt;/code&gt;&lt;span style="font-family:arial;"&gt; applet. This applet displays a descriptive string whenever it encounters a major milestone in its life, such as when the user  first visits the page the applet is on. &lt;/span&gt; &lt;/span&gt;&lt;/p&gt;  &lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;import java.applet.Applet;&lt;br /&gt;import java.awt.Graphics;&lt;br /&gt;&lt;br /&gt;//No need to extend JApplet, since we don't add any components;&lt;br /&gt;//we just paint.&lt;br /&gt;public class Simple extends Applet {&lt;br /&gt;&lt;br /&gt;StringBuffer buffer;&lt;br /&gt;&lt;br /&gt;public void init() {&lt;br /&gt;   buffer = new StringBuffer();&lt;br /&gt;   addItem("initializing... ");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void start() {&lt;br /&gt;   addItem("starting... ");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void stop() {&lt;br /&gt;   addItem("stopping... ");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void destroy() {&lt;br /&gt;   addItem("preparing for unloading...");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void addItem(String newWord) {&lt;br /&gt;   System.out.println(newWord);&lt;br /&gt;   buffer.append(newWord);&lt;br /&gt;   repaint();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void paint(Graphics g) {&lt;br /&gt;//Draw a Rectangle around the applet's display area.&lt;br /&gt;   g.drawRect(0, 0,&lt;br /&gt; getWidth() - 1,&lt;br /&gt; getHeight() - 1);&lt;br /&gt;&lt;br /&gt;//Draw the current string inside the rectangle.&lt;br /&gt;   g.drawString(buffer.toString(), 5, 15);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;font-size:130%;"  &gt;Loading the Applet&lt;/span&gt;&lt;br /&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;As a result of the applet being loaded, you should see the text "initializing... starting...".  When an applet is loaded, here's what happens: &lt;/span&gt;&lt;/p&gt;&lt;ul  style="font-family:arial;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; An instance of the applet's controlling class (an &lt;code&gt;Applet&lt;/code&gt; subclass) is created. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; The applet initializes itself. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; The applet starts running. &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;font-size:130%;"  &gt;Leaving and Returning to the Applet's Page&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;When the user leaves the page, for example, to go to another page,  the browser stops and destroys the applet. The state of the  applet is not preserved. When the user  returns to the page, the browser intializes and starts a new instance of the applet.   &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;font-size:130%;"  &gt;Reloading the Applet&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;span style="font-family:arial;"&gt;When you refresh or reload a browser page, the current instance of the applet  is stopped and destroyed and a new instance is created.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-2771527407168649646?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/2771527407168649646?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/2771527407168649646?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/life-cycle-of-applet-applet-can-react.html' title='LIFE CYCLE OF AN APPLET'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;CEYFR30_cSp7ImA9WxBSFkk.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-7700210265021750560</id><published>2009-12-13T04:22:00.000-08:00</published><updated>2009-12-24T00:08:36.349-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-24T00:08:36.349-08:00</app:edited><title>JAVA APPLET</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;Getting Started with applets&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;The HelloWorld applet shown next is a Java class that displays the string "Hello World".&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Following is the source code for the HelloWorld applet:&lt;/span&gt;&lt;/p&gt; &lt;blockquote&gt;&lt;pre&gt;import javax.swing.JApplet;&lt;br /&gt;import javax.swing.SwingUtilities;&lt;br /&gt;import javax.swing.JLabel;&lt;br /&gt;&lt;br /&gt;public class HelloWorld extends JApplet {&lt;br /&gt; //Called when this applet is loaded into the browser.&lt;br /&gt; public void init() {&lt;br /&gt;     //Execute a job on the event-dispatching thread; creating this applet's GUI.&lt;br /&gt;     try {&lt;br /&gt;         SwingUtilities.invokeAndWait(new Runnable() {&lt;br /&gt;             public void run() {&lt;br /&gt;                 JLabel lbl = new JLabel("Hello World");&lt;br /&gt;                 add(lbl);&lt;br /&gt;             }&lt;br /&gt;         });&lt;br /&gt;     } catch (Exception e) {&lt;br /&gt;         System.err.println("createGUI didn't complete successfully");&lt;br /&gt;     }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt; &lt;p  style="font-family:arial;"&gt; &lt;span style="font-size:100%;"&gt;An applet such as this is typically managed and run by the &lt;em&gt;Java Plug-in&lt;/em&gt;  software in the browser.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p face="arial"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-family: arial;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-family: arial;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-family: arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-7700210265021750560?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/7700210265021750560?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/7700210265021750560?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/java-applets-getting-started-with.html' title='JAVA APPLET'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;CEYCSHo4fyp7ImA9WxBSFkk.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-541637983400613872</id><published>2009-12-11T21:50:00.000-08:00</published><updated>2009-12-24T00:09:29.437-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-24T00:09:29.437-08:00</app:edited><title>JAVA ENTERPRISE EDITION</title><content type='html'>&lt;span style=";font-family:arial;font-size:85%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;J2EE (Java 2 Platform, Enterprise Edition) is a Java platform designed for the mainframe-scale computing typical of large enterprises. Sun Microsystems (together with industry partners such as IBM) designed J2EE to simplify application development in a thin client tiered environment. J2EE simplifies application development and decreases the need for programming and programmer training by creating standardized, reusable modular components and by enabling the tier to handle many aspects of programming automatically.&lt;br /&gt;&lt;br /&gt;&lt;span class="bodytext"&gt;&lt;span class="bodytext"&gt;J2EE is a platform-independent, Java-centric environment for developing, building and deploying Web-based enterprise applications online.J2EE includes many components of the Java Standard Edition (J2SE).The J2EE platform consists of a set of services, APIs, and protocols that provide the functionality for developing multitiered, Web-based applications.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;J2EE includes many components of the Java 2 Platform, Standard Edition (J2SE):&lt;/span&gt;&lt;/p&gt;&lt;ul  style="font-family:arial;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;The Java Development Kit (JDK) is included as the core language package.&lt;/span&gt;&lt;/li&gt;&lt;li&gt; &lt;span style="font-size:100%;"&gt;&lt;i&gt;Write Once Run Anywhere&lt;/i&gt; technology is included to ensure portability.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Support is provided for Common Object Request Broker Architecture (CORBA), a predecessor of Enterprise JavaBeans (EJB), so that Java objects can communicate with CORBA objects both locally and over a network through its &lt;i&gt;interface broker&lt;/i&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Java Database Connectivity 2.0 (JDBC), the Java equivalent to Open Database Connectivity (ODBC), is included as the standard interface for Java databases.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;A security model is included to protect data both locally and in Web-based applications.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;J2EE also includes a number of components added to the J2SE model, such as the following:&lt;/span&gt;&lt;/p&gt;&lt;ul  style="font-family:arial;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Full support is included for Enterprise JavaBeans. EJB is a server-based technology for the delivery of program components in an enterprise environment. It supports the Extensible Markup Language (XML) and has enhanced deployment and security features.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;The Java Servlet API (application programming interface) enhances consistency for developers without requiring a graphical user interface (GUI).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;Java Server Pages (JSP) is the Java equivalent to Microsoft's Active Server Pages (ASP) and is used for dynamic Web-enabled data access and manipulation.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The J2EE architecture consists of four major elements:&lt;/span&gt;&lt;/p&gt;&lt;ul  style="font-family:arial;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; The J2EE Application Programming Model is the standard programming model used to facilitate the development of multi-tier, thin client applications.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;The J2EE Platform includes necessary policies and APIs such as the Java servlets and Java Message Service (JMS).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;The J2EE Compatibility Test Suite ensures that J2EE products are compatible with the platform standards.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;The J2EE Reference Implementation explains J2EE capabilities and provides its operational definition.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-541637983400613872?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/541637983400613872?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/541637983400613872?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/java-enterprise-edition-j2ee-java-2_11.html' title='JAVA ENTERPRISE EDITION'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry><entry gd:etag='W/&quot;CEUFSXY6cSp7ImA9WxBSFkk.&quot;'><id>tag:blogger.com,1999:blog-8695730965334070476.post-5616813629900432169</id><published>2009-12-11T21:29:00.000-08:00</published><updated>2009-12-24T00:10:18.819-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-12-24T00:10:18.819-08:00</app:edited><title>JAVA SERVLETS</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Common Gateway Interface (CGI) was one of the first tools for creating webpages with dynamic content. In fact, from reading many early Internet books or articles, one would have the impression that CGI was the only way to create dynamic content. Over time, vendors introduced alternative methods for creating dynamic content. Netscape introduced server-side JavaScript while Microsoft introducted Active Server Pages (ASP).&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;In 1997, Sun introduced Servlets to create webpages with dynamic content. Servlets are used within a web server (in place of CGI scripts) and run inside the Java Virtual Machine (JVM) on the server. Unlike applets, they do not require support for Java in the web browser. Servlets can be run on all major web servers (either directly or via widely available third-party plug-ins).&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;In creating webpages with dynamic content, Servlets also provide an infrastructure to parse/decode the user-submitted HTML form, handle cookies, etc. As such, the Servlet can manage all the presentation aspects of the web application.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Servlets can access database directly (as might be appropriate for a simple web application) or Servlets can derive their dynamic content via a sepearate business layer running on an application server (as would be appropriate for larger web applications).&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Since Servlets follow the standard Sun-defined API, Servlet application code is portable across web servers.&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="sampcode"&gt;&lt;strong&gt;Servlet Code Sample&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The following Servlet code sample generates a webpage which generates a webpage that says "Welcome back, &lt;em&gt;username&lt;/em&gt;" (where username is the current user).&lt;/span&gt;&lt;/p&gt;  &lt;pre  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;import java.io.*;&lt;br /&gt;import javax.sertlet.*;&lt;br /&gt;import javax.servlet.*;&lt;/span&gt;&lt;/pre&gt;  &lt;pre  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;public class WelcomeUser extends HttpServlet {&lt;br /&gt;public void doGet(HttpServletRequest req,&lt;br /&gt;HttpServletResponse res) throws ServletException, IOException {&lt;br /&gt;res.setContentType(“text/html”);&lt;br /&gt;PrintWriter out = res.getWriter();&lt;/span&gt;&lt;/pre&gt;  &lt;pre  style="font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;    out.println(“”);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; out.println(“”);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; out.println(“&lt;/span&gt;&lt;h1  style="font-weight: normal;font-family:trebuchet ms;"&gt; &lt;span style="font-size:78%;"&gt;Welcome back,”);&lt;br /&gt;out.print(“String user = ”);&lt;br /&gt;out.println(“(String) session.getAttribute(‘user’)”);&lt;br /&gt;out.println(user);&lt;br /&gt;out.println(“&lt;/span&gt;&lt;/h1&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;”);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   out.println(“”);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   out.println(“”);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8695730965334070476-5616813629900432169?l=java4-u.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/5616813629900432169?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8695730965334070476/posts/default/5616813629900432169?v=2'/><link rel='alternate' type='text/html' href='http://java4-u.blogspot.com/2009/12/java-servlets-common-gateway-interface.html' title='JAVA SERVLETS'/><author><name>Hansi Creation</name><uri>http://www.blogger.com/profile/02470433416965018883</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='02101433289763192364'/></author></entry></feed>