Wednesday, July 9, 2014

DB2 CHAR VS VARCHAR

CHAR

VARCHAR disadvantages:
- uses 2 extra bytes to store the length
-  needs a little extra effort when storing and manipulating length of VARCHAR -> may affect efficiency


General Rule:
  • Use CHAR if average length of field is more than 6 bytes to save space
    • if average length of field is less than 6 bytes, there will be no storage savings for using char
  • Use varchar for columns with more that 30 characters (can be shorter for others)

Monday, May 12, 2014

Creating a SOAP Web Service


1. Create the Java class with methods you want to be converted as web service
2. Add a WebService annotation to the class
3. Add WebMethod annotation to the web service method. This is optional. All public methods of the web service class are automatically considered a web service method.

Example:
@WebService
public class BookStore{
@WebMethod
 public List<String> getBookNames() {
 }
}
This will create a web service class called BookStoreService.

Wednesday, May 7, 2014

Consuming a Web Service

What you need:
- wsdl source

1. Use wsimport tool from java se. In command line enter:
wsimport -keep -s , e.g. wsimport -keep -s src
-keep - keep generated files (.java files)

2. Import the the java files in your project and use them as stubs to call the webservice method(s). The name of the stub you can use can be found in the wsdl:service tag of the wsdl.
Ex.
 name="CurrencyConvertor">

CurrencyConvertor cc = new CurrencyConvertor();
CurrencyConvertorSoap ccs = cc.getCurrencyConvertorSoap();




Thursday, April 17, 2014

Scrum

Scrum

 - one of the best Agile practices

Product back log

 - user stories/wish list

Roles

  • product owner - chooses what to deliver from product back log
  • scrum master - similar to PM
  • developers
  • testers
  • customers
  • executives

Release planning

  • release backlog with estimates
    estimate by story point
    estimate by hour - 1, 2, 4, 8 hours or 2, 3, 5, 10 days or 1, 2 , 3, 6 months
  • sprints - short duration milestones (2 to 30 days) - > ship ready state
  • burndown chart - work remaining by time(day) chart
    burndown velocity - ave. rate of productivity, slope
  • sprint backlog
  • daily scrum - stand up meetings, completed tasks & obstacles
  • sprint restrospective - what went right? and what went wrong/areas of improvement?

Software Development Methodologies

A software development methodology or system development methodology in software engineering is a framework that is used to structure, plan, and control the process of developing an information system. 

Broadly these are:
  1. Software development life cycle methodology
  2. Agile methodology 

There are many models under these methodologies
  1. Software development life cycle:
    • Waterfall: a linear framework 
    • Spiral: a combined linear-iterative framework 
    • Incremental: a combined linear-iterative framework or V Model 
    • Prototyping: an iterative framework 
    • Rapid application development (RAD): an iterative framework
  2. Agile methodology:
    • Scrum 
    • Extreme programming
    • Adaptive software development (ASD) 
    • Dynamic system development method (DSDM)
Sources:
http://www.itinfo.am/eng/software-development-methodologies
http://en.wikipedia.org/wiki/Software_development_methodology

Saturday, April 12, 2014

GlassFish Basics

domain1
- default domain created during installation of GlassFish
- {glassfish.dir}/glassfish/domains/domain1

Start/stop of server
- in {glassfish.dir}/bin run command: asadmin start-domain or asadmin stop-domain

Console
- http://localhost:4848/




Thursday, January 16, 2014

Getting Started with Apache Tomcat

Requirements:

  • compatible JDK

Steps:

  1. Download Tomcat at http://tomcat.apache.org/download-60.cgi
  2. Install Tomcat. http://tomcat.apache.org/tomcat-6.0-doc/setup.html
    Complete Intructions: see RUNNING.txt
    Environment variables to set:
    CATALINA_HOME - location of root directory of Tomcat bin
         - Ex. CATALINA_HOME=C:\Apps\apache-tomcat-6.0.37
    CATALINA_BASE - location of active Tomcat, defaults to CATALINA_HOME
    JRE_HOME or JAVA_HOME - If both JRE_HOME and JAVA_HOME are specified, JRE_HOME is used.
         - Ex. JAVA_HOME=C:\Apps\Java\jdk150_15
  3. sdas
Source:
http://tomcat.apache.org