Tuesday, November 20, 2007

Qi4j introduces Composite Oriented Programming

http://www.infoq.com/news/2007/11/qi4j-intro
http://www.qi4j.org

See the introducing in the web site.

What is Qi4j?

The short answer is that Qi4j is a framework for domain centric application development, including evolved concepts from AOP, DI and DDD.

Qi4j is an implementation of Composite Oriented Programming, using the standard Java 5 platform, without the use of any pre-processors or new language elements. Everything you know from Java 5 still applies and you can leverage both your experience and toolkits to become more productive with Composite Oriented Programming today.


As Rickard Öberg and Niclas Hedhman are the founders of the project. So we need pay attention on this project.

Rickard Öberg, the former JBoss, Webwork and XDoclet founder.
Niclas Hedhman a long-term Java framework developer and now active Apache member

Spring 2.5 was released

http://www.springframework.org/node/561

Spring 2.5 enhances Spring 2.0 with many exciting new features, including:

  • Full Java 6 and Java EE 5 support (JDBC 4.0, JTA 1.1, JavaMail 1.4, JAX-WS 2.0)
  • Full-featured annotation-driven dependency injection, including support for 'qualifiers'
  • Support for auto-detecting application components in the classpath and auto-configuring them as Spring managed objects
  • A new bean name pointcut element in AspectJ pointcut expressions
  • Built-in support for AspectJ load-time weaving based on the LoadTimeWeaver abstraction
  • New XML configuration namespaces "context" and "jms", for maximum convenience
  • A completely revised integration test framework, with first-class support for JUnit 4 and TestNG
  • A new annotation-based controller model for Spring MVC supporting Servlet and Portlet environments
  • Extended SimpleJdbcTemplate functionality, including support for named SQL parameters
  • Officially certified WebSphere support
  • The packaging of Spring Framework jars as OSGi-compliant bundles out of the box
  • The ability to deploy a Spring ApplicationContext as a JCA RAR file, for headless application modules
  • JCA 1.5 message endpoint management, for Spring-managed JMS and CCI message listeners

Friday, November 09, 2007

Configurate NIS on Unbuntu Linux

For Ubuntu7.0.4

  • Install nis service
> sudo apt-get install nis
  • Install autofs service

> sudo apt-get install autofs

  • Edit /etc/auto.master and add the following lines
/home auto.home --timeout=10000
  • Edit /etc/yp.conf and add the following lines
domain www.kongxx.com server xxx.xxx.xxx.xxx
  • Backup /etc/nsswitch.conf, and create a new file and add the following lines
passwd: files nis
shadow: files nis
group: files nis

hosts: files nis dns

bootparams: files
ethers: files
netmasks: files
networks: files
protocols: files nis
rpc: files
services: files nis
netgroup: files nis
publickey: files
automount: files nis
aliases: files
  • Reboot host.
For Ubuntu 7.10, I also need install nfs-common package. (sudo apt-get install nfs-common)

How to change hostname in linux

  1. vi /etc/sysconfig/network,change the line of HOSTNAME=new-hostname
  2. vi /etc/hosts then change hostname to new-hostname
  3. run the command: hostname new-hostname