Tuesday, January 19, 2010

Friday, January 15, 2010

Thursday, January 7, 2010

Maven - POM

What is POM?
Project Object Model

Maven Coordinates
  • groupId
  • artifactId
  • version
  • packaging
  • classifier
POM Relationships
  • dependencies
  • exclusions
  • inheritances
  • the super POM
  • dependencies management
Aggregation
  • aggregation vs inheritance
  • properties
Build Settings

BaseBuild Element Set
  • resources
  • plugins
  • plugin management
Build Element Set
  • directories
  • extensions
Reporting

More Project Information
  • licences
  • organization
  • developers
  • contributors
Environment Settings
  • issue management
  • continuous integration management
  • mailing lists
  • scm
  • repositories
  • plugin repositories
  • distribution management
  • profiles

Event Based Programming (EBP)

//todo

Declarative Programming

//todo

Component Oriented Programming (COP)

//todo

Aspect Oriented Programming (AOP)

//todo

Separation of API (or Interface) from Implementation

//TODO

Separation of Concerns (SoC)

// TODO

Inversion of Control (IoC)

// TODO

Pico Container Exploration

Suddenly an interesting framework jump into my eye: pico container. Feeling very excited to explore it a bit.

Monday, January 4, 2010

Publish WSDL as Web Service in Eclipse with Tomcat 6.0+Axis 2



NOTICE: THIS POST IS NOT FULLY WORKING, SOME UPDATES ARE EXPECTED
Some basic stuff needs to be recalled from time to time.

1. Download distributions from official sites
  • Eclipse 3.5
  • Tomcat 6.0
  • Axis 2
2 Configure Eclipse with Axis

Open Preference->Web Services->Axis 2 Preferences, choose Axis 2 root folder as Axis runtime location. Confirm OK.

3. Create Tomcat Server instance in Eclipse and choose Tomcat 6.0 as runtime.

4. Create New Dynamic Web Project

Create project named "webservice"

5. Configure Web Project with Axis

Open project properties, choose tab "target runtimes", click on "uninstall facets". In the open panel, tick the checkbox on "axis 2 web services", confirm finish.
6. Create Simple Service

package pkg;

public class MyService {

public String getGreeting(String name) {

return "Hello " + name + "!";

}

}


7. Create WSDL from Service

Right click on MyService.java, choose Web Service->create Web service. Click on configuration->web service runtime, select Apache axis 2. Check publish service, click OK.

8. Start Server
It was done together with 7.

9. Create WSDL

Right click on MyService.java, choose Web Service->create Web service. Keep clicking next and ignore error.

10. Test Web Service

Choose from run->lauch web service explorer, open a new tab. Click on WSDL Page on right hand corner of Web Service Explorer. Click on WSDL Main, and choose browse from Action panel at right side. Choose webservice as workspace project, choose MyService.wsdl. Click GO. Click on operation "getGreeting" and enter any String for testing. Click GO and check response.