You can use the enterprise applications administrative
console panel to enable or disable stateful session bean failover
for all stateful session beans in the specified module. Stateful session
bean failover settings appear only on the deployment manager in an
ND environment, and are ignored for 5.x application targets.
Procedure
- Start the administrative console.
- Expand Applications > Application types.
- Select WebSphere® enterprise
applications.
- Select the application for the EJB module that you want
to configure.
- Under Modules, select Manage Modules.
- Select the JAR file that you want to configure.
- Under Additional Properties, select Stateful
session bean failover settings.
- Select Enable stateful session bean failover using memory
to memory replication.
- Select your choice of Replication settings. You have a choice of two radio buttons:
- Use application or EJB container replication settings
- If you select this button, any
replication settings that are defined for this EJB module are ignored.
避免困難: If you are
a system administrator and you use this radio button, then memory-to-memory
replication must be configured at the EJB container or application
level. Otherwise, the settings on this page are ignored by EJB container
during server startup, and the EJB container logs a message indicating
that stateful session bean failover is not enabled for this application.
gotcha
- Use module replication settings
- If you select this button, you override the replication settings
for the EJB container and application. This button is disabled until
you define a replication domain. This selection has a hyperlink to
help you configure the replication settings. If no replication domains
are configured, when you click the link, then you visit a page where
you can create one. If at least one domain is configured, when you
click the link, then you visit a page where you can select the replication
settings to be used by the EJB container.
- Select OK.