Do we really need stateful components?
我们真的需要状态化的组件吗?
Seam emphasizes the use of stateful components.
Seam强调使用有状态组件。
An improved lifecycle for stateful components, bound to well-defined contexts.
改善有状态组件的生命周期,并绑定到定义良好的上下文上。
Stateful components can be problematic in a web context because of managing cached state for example - many applications break when a rollback occurs because the state isn't tied to the transaction.
由于需要管理缓存着的状态,有状态的组件可能会在Web上下文中出现问题,比如,发生回滚时许多应用都会出问题,因为状态并没有和事务绑定起来。
Stateful components can be problematic in a web context because of managing cached state for example - many applications break when a rollback occurs because the state isn't tied to the transaction.
由于需要管理缓存着的状态,有状态的组件可能会在Web上下文中出现问题,比如,发生回滚时许多应用都会出问题,因为状态并没有和事务绑定起来。
应用推荐