Logo

Navigation
  • Home
  • Services
    • ERP Solutions
    • Implementation Solutions
    • Support and Maintenance Solutions
    • Custom Solutions
    • Upgrade Solutions
    • Training and Mentoring
    • Web Solutions
    • Production Support
    • Architecture Designing
    • Independent Validation and Testing Services
    • Infrastructure Management
  • Expertise
    • Microsoft Development Expertise
    • Mobile Development
    • SQL Server Database and BI
    • SAP BI, SAP Hana, SAP BO
    • Oracle and BI
    • Oracle RAC
  • Technical Training
    • Learn Data Management
      • Business Intelligence
      • Data Mining
      • Data Modeling
      • Data Warehousing
      • Disaster Recovery
    • Learn Concepts
      • Application Development
      • Client Server
      • Cloud Computing Tutorials
      • Cluster Computing
      • CRM Tutorial
      • EDI Tutorials
      • ERP Tutorials
      • NLP
      • OOPS
      • Concepts
      • SOA Tutorial
      • Supply Chain
      • Technology Trends
      • UML
      • Virtualization
      • Web 2.0
    • Learn Java
      • JavaScript Tutorial
      • JSP Tutorials
      • J2EE
    • Learn Microsoft
      • MSAS
      • ASP.NET
      • ASP.NET 2.0
      • C Sharp
      • MS Project Training
      • Silverlight
      • SQL Server 2005
      • VB.NET 2005
    • Learn Networking
      • Networking
      • Wireless
    • Learn Oracle
      • Oracle 10g
      • PL/SQL
      • Oracle 11g Tutorials
      • Oracle 9i
      • Oracle Apps
    • Learn Programming
      • Ajax Tutorial
      • C Language
      • C++ Tutorials
      • CSS Tutorial
      • CSS3 Tutorial
      • JavaScript Tutorial
      • jQuery Tutorial
      • MainFrame
      • PHP Tutorial
      • VBScript Tutorial
      • XML Tutorial
    • Learn Software Testing
      • Software Testing Types
      • SQA
      • Testing
  • Career Training
    • Career Improvement
      • Career Articles
      • Certification Articles
      • Conflict Management
      • Core Skills
      • Decision Making
      • Entrepreneurship
      • Goal Setting
      • Life Skills
      • Performance Development
      • Personal Excellence
      • Personality Development
      • Problem Solving
      • Relationship Management
      • Self Confidence
      • Self Supervision
      • Social Networking
      • Strategic Planning
      • Time Management
    • Education Help
      • Career Tracks
      • Essay Writing
      • Internship Tips
      • Online Education
      • Scholarships
      • Student Loans
    • Managerial Skills
      • Business Communication
      • Business Networking
      • Facilitator Skills
      • Managing Change
      • Marketing Management
      • Meeting Management
      • Process Management
      • Project Management
      • Project Management Life Cycle
      • Project Management Process
      • Project Risk Management
      • Relationship Management
      • Task Management
      • Team Building
      • Virtual Team Management
    • Essential Life Skills
      • Anger Management
      • Anxiety Management
      • Attitude Development
      • Coaching and Mentoring
      • Emotional Intelligence
      • Stress Management
      • Positive Thinking
    • Communication Skills
      • Conversation Skills
      • Cross Culture Competence
      • English Vocabulary
      • Listening Skills
      • Public Speaking Skills
      • Questioning Skills
    • Soft Skills
      • Assertive Skills
      • Influence Skills
      • Leadership Skills
      • Memory Skills
      • People Skills
      • Presentation Skills
    • Finding a Job
      • Etiquette Tips
      • Group Discussions
      • HR Interviews
      • Interview Notes
      • Job Search Tips
      • Resume Tips
      • Sample Resumes
 

How To Create a Java Server Application

By Exforsys | on July 3, 2006 |
J2EE

How To Create a Java Server Application

The invention of the internet and web browsers has had a massive impact on the way people send and receive information. If you are like many people, you probably get your news and other important information from the internet.

However, there are some limits to what web browsers can do. Because they are dependent on HTTP, they are heavily limited in their capabilities. Those who work with web applications on a daily basis are well aware of the many problems web browsers have which are dependent on HTTP. They are trying to improve this with what is called Web 2.0. In addition to Web 2.0, other applications such as Lazlo, Flex, and AJAX are being used as well.

The purpose of these tools is to enhance the abilities of thin web applications. However, there are some methods for doing this which are better than others. Both web applications and desktop programs each have their strengths and weaknesses. It is best to design a thick client for your users while simultaneously maintaining a standard J2EE/Web program structure. In this tutorial I will show you how to do this effectively. We will be using a stock trading program as an example. Before you get started, there are a number of things you will need. You will need a J2EE web server, Eclipse 3.1.2, Java 5, MyEclipse 4.1.1, and a servlet container. You will also need Spring 1.2+. You are also required to have an advanced understanding of these tools.

Before we start, you will want to make sure you are working with the JDK instead of just the JRE. To do this, you will want to go to "Windows" and look under "Preferences."You will now want to open the "Java" node and click on the menu which says "Installed JRE." You will now want to click on "Add" and then click on the "Browse" menu under the "JRE Home Directory." After you’ve done this, you will want to look at the Java_Home directory. Once you find it, click "Ok." Now you will want to key in "JDK" under "JRE Name." Once you’ve done this, you will want to click on the "Ok" button. It is also important to make sure the "JDK" box is checked. Clicking ok will allow you to exit the Windows/Preferences menu.

For this illustration we will be using a program called Tomcat. When you install Tomcat, it is important to make sure this program is installed in a nonwhite directory. For example, c:\Program Files\Java will not work correctly. The RMI Server will not work with Tomcat unless it is installed with no spaces. An example of where you can install Tomcat is c:\devtools\java\apache-file-6.6.18. As you can see, there are no white spaces. If you see anything which has white spaces, you will want to make sure it is corrected.

The program that you will want to work with next is called Spring. When you download Spring, make sure it has dependencies. The reason for this is because it will have some libraries that you will find to be useful. In addition to this, you will also want to download the javadoc and source. Once you are done downloading the file, unzip it. The next thing you will want to do is start a project for Java in Eclipse. To do this you will want to click on "File." Under File you will want to click on "New" and then "Project." Under "Project" you will want to pick "Java Project" and then press the "Next" button. When you do this, a "New Project Wizard" should appear on your screen.



Look under MyEclipse and then J2EE Projects. Under this menu, you will want to pick Web Project. Within this menu, you will want to click on Next. You will want to name this project Stocktradeserver. After this you will want to pick a location. After picking the location, you will want to click on the "Finish" button. Once you’ve accomplished this, you will want to add some new libraries. You will then want to combine the Spring Framework with your project. Doing this will allow you to successfully generate the Java server program. By doing this, you will dramatically increase the capabilities of your system. While standard web browsers may be limited because of HTTP, you can enhance their capabilites by using these steps.

« « How Code Reviews and PMD Can Crush Bugs In Your Code
How To Choose The Style Of Your Essay » »

Author Description

Avatar

Editorial Team at Exforsys is a team of IT Consulting and Training team led by Chandra Vennapoosa.

Free Training

RSSSubscribe 401 Followers
  • Popular
  • Recent
  • JSP Basics

    May 7, 2006 - 0 Comment
  • How To Use Java DB as Your Client Mobile Database

    July 14, 2006 - 0 Comment
  • Future of Java Technology

    November 26, 2005 - 0 Comment
  • Antipatterns In Java Programs

    July 1, 2006 - 0 Comment
  • Java Overview

    July 17, 2006 - 0 Comment
  • Is Ejb really significant in enterprise applications?

    November 26, 2005 - 0 Comment
  • How a Profiler Can Improve Your Java Applications

    July 1, 2006 - 0 Comment
  • Java Virtual Machine

    July 13, 2006 - 0 Comment
  • Java for Stand-Alone Applications

    November 26, 2005 - 0 Comment
  • How Code Reviews and PMD Can Crush Bugs In Your Code

    July 3, 2006 - 0 Comment
  • Why It is Important To Focus On Java Exceptions For Your Programs

    July 27, 2006 - 0 Comment
  • Important Features of Java – Multithreading, AWT

    July 26, 2006 - 0 Comment
  • What You Should Know About Java XML

    July 25, 2006 - 0 Comment
  • What You Can Do To Deal With Java’s Memory Retention Problems

    July 22, 2006 - 0 Comment
  • Java Overview

    July 17, 2006 - 0 Comment
  • How To Use Java DB as Your Client Mobile Database

    July 14, 2006 - 0 Comment
  • How To Run J2ME Programs on Palm Devices

    July 14, 2006 - 0 Comment
  • Java Virtual Machine

    July 13, 2006 - 0 Comment
  • Quickly Develop Java Programs With Tapestry

    July 12, 2006 - 0 Comment
  • A Java TOC2 Class Which Can Contact Aim

    July 12, 2006 - 0 Comment

Exforsys e-Newsletter

ebook
 

Related Articles

  • Why It is Important To Focus On Java Exceptions For Your Programs
  • Important Features of Java – Multithreading, AWT
  • What You Should Know About Java XML
  • What You Can Do To Deal With Java’s Memory Retention Problems
  • Java Overview

Latest Articles

  • Project Management Techniques
  • Product Development Best Practices
  • Importance of Quality Data Management
  • How to Maximize Quality Assurance
  • Utilizing Effective Quality Assurance Strategies
  • Sitemap
  • Privacy Policy
  • DMCA
  • Trademark Information
  • Contact Us
© 2022. All Rights Reserved.IT Training and Consulting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy
Necessary Always Enabled