3 Replies Latest reply on Sep 11, 2002 7:13 AM by hlaracker

    ejbload

    hlaracker

      Hello,

      I use jboss 3.0.1 with a oracle Database en BMP.

      When i use my Bean(BMP) to acces a record, the ejbload is called. when a another user calls the same record the ejbload is not called. When the first user updated the record the ejbload is again not called.
      The data in de database can be changed by another application, this is not visible to the user how can i force to call the ejbload everytime i access the bean.

      Thanks

        • 1. Re: ejbload
          abien

          When the ejbLoad Method will be called depends on the:
          - commit options (A,B,C)
          - transaction levels for every business/home methods.

          • 2. Re: ejbload
            hlaracker

            thanks,
            but how do i configure this , in version 3.0 the ejbload always get called.

            • 3. Re: ejbload
              hlaracker

              I have looked around in the documentation en i made the following jboss.xml file.

              But when i deploy this i get the message:

              org.jboss.deployment.DeploymentException: Failed to load metadata; - nested throwable: (java.lang.NullPointerException)
              at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:326)

              When i removet he <container-configurations>
              tag everything works fine (except for the ejbload)

              jboss.xml
              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE jboss PUBLIC '-//JBoss//DTD JBOSS 3.0//EN' 'http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd'>

              <enterprise-beans>

              <ejb-name>BOFactory</ejb-name>
              <local-jndi-name>BOFactoryLocal</local-jndi-name>
              <ejb-local-ref>
              <ejb-ref-name>ejb/BusinessObjectLocal</ejb-ref-name>
              <local-jndi-name>BusinessObjectLocal</local-jndi-name>
              </ejb-local-ref>
              <ejb-local-ref>
              <ejb-ref-name>ejb/DefinitionManagerLocal</ejb-ref-name>
              <local-jndi-name>DefinitionManagerLocal</local-jndi-name>
              </ejb-local-ref>


              <ejb-name>ProxyListHandler</ejb-name>
              <jndi-name>ProxyListHandler</jndi-name>
              <ejb-local-ref>
              <ejb-ref-name>ejb/DefinitionManagerLocal</ejb-ref-name>
              <local-jndi-name>DefinitionManagerLocal</local-jndi-name>
              </ejb-local-ref>
              <ejb-local-ref>
              <ejb-ref-name>ejb/ViewManagerLocal</ejb-ref-name>
              <local-jndi-name>ViewManagerLocal</local-jndi-name>
              </ejb-local-ref>


              <ejb-name>DefinitionManager</ejb-name>
              <local-jndi-name>DefinitionManagerLocal</local-jndi-name>


              <ejb-name>AuthenticationManager</ejb-name>
              <jndi-name>AuthenticationManager</jndi-name>
              <local-jndi-name>AuthenticationManagerLocal</local-jndi-name>


              <ejb-name>AutorizationManager</ejb-name>
              <jndi-name>AutorizationManager</jndi-name>
              <local-jndi-name>AutorizationManagerLocal</local-jndi-name>
              <ejb-local-ref>
              <ejb-ref-name>ejb/DefinitionManagerLocal</ejb-ref-name>
              <local-jndi-name>DefinitionManagerLocal</local-jndi-name>
              </ejb-local-ref>
              <ejb-local-ref>
              <ejb-ref-name>ejb/AuthenticationManagerLocal</ejb-ref-name>
              <local-jndi-name>AuthenticationManagerLocal</local-jndi-name>
              </ejb-local-ref>


              <ejb-name>SDefinitionManager</ejb-name>
              <jndi-name>SDefinitionManager</jndi-name>
              <local-jndi-name>SDefinitionManagerLocal</local-jndi-name>
              <ejb-local-ref>
              <ejb-ref-name>ejb/AutorizationManagerLocal</ejb-ref-name>
              <local-jndi-name>AutorizationManagerLocal</local-jndi-name>
              </ejb-local-ref>
              <ejb-local-ref>
              <ejb-ref-name>ejb/DefinitionManagerLocal</ejb-ref-name>
              <local-jndi-name>DefinitionManagerLocal</local-jndi-name>
              </ejb-local-ref>


              <ejb-name>SBOFactory</ejb-name>
              <jndi-name>SBOFactory</jndi-name>
              <local-jndi-name>SBOFactoryLocal</local-jndi-name>
              <ejb-local-ref>
              <ejb-ref-name>ejb/BOFactoryLocal</ejb-ref-name>
              <local-jndi-name>BOFactoryLocal</local-jndi-name>
              </ejb-local-ref>
              <ejb-local-ref>
              <ejb-ref-name>ejb/AutorizationManagerLocal</ejb-ref-name>
              <local-jndi-name>AutorizationManagerLocal</local-jndi-name>
              </ejb-local-ref>


              <ejb-name>ViewManager</ejb-name>
              <jndi-name>ViewManager</jndi-name>
              <local-jndi-name>ViewManagerLocal</local-jndi-name>
              <ejb-local-ref>
              <ejb-ref-name>ejb/DefinitionManagerLocal</ejb-ref-name>
              <local-jndi-name>DefinitionManagerLocal</local-jndi-name>
              </ejb-local-ref>


              <ejb-name>BusinessObject</ejb-name>
              <configuration-name>bmp</configuration-name>
              <jndi-name>BusinessObject</jndi-name>
              <local-jndi-name>BusinessObjectLocal</local-jndi-name>
              <ejb-local-ref>
              <ejb-ref-name>ejb/DefinitionManagerLocal</ejb-ref-name>
              <local-jndi-name>DefinitionManagerLocal</local-jndi-name>
              </ejb-local-ref>

              </enterprise-beans>
              <container-configurations>
              <container-configuration>
              <container-name>bmp</container-name>
              <commit-option>B</commit-option>
              </container-configuration>
              </container-configurations>