Discussions

EJB programming & troubleshooting: Maximum Bean Pool for Count example

  1. Maximum Bean Pool for Count example (1 messages)

    The Count application in Mastering EJBs says that I need to set the maximum bean pool to 2 beans, the j2sdkee1.3.1 configuration documentation says that you can set a maximum memory size. This leaves me in a dilema as I cannot specify a bean number, only a memory number - has anyone got this example to succesfully work with Suns j2sdkee?

    Mark
  2. An addendum, not a reply. I tried the example in WebLogic6.1 under Windows 2000. I'm not clear about the way to set the maximum pool size. The downloaded code (May 17, 2002) does not contain the information about the same. I tried the following:

      <weblogic-enterprise-bean>

        <ejb-name>statefulSession</ejb-name>
        <stateful-session-descriptor>
    <stateful-session-cache>
    <max-beans-in-cache>2</max-beans-in-cache>
    </stateful-session-cache>
        </stateful-session-descriptor>
        <jndi-name>statefulSession-CountHome</jndi-name>

      </weblogic-enterprise-bean>

    which did not work. Any clarifications/suggestions?

    Thanx in advance.

    Mahesh