Showing posts with label TGMC. Show all posts
Showing posts with label TGMC. Show all posts

Sunday, August 19, 2012

Building JAVA Based Localized Web Applications

Posted by Unknown | Sunday, August 19, 2012 | Category: | 8 comments


This tutorial describes how to develop your applications which can be available in different number of local languages like Hindi, Telugu, Tamil or any other language available in this world.
Dont you think your application if available in different languages attract the visitors or users which makes them easy to understand without learning or having trouble in learning and understanding only English???
Yes....to make it possible this is a tutorial which does not make use of any other 3rd party applications like Google Translator or Microsoft Translator in your application.
O.K let us start our tutorial,This tutorial is a simple tutorial which describes the conversion of one message into 2 different languages Telugu and Hindi.
After this tutorial you can develop your java based web applications for different languages.

Before describing the code i will explain few JAVA classes which helps to develop these kind of applications.

1) Locale Object:

Def: A Locale object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the >Locale to tailor information for the user. For example, displaying a number is a locale-sensitive operation--the number should be formatted according to the customs/conventions of the user's native country, region, or culture.
i.e a Locale object can be used for specific country or region to get the country details like language,currency and percentages.
to know more click on the below link

Locale Object from Oracle website

2) ResourceBundle Object:


Resource bundles contain locale-specific objects. When your program needs a locale-specific resource, a String for example, your program can load it from the resource bundle that is appropriate for the current user's locale. In this way, you can write program code that is largely independent of the user's locale isolating most, if not all, of the locale-specific information in resource bundles.
This allows you to write programs that can:
  • be easily localized, or translated, into different languages
  • handle multiple locales at once
  • be easily modified later to support even more locale
to know more about ResourceBundle Class click on the below link


OK these are the 2 classes by which we are going to develop localized applications.


As i said i am going to develop an application which can be customized for 3 languages we need to have 3 text files generally called as properties file which contains name value pairs by which we can access them in our application.

open notepad or notepad++ and create three types of text file

1) Locale_en_EN.properties
2 )Locale_hi_HI.properties
3) Locale_te_TE.properties

Note:
Please paste these three files in classes folder of WEB-INF directory.

these three files holds the "HTML" equivalent values of Hindi and Telugu language code.
to generate HTML  equivalen  code for specific language we have few tools which generate the code according to given English input.Click on the below links to convert English to other languages which generates HTML code.

Telugu Converter            Hindi Converter 

for instance just paste this code in below files

Locale_hi_HI.properties 



 Locale_te_TE.properties 



Locale_en_EN.properties

OK now we have properties file which consists of equivalent code for the english message.

Now create a Dynamic Web Project in Eclipse and Create a java file "index.jsp" and "Locale.jsp".
index.jsp is the index page which displays the message in three languages and "Locale.jsp" is the page which is used to create HttpSession by which we can know which language is chosen by the user at this point of time.

index.jsp
---------------


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.util.*"%>
<%
String locale = (String) session.getAttribute("locale");
if (locale == null)
locale = "en";
Locale c = new Locale(locale, locale);
ResourceBundle captions = ResourceBundle.getBundle("Locale", c);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>JSP Localization</title>
</head>
<body>
<div id="langholder" style="top:15px;">

<a href="Locale.jsp?lang=en">English</a>
<a href="Locale.jsp?lang=te">Telugu</a>
<a href="Locale.jsp?lang=hi">Hindi</a>
</div>
<center>
<%=captions.getString("msg")%>
</center>
</body>
</html>






Locale.jsp
-----------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%
String lang = request.getParameter("lang");
if (lang != null) {
session.setAttribute("locale", lang);
}
response.sendRedirect("index.jsp");
%>

Preview:




Download Localization Example
That;s it friends...now you can develop applications for any number of localized language.





Saturday, August 11, 2012

Web Services Development using Eclipse, Apache CXF 2 Part-2

Posted by Unknown | Saturday, August 11, 2012 | Category: | 1 comments

Hi TGMCians this is a second part of tutorial series of WebServices development using Eclipse and CXF2.
if you have not read the first part please read it here.

Web Services Development using Eclipse, Apache CXF 2

O.K...in this tutorial we are going to develop a servlet which acts as a client for the developed webservice.
this tutorial is not available in the internet...so i am trying to do that for TGMCians.
Before developing our you have to check whether your service deployed correctly in tomcat or not..for checking that point your browser to locate the URL 
here you will find all the available web services which are developed using CXF in your application.

You can find a screen like this where you will find your WebServices WSDL URL.Click on it.


After clicking on the link a WSDL file opens in the browser which is typically a XML file which contains the binding details of the web service its port numbers and other details.

Your WSDL File looks like the below one.

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions name="MultiplyWSService"

 targetNamespace="http://shiva.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

 xmlns:tns="http://shiva.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"

 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">

 <wsdl:types>

  <xs:schema elementFormDefault="unqualified" targetNamespace="http://shiva.com/"

   version="1.0" xmlns:tns="http://shiva.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema">

   <xs:element name="mul" type="tns:mul" />

   <xs:element name="mulResponse" type="tns:mulResponse" />

   <xs:complexType name="mul">

    <xs:sequence>

     <xs:element name="arg0" type="xs:int" />

     <xs:element name="arg1" type="xs:int" />

    </xs:sequence>

   </xs:complexType>

   <xs:complexType name="mulResponse">

    <xs:sequence>

     <xs:element name="return" type="xs:int" />

    </xs:sequence>

   </xs:complexType>

  </xs:schema>

 </wsdl:types>

 <wsdl:message name="mulResponse">

  <wsdl:part name="parameters" element="tns:mulResponse">

  </wsdl:part>

 </wsdl:message>

 <wsdl:message name="mul">

  <wsdl:part name="parameters" element="tns:mul">

  </wsdl:part>

 </wsdl:message>

 <wsdl:portType name="MulSEI">

  <wsdl:operation name="mul">

   <wsdl:input name="mul" message="tns:mul">

   </wsdl:input>

   <wsdl:output name="mulResponse" message="tns:mulResponse">

   </wsdl:output>

  </wsdl:operation>

 </wsdl:portType>

 <wsdl:binding name="MultiplyWSServiceSoapBinding" type="tns:MulSEI">

  <soap:binding style="document"

   transport="http://schemas.xmlsoap.org/soap/http" />

  <wsdl:operation name="mul">

   <soap:operation soapAction="urn:Mul" style="document" />

   <wsdl:input name="mul">

    <soap:body use="literal" />

   </wsdl:input>

   <wsdl:output name="mulResponse">

    <soap:body use="literal" />

   </wsdl:output>

  </wsdl:operation>

 </wsdl:binding>

 <wsdl:service name="MultiplyWSService">

  <wsdl:port name="MultiplyWSPort" binding="tns:MultiplyWSServiceSoapBinding">

   <soap:address

    location="http://localhost:9083/WebServices/services/MultiplyWSPort" />

  </wsdl:port>

 </wsdl:service>

</wsdl:definitions>







Now we need to create a Servlet which invokes a web service method from a web browser.
Create a servlet Names "ServletClient" in "com.servlet" package.

package com.shiva.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.shiva.MulSEI;
import com.shiva.MultiplyWSService;

/**
 * Servlet implementation class ServletClient
 */
@WebServlet("/ServletClient")
public class ServletClient extends HttpServlet {
 private static final long serialVersionUID = 1L;

 /**
  * @see HttpServlet#HttpServlet()
  */
 public ServletClient() {
  super();
  // TODO Auto-generated constructor stub
 }

 /**
  * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
  */
 protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  // TODO Auto-generated method stub


  MultiplyWSService service = new MultiplyWSService();//Creating 
  MulSEI port = service.getMultiplyWSPort(); 
  PrintWriter out=response.getWriter();
  
  out.println(port.mul(Integer.parseInt(request.getParameter("one")), Integer.parseInt(request.getParameter("two"))));  
  out.flush();



 }

 /**
  * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
  */
 protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  // TODO Auto-generated method stub
 }

}




Here we have to notice three main statements which are used to Invoke a webService method.

 1) MultiplyWSService service = new MultiplyWSService();

Which is used to instantiate the servicing class of the Web Service ...here it is "MultiplyWSService".



2)MulSEI port = service.getMultiplyWSPort();

to get the port number of the WebService we have to call the "getMultiplyWSPort()" on the service object of "MultiplyWSService".



3)port.mul(Integer.parseInt(request.getParameter("one")), Integer.parseInt(request.getParameter("two")))

Here we are invoking the actual method of a WebServe which serves us...here we are calling mul method on the Service End Point Interface object "port".

That's it...we have now created our servlet which acts as web service client.


Now you can open this servlet to test whether we have developed correctly or not
http://localhost:9083/WebServices/ServletClient?one=3&two=5






Here you can see the actual communication between our client and server is in the form of SOAP messages which is an XML based protocol through which our application communicates to the server or a web service.

Aug 11, 2012 7:47:19 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://shiva.com/}MultiplyWSService from WSDL: http://localhost:9083/WebServices/services/MultiplyWSPort?wsdl
Aug 11, 2012 7:47:19 PM org.apache.cxf.services.MultiplyWSService.MultiplyWSPort.MulSEI
INFO: Inbound Message
----------------------------
ID: 6
Address: http://localhost:9083/WebServices/services/MultiplyWSPort
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml; charset=UTF-8
Headers: {Accept=[*/*], cache-control=[no-cache], connection=[keep-alive], Content-Length=[186], content-type=[text/xml; charset=UTF-8], host=[localhost:9083], pragma=[no-cache], SOAPAction=["urn:Mul"], user-agent=[Apache CXF 2.5.1]}
Payload: 35
--------------------------------------
Aug 11, 2012 7:47:19 PM org.apache.cxf.services.MultiplyWSService.MultiplyWSPort.MulSEI
INFO: Outbound Message
---------------------------
ID: 6
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: 15
--------------------------------------
That's it we are now developed a WebService and a servlet based client for invoking the service from a web interface you can develop any type of applications by making this tutorial as base. Here I am providing you the sample web application which we have developed now..It is a war file just directly deploy it in tomcat server.

Download WebServices.war

Hope it will be helpful to everyone.

.



Web Services Development using Eclipse, Apache CXF 2

Posted by Unknown | | Category: | 20 comments




Hi TGMCians,From past few days onwards I am hearing the word called “Web Services” in out TGMC forums and other places.Many of you are not aware of WebServices and how to develop them.
This is a tutorial for introduction of Web Services and how to implement that for our TGMC Project, It will be in normal language so that everyone can understand.
Our Ajenda:
1) What is Web Services
2) Web Services Generation by using Eclipse and CXF 2
3) Creating a Web Services Client.
4) Creating a Servlet as Web Services Client.
What is Web Services
Web Services are modern Client-Server  model to develop business applications, It is a specification given based on Service Oriented Architecture. Web Services is not a new technology rather it is a combination of technologies, concepts, specifications and protocols together to develop distributed applications.
                Web Services are…
o   Language Independent
o   Platform independent
o   Architecture Independent

o   Web Based Distributed Technology
o   Web services are application components
o   Web services communicate using open protocols
o   Web services are self-contained and self-describing
o   Web services can be discovered using UDDI
o   Web services can be used by other applications
o   XML is the basis for Web services
o   Web Services can convert your applications into Web-applications.
o   Web Services are published, found, and used through the Web.


Web Services are used mainly for intercommunication between the incompatible software applications. For ex: If we need to communicate to an application developed using ASP.net can be communicated with an application developed using JAVA technology because of Web Services.
I.e in webServices based distributed application server can be developed in any type of language and client can be developed in any language as the communication between the applications are based on XML technology.
Different Types of technologies, protocols used for developing a Web Service
                XML
                SOAP (Simple Object Oriented Protocol)
                HTTP
                WSDL
                UDDI
                JAVA/J2EE APIs
                . NET API’s etc.
In web Services we have different types of components
                Service Provider – It is the server application that contains interoperability business components, it is the actual component where we perform business logic and can be accessed by other clients.
                Service Client – It is the client application that invokes the business methods of the business component.
                Service Interface – It is a WSDL Document which contains all the data in the form of XML through which we can communicate to the service.
                Service Registry – It is a UDDI Registry in which our service is registered with the server.
O.K…. We got some info on what are webServices and where to use them, Now we move into the process of development of these observances with a sample application.
                               



Web Services Generation by using Eclipse, CXF 2 and Tomcat Server
Before developing our webservices we need to have a Eclipse IDE,Eclipse Web Tools Package installed in it and Apacke CXF2 WebServices Runtime.
If you don’t have Eclipse WTP installed in your Eclipse please add a repository to Eclipse Update Site and Install it “http://download.eclipse.org/webtools/repository/indigo/” and install it.
After Installing Eclipse WTP
Download Apache CXF2 and extract it in a temporary directory
Now Go to Window->Preferences->WebServices->CXF2.x Preferences
In CXF Runtime Tab click on “add” and specify the home directory of CXF(Just now which is extracted). Click on finish.
Now select the CXF Runtime and click on apply and click on OK.
That’s it now we can develop our WebService and Test it using a WebServices Explore.
Note:Please see the below images if u are not understood.





Developing our First WebService and its client to Test the Service.
We will now develop our first WebService which calculates the sum and multiplication of two numbers.
Note:Please follow step by step procedure with utmost care and same as I said..after few developments you can use your own comfortable way.

1)Create a Dynamic Web Project in Eclipse names “WebServices”(You can put your own name).


2) Select a target run time  (Here Tomcat 7) and In Configuration click on modifying and select CXF2 WebServices as Project Facets to our application. Click on OK and click on finish

3) Create a new class as I have shown below with a name “MultiplicationWS”,Default code will be generated as below.


4) Create a code for multiplication with a method name called “mul” with int a,int b as parameters.Right click on MultiplicationWS.java -> Web Services -> Create Web Service



5) Select Web Service Type as Bottom Up Java Bean Service and Check configuration… Check Server runtime, Web Service Runtime(If it is other than CXF2 as shown below….click on it and change runtime to CXF2) 

6)Click on Next Check Use a Service Endpoint Interface,Check on Create an SEI and name “MulSEI” and select the methods “mul” and click on next.

7)Leave this default and click on next.

8)Here you will select the type of SOAP binding and what to generate check on “generate wrapper and fault beans and generate WSDL”. Click on finish.
Note:Before doing this please ensure that the server is running.


9)Now to test the developed WebService right click on WebContent->wsdl->MultiplicationWS.wsdl->WebServices->Test With Web Services Explorer.

10) This is a web service explorer where we can find the end points and methods…click on mul method to test it.

11)Here provide parameters ‘a’ and ‘b’ and click on the go …now you can find the answer of multiplication of a & b;


12)Now we are going to create a JAVA Based client for testing our service… Click on WSD File ->WebServices->Generate Client

 13)click on next.
14)Here we have to specify the package name leave as default or change as I did…! and click next.

15)leave the default and click finish.

16)Now you can see the generated java files for client implementation in the package “com.shiva.client” and open “MulSEI_MultiplyWSPOrt_client.java” there u can find the  default values for arguments of methods…change the def values as you need and run that as java application…that’s it now we have created a service and tested with the client.




Hmm….the post became too long so I will stop this post here and I will continue next post which contains invoking a web service method using a servlet and passing data through a web based interface.

Please follow the second part of this tutorial which explains how to create a servlet as a client for our created webService.


Web Services Development using Eclipse, Apache CXF 2 Part-2

Please do comments if you have any doubts or any queries.


Thursday, July 19, 2012

Which IBM Tools for which purpose???

Posted by Unknown | Thursday, July 19, 2012 | Category: , , , , | 1 comments


Hi TGMCians,



I am sure that most of beginners in development are confused about which software or tool should be used for which purpose???

Yeah… even I was confused when I was a beginner and I was in a dilemma for a few days… so I thought I can help you in some way of getting rid of this confusion.

In any software development we should undergo few processes…we have to use some tools depending on the process we have to do.

The common processes we have to undergo in a project development includes

1) Modeling (UML Diagram Designing)

2) Preparing SRS (Documentation)

3) Development (Code Development, Database Development and managing both)

4) Testing


Note: I am going to describe the tools used according to TGMC Projects… for other projects you can use the same type of tools provided by different vendors.

Now I will try to explain the software’s or tools that can be used for above 4 processes.

1) Modeling

Modeling means designing UML Diagrams which are nothing but representing the flow control of the project using pictorial representation.

We can do it either by using Rational Rose or Rational Software Architect which helps in designing UML Diagrams in easiest way.

2) Preparing SRS

SRS (Software Requirement Specification) is a document which is used to specify project requirements,functions,Architecture and other requirements for a software development process.

According to Wikipedia SRS is a requirements specification for a software system – is a complete description of the behavior of a system to be developed and may include a set of use cases that describe interactions the users will have with the software. In addition it also contains non-functional requirements. Nonfunctional requirements impose constraints on the design or implementation (such as performance engineering requirements, quality standards, or design constraints), and are sometimes referred to as "ilities".

For documentation purpose we can use IBM LOTUS SYMPHONY Software which is a documentation software by which we can create presentations, word documents and Spreadsheets. We can even generate word document to PDF format by which we can submit directly to TGMC.

Download Lotus Symphony

Know more about how to create SRS for TGMC Project




3) Development

Development of a software project is the actual task we have to do to create our ideas into implementations.

Development is basically involves with few types of tools which are used for development and deployment easy.


A) Platform


Platform in general is the operating system you are using to develop your software project, Most used operating systems for development are Linux(UBUNTU,FEDORA,RED HAT LINUX),Windows Solaris and other operating systems which I don’t know(Sorry for this).


TGMC Awards more points if you develop your project using Linux Based operating systems than windows based systems. Moreover Linux operating systems are open source operating systems so you need not to worry of buying a product.


Download UBUNTU


Download Fedora


B) IDE(Integrated Development Environment)


IDE is a software program which makes the development, deployment simpler, faster and easier. It is a graphical Interface which provides an environment for development of project. It generally consists of a source code editor, Build Automation tools includes a compiler,packager,running tests, deployment and documentation(for us it is JAVA Docs) and Debugger.


In TGMC we can basically use two IDE’s Eclipse and RAD (Rational Application Developer) which provides an awesome environment for developing Java based applications and provides Server Integration.


RAD is built on eclipse which is an extension of eclipse and it provides a wide range of development tools and also integrates IBM WAS (Web Sphere Application Server) which is used as the Application Server.


Download Eclipse


Download RAD


C) Application Server or Web Server


Application server or web server is a tool which is used for serving web pages when receives a request from the client as it built on request-response mechanism which is used for serving clients.


It does mainly two tasks one is Input/output Operations like serving web pages and managing networking activities through http or https protocols which are basically used for web applications.


It is responsible for compilation, execution and maintaining our application


We can use either WASCE (WebSphere Application Server Community Edition) which is a cost free server which can be downloaded from IBM website and WAS(WebSphere Application Server).






Download WAS


Download WASCE






D) Database Server


A database server is a computer program that provides database services to other computer programs or computers, as defined by the client–server model. The term may also refer to a computer dedicated to running such a program. Database management systems frequently provide database server functionality, and some DBMSs (e.g., DB2, MySQL) rely exclusively on the client–server model for database access.


Such a server is accessed either through a "front end" running on the user’s computer which displays requested data or the "back end" which runs on the server and handles tasks such as data analysis and storage.


Though there are many database servers available we have to use IBM DB2 which has a wide range of features and provides greater security and reliability for the databases.


Download DB2 Know More About DB2




4) Testing

Testing is the last phase of project development before deployment.

According to Wikipedia


Software testing is an investigation conducted to provide stakeholders with information about the quality of the product or service under test. Software testing can also provide an objective, independent view of the software to allow the business to appreciate and understand the risks of software implementation. Test techniques include, but are not limited to, the process of executing a program or application with the intent of finding software bugs (errors or other defects).

Software testing can be stated as the process of validating and verifying that a software program/application/product:


1) Meets the requirements that guided its design and development


2) works as expected


3) can be implemented with the same characteristics


4) Satisfies the needs of stakeholders


We can do testing by two ways. Manually and using tools.


Manual testing does not need any software as we are the testers for testing manually for above characteristics.


Tools Testing


We can do testing of our project by using many tools but for our TGMC Project we can use IBM RFT (Rational Functional Tester)


The Rational Functional Tester software is an automated tool which provides testers with automated testing capabilities for functional testing, regression testing, and GUI testing and data-driven testing.


Download RFT Trial






These are basically we used to develop a TGMC Project.if you have any doubts please comment below.


Thank You!

Sunday, July 15, 2012

The Great Mind Challenge 2010 - Annual Memorabilia Book

Posted by Unknown | Sunday, July 15, 2012 | Category: , | 0 comments



Monday, June 4, 2012

How To Prepare SRS for TGMC Project!

Posted by Unknown | Monday, June 4, 2012 | Category: , , , , , | 3 comments





Hi Folks,
This is an article exclusively for TGMCians who are in their first stage of TGMC Competition, i.e Preparing SRS for their selected projects.
As a TGMCian I faced a lot of problems while creating my first SRS in TGMC 2010,and me and vikas are here to explain about what is SRS and how to create it for TGMC projects.
Before starting your SRS I would like to let you know what SRS is and what tools are used to create SRS for TGMC projects.
SRS is a Software Requirements Specification is a comprehensive description of the intended purpose and environment for software under development. The SRS fully describes what the software will do and how it will be expected to perform.
An SRS minimizes the time and effort required by developers to achieve desired goals and also minimizes the development cost. A good SRS defines how an application will interact with system hardware, other programs and human users in a wide variety of real-world situations. Parameters such as operating speed, response time, availability, portability, maintainability, footprint, security and speed of recovery from adverse events are evaluated. Methods of defining an SRS are described by the IEEE (Institute of Electrical and Electronics Engineers) specification.
OK now I think you are aware of what SRS is and why it is used in software development.
Now I will let you know which tools are to be used for creating TGMC SRS for better points.
Always keep in mind that we have to use IBM tools in the entire project, so for creating SRS we use Lotus Symphony an IBM tool for documentation we can prepare Documents, Presentations, etc. using this tool.
It is just like Microsoft Word but it is developed by IBM and we have to use Lotus Symphony. We can even use Microsoft Word but we get more points if you use IBM tools for everything.


In SRS we have to design Models using UML Language to describe the flow of the project, use cases etc.
For designing UML Diagrams we can use Rational Rose or RSA(Rational Software Architect) or Rational Software Modeler, we use Rational Rose or RSA for modeling.
Download Rose


O.K. we have tools to create SRS for our project.
Well before start writing your SRS you have to analyze your project in a better way, i.e. you have to know what should you do and by which you should do and how should you do.
This makes creating a good SRS, good SRS is not good looking SRS, SRS is good if the content in SRS is good not its look.
Before Creating your own SRS have a look at few SRS’s already created, I am making available few SRS’s which are created for previous years TGMC projects.

Hmm hope this may help you out!
Ok now we discuss about a brief introduction of writing contents for SRS.

Introduction
In this section you have to introduce your projects in your terms, do this after completely analyzing your project and make sure you give a good introduction to your project.

Purpose
The name itself tells us to describe about the purpose of the project, describe why you have to going to develop this project. And if possible explain the older system for which you are going to develop a new system.

Scope
The scope of the project is to describe the basic features of the project going to be implemented in your project.

Definitions, Acronyms, and Abbreviations
In this section you have to mention the abbreviations ,definitions of the technologies and tools you are going to use in your project, for example see the SRS’s given above.

References

Mention the references from where you came to know about a project or something which helped you to do your SRS.it may include links, books, authors, etc..!

Technologies Used

Describe the technologies which you have used and going to be used for project development.

Tools Used

Describe the tools which you have used and going to be used for project development.

Product Perspective

Describe the architecture used for project development or some limitations or protocols used for your project.

Software Interface

Mention the software requirements like what software is used to run your project for both client and server side like operating system, tools needed etc.

Hardware Interference

Mention the hardware requirements like what hardware is used to run your project for both client and server side. Which may include RAM, HARD DISK SPACE, and PROCESSOR etc.!

Product Functions

Briefly explain the functions and features of your project.

User characteristics

Describe the user characteristics like what types of users can access your system, what skills should users have and user interface used etc.

Constraints

It can be limitations of your project.

Architecture Design

Give a pictorial Representation of architecture used for your project.

Use Case Model Description

It is a complete overview of total use cases of your project

Class Diagram, Sequence Diagram, Use case Diagrams, ER Diagram and other UML Diagrams are going to be discussed in other sessions with examples and how to use tools and etc.


Assumptions and Dependencies

The name suggests what you have to be described in this section.
Supplementary Requirements
Supplementary requirements include other requirements which are beyond functional requirements. This may include,

Server Configuration
Database Backups
User Friendly Interface
Safety Requirements
Security Requirements etc.

That’s all folks, hope it helped you to some extent!

Wednesday, November 30, 2011

Installing Rational Application Developer on UBUNTU

Posted by Unknown | Wednesday, November 30, 2011 | Category: , , , , | 15 comments

Hi friends today i am going to explain how to install Rational Application Developer in UBUNTU(Linux)!

Follow the below steps to install




  1. Boot Ubuntu and log in.
  2. Open a command prompt and type the following to change your default shell from dash to bash:
    $ sudo dpkg-reconfigure dash
  3. Download and install the following debian package: http://packages.ubuntu.com/jaunty/libs/libstdc++5 - as RAD requires this and Ubuntu 10.04 ships only with a newer version.
  4. Insert RAD Setup Disk and run the following commands (launchpad.sh complains if you're not root):
    $ cd /media/rad_bundle_disk1
    $ sudo ./launchpad.sh
  5. Select "Install IBM Rational Application Developer for WebSphere Software".  Follow the prompts to install IBM Installation Manager and wait for it to restart.
  6. Select "Install IBM Rational Application Developer for WebSphere Software" (again!).
  7. Close the launchpad/Firefox window.  Either close your Terminal window (from Step 4) or cd out of /media/rad_bundle_disk1.  This allows the currently mounted CD to be unmounted by Ubuntu later when you need to change discs.
  8. Go back to IBM Installation Manager and select Install.  Update IBM Installation Manager if prompted.
  9. Select RAD7.5 and WebSphere 7.0 test environment, agree to the license, Click through and accept the default installation components.  (Personally, I disable administrative security on the profile).
  10. The installer will trundle away for an hour or so.  Click Finish when done.
  11. You're getting there...  Create the following script (/opt/IBM/SDP/launchEclipse.sh) for launching RAD as a lot of people have had troubles with this GDK_NATIVE_WINDOWS setting:
    #!/bin/sh
    export GDK_NATIVE_WINDOWS=true
    /opt/IBM/SDP/eclipse
    Set this script to executable:
    $ sudo chmod 755 /opt/IBM/SDP/launchEclipse.sh
  12. RAD/eclipse has been installed as root, and (for me anyway) it didn't put the IBM InstallationManager or RAD in the Ubuntu Applications menu.  So I created my own Application Launchers:

    Name: RAD7.5
    Command: /opt/IBM/SDP/launchEclipse.sh
    Icon: /opt/IBM/SDP/rad/RAD_v7_16.xpm

    Name: IBM Installation Manager
    Command: gksudo /opt/IBM/InstallationManager/eclipse/launcher
    Icon: /opt/IBM/InstallationManager/eclipse/documentation/IIM_32.xpm
  13. Before launching I also needed to add the following line to /opt/IBM/SDP/eclipse.ini, to fix an issue where eclipse will crash on the Welcome screen for a new workspace:
    -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner
  14. If you want to run RAD *not* as root, you'll need to add write permissions to the following directory so RAD can interact with your WAS test environment profile (which is only writable by root as this is the user we used to install RAD):
    $ sudo chmod -R 777 /opt/IBM/SDP/runtimes/base_v7/profiles
That's it!  You should now be able to run RAD from your Application Launcher.

Saturday, November 19, 2011

Install server adaptor for WASCE in eclipse!

Posted by Unknown | Saturday, November 19, 2011 | Category: | 2 comments

Hi friends today i am going to explain how to install WTP server adaptor for  IBM WebSphere Application Server Community Edition
Note:The process is same for any version of WASCE
Pre Requirements :
1) Eclipse must be installed already
2)WASCE must be installed
We can install it in two ways , i am going to explain the first way of installing
1)Using eclipse update site
2)Manually downloading and installing the server adaptor in eclipse

Method1:
Please follow the below procedures

1)Open Eclipse perspective and click on help->Install new software


Note:If u cant see the images properly please click on it .....


2)In work with text box enter this URL 

http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/updates/

This is the WebSphere update site for eclipse







3)Check on the WASCE version adaptor to be installed and click on next






4)wait some time and click next when you see this screen


 5)Accept the agreement and click on finish




6)You can see the installation progress like this



 7)After sometime u can see the box like this check on it and click ok


8) At  ast after installation completed please restart the Eclipse





That's all friends if any doubts please comment!!!