ADF application running on clustered environment - High Availability

本文详细阐述了在集群环境下实现ADF应用高可用性的关键步骤,包括所有ManageBeans实现Serializable,UI组件绑定在具有较短作用域的bean中,修改配置文件以支持HA等,并提供了测试和验证方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ADF application running on clustered environment - High Availability

              In order for an ADF application to support High Availability in clustered environment with server fail over. The below steps must be followed in                     developing an ADF application.
  •    All Manage Beans must implement Serializable.
  •            UI component bindings must be declared in a bean with shorter scope (backing bean scope or request scope).
  •         If it needs to be declared in Manage Bean with PageFlowScope (Not recommended), please ensure you declare the binding as transient.
  • Any objects that are declared as an attribute in Manage Bean must be Serialized.
                  The following files must be modified to make an ADF application High Available in clustered environment.

            adf-config.xml


              <adf-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
             <adf-scope-ha-support>true</adf-scope-ha-support>
                 </adf-controller-config>

             weblogic.xml


            < session-descriptor>
                      <persistent-store-type>replicated_if_clustered</persistent-store-type>
           </session-descriptor>

                       F or testing, please add the below parameter in your weblogic domain 
                          setDomainEnv.cmd
                   -Dorg.apache.myfaces.trinidad.CHECK_STATE_SERIALIZATION=all

              Run each use case in UI application. Verify that you don’t see below highlighted errors in  Domain console log.

                [2012-02-22T13:29:25.383-06: 00] [manageserver1] [ERROR] [] [oracle.adfinternal. controller.state. SessionBasedScopeMap] 
             java.io.NotSerializableException: com.ram.mytest.manage.TestMB


Posted by  Ram Immidisettiat  5:13 PM
3 comments:
  1. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.

    Alena

    Diverticulitis Treatment Diverticulitis Diet

    ReplyDelete
  2. Could you please explain how to 'declare binding as transient' with an example? Thanks.

    ReplyDelete
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值