转载自墙外http://aneeshkumarkb.blogspot.com/ ,非常nice的教程

OSGi Tutorial for beginners, Hello World OSGi Tutorial, Equinox OSGi Tutorial, Start developing OSGi Bundles

OSGi – The Dynamic Module System for Java : Part 1

Level: Novice


Aneesh Kumar KB(aneesh_kb@cdactvm.in), E-Governance, CDAC

This tutorial enables to understand the basic concepts of OSGi(Open Service Gateway Initiative), the Dynamic Module System for Java and start with OSGi bundle development.

Before you start

About this series

This is a two part tutorial in which the first part covers the basic OSGi technology, architecture and a Hello world OSGi bundle development. The second part of this tutorial covers the Service Oriented Architecture (SOA) in OSGi and Service bundle development .

Objectives

In this tutorial you will
1. learn the OSGi technology and its architecture
2. familiarize with famous OSGi implementations.
3. create a Hello world OSGi bundle.

Prerequisites Read the rest of this entry »

对于熟悉apache配置的童鞋这可能是个简单的问题,但是我总是记不住,因此略记一下,以备不时之需。下面的所有配置都是针对我的博客地址rockins.cn而作的。

首先是在httpd.conf中要增加下面几行,也就是允许每个virtual host目录下的.htaccess覆盖httpd.conf中的配置:
<Directory /var/www/htdocs/rockins.cn/>
AllowOverride all
Order allow,deny
Allow from all
</Directory>

然后,在httpd-vhosts.conf中,增加一个virtual host项: Read the rest of this entry »