A scope annotation can be added to either the interface or implementation class definition. The Feature Pack for SCA supports stateless and composite scopes.
可以向接口或实现类定义添加范围注释。
It is the only class where EJB operations are performed, and it holds the reference to the PhoneBookSession stateless session bean.
它是惟一一个执行ejb操作的类,并保存对PhoneBookSession无状态会话bean的引用。
Listing 2 shows a stateless bean class.
清单2展示了一个无状态bean类。
Listing 4 shows the class declaration for RideManagerBean, the stateless session bean that implements the RideManagerRemote interface used in Listing 1.
清单4给出ridemanager bean的类声明,这个无状态会话bean实现了清单1所示的RideManagerRemote接口。
This class can be broadly categorized as applications that run in a stateless cluster in front of a database. I call this a symmetric cluster.
这一类别可以粗略地归类为运行在数据库前端的无状态集群中的应用程序。
The second class is a stateless session bean, which provides the business logic.
第二个类是一个StatelessSessionbean,它提供业务逻辑。
Stateless annotation, above, means that this class is now a stateless session bean, and the business interface is used to invoke it.
以上的@无状态注解,意味着此类现在是一个无状态会话bean,将使用业务接口来调用它。
The stateless session bean uses the DBHelper class (JDBC statements are used) to perform the database transaction.
无状态会话Bean使用 DBHelper类(使用了JDBC声明)执行数据库事务。
Static fields and methods are supposed to represent stateless attributes of a class;
静态域和方法都应该代表一类无国籍属性;
Static fields and methods are supposed to represent stateless attributes of a class;
静态域和方法都应该代表一类无国籍属性;
应用推荐