Moving the Blether service into the persistence bundle 将Blether服务迁移到持久性捆绑包中
There are several changes you must make to the Blether persistence service. 您必须对Blether持久性服务进行几个更改。
Instead of creating blether. 不创建blether.ear,而是创建一个名为blether.eba的.zip文件;
Changes to the Blether persistence configuration Blether持久性配置的更改
For that reason, you will move the Blether service to the persistence bundle, from where the Web module can access it via the OSGi service registry. 为此,您要将Blether服务迁移到持久性捆绑包,从这里Web模块可以通过OSGi服务注册表访问它。
Building the Blether application 构建Blether应用程序
HttpRequestHandlerServlet represents the only servlet used by Blether from the perspective of the Web descriptor. 从Web描述符的角度来看,HttpRequestHandlerServlet代表Blether使用的惟一servlet。
Create a new Java project called Blether. 创建一个新的Java项目,命名为Blether。