...L,一个ICountryServiceDAL,以及在业务逻辑层中的CountryService,关键点在于每一种服务都被实现为无状态类(stateless class)。各个层以如下一种方式进行构造:DAL服务的方法应该被相应的业务逻辑的服务调用。
基于12个网页-相关网页
如果用户采用瘦虚包模式,那么用户的无状态会话可能会代表其他的类。
If you follow a thin facade pattern, your stateless session beans probably delegate to other classes.
无状态会话 Bean 使用 DBHelper 类(使用了 JDBC 声明)执行数据库事务。
The stateless session bean uses the DBHelper class (JDBC statements are used) to perform the database transaction.
清单2展示了一个无状态bean类。
应用推荐