5 Replies Latest reply: Mar 3, 2009 4:21 AM by 608954 RSS

    WorkManager WebLogic 10 and 10.3 how to configure

    608954
      Hi,
      I try configure WorkManager and Thread Constraints (Min, Max) for my application. Unfortunately WorkManager doesn't work :(
      First I setting WorkManager via administrative console. I set target to my server. Next, when I go to Deployments -> {my application name} -> Monitoring -> Workload, I see two WorkManagers on the list. First - default, and second one mine.
      Next I setting WorkManger using deployment files (application-weblogic.xml, web.xml, etc.). Everytime is the same effect. My WorkManager doesn't work :(

      What I'm doing wrong? Why it doesn't work?


      Best regards,
      Pit
        • 1. Re: WorkManager WebLogic 10 and 10.3 how to configure
          668906
          If you are planning for application scoped work manager then you can specify it in the following :-
          1.weblogic-application.xml OR
          2.weblogic-ejb-jar.xml OR
          3.weblogic.xml

          You then need to use the <dispatch-policy> element in the deployment descriptor.
          Refer to http://e-docs.bea.com/wls/docs103/config_wls/self_tuned.html for examples.
          If you still face issues, then post the contents of your descriptor file.
          • 2. Re: WorkManager WebLogic 10 and 10.3 how to configure
            608954
            Thanks for replay. I did exactly what was written in that article. For me, it doesn't work :(

            In weblogic-application.xml I have definition:
            (...)
            <max-threads-constraint>
            <name>j2ee_maxthreads</name>
            <count>10</count>
            </max-threads-constraint>

            <min-threads-constraint>
            <name>j2ee_minthreads</name>
            <count>5</count>
            </min-threads-constraint>

            <work-manager>
            <name>test-work-manager</name>

            <min-threads-constraint-name>j2ee_minthreads</min-threads-constraint-name>
            <max-threads-constraint-name>j2ee_maxthreads</max-threads-constraint-name>
            </work-manager>
            (...)

            In web.xml deployment file I have:
            (...)
            <servlet>
            ...
            <init-param>
            <param-name>wl-dispatch-policy</param-name>
            <param-value>test-work-manager</param-value>
            </init-param>
            </servlet>
            (...)


            WebLogic still use default WorkManager. I tested this configuration on WLS 10.3.

            Regards,
            Pit
            • 3. Re: WorkManager WebLogic 10 and 10.3 how to configure
              668906
              The examples shows contraints defined within the work-manager tag :-
              <work-manager>
              <name>highpriority_workmanager</name>
              <min-threads-constraint>
              <name>MinThreadsCountFive</name>
              <count>5</count>
              </min-threads-constraint>
              </work-manager>

              Could you try like the above.
              • 4. Re: WorkManager WebLogic 10 and 10.3 how to configure
                608954
                Thanks for you answer.
                I tested this one and other different configuration and still I can't configure WorkManager.
                My application use default one instead from my configuration.

                Regards,
                Pit
                • 5. Re: WorkManager WebLogic 10 and 10.3 how to configure
                  608954
                  Hi,
                  I checked again and it works :)
                  Why it wasn't work before. I don't restart app server. After restart it works fine.

                  Best regards,
                  Pit