Modify the project build path setting to include the OSGi framework library osgi.jar and other packages that we will use in the bundle code (servlet.jar in this case).
修改该项目的构建路径设置,使之包括 OSGi 框架库 osgi.jar 和在包码中使用的其他包(在本实例中为 servlet.jar)。
Therefore, add code to do some bundle specific initialization.
因而,增加代码来实现某些包的特定初始化。
In fact, you might want to bundle up the code you write to handle data source configuration and connection into a utility class (that's left for you as an exercise).
实际上可以将处理数据源配置和连接的代码打包成一个工具类(留给读者作为练习)。
应用推荐