集群 EJB 会话 Bean

Clustering EJB Session Beans

EJB 是否定义了集群?我发现无状态或有状态 bean 的集群是特定于 ex 的平台。 Jboss 有 @Clustered 注释和优化接口有助于跨服务器集群 bean,是因为 EJB 规范没有定义集群吗?

是的,集群不是 EJB 规范的一部分,实际上是特定于供应商的。如J2EE and Beyond book所述:

A few of the more important features that are not addressed directly by the EJB specification are server clustering and and component failover...

In order to provide both failover and scalability, application server vendors allow clusters or groups of hardware servers running the same software to be addressed as a server cluster.