-
1. Re: ejbload
abien Sep 11, 2002 6:36 AM (in response to hlaracker)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 Sep 11, 2002 6:59 AM (in response to hlaracker)thanks,
but how do i configure this , in version 3.0 the ejbload always get called. -
3. Re: ejbload
hlaracker Sep 11, 2002 7:13 AM (in response to 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>