I have an entity bean using BMP on Jboss 3.2.5 that frequently fails to call the ejbLoad method when I use a finder method. It appears to be retrieving a cached entity that loaded previously, however due to the frequent changes in data referenced I really need it to run ejbLoad every time I call a finder method.
Does anyone know how I can always enforce the ejbLoad is called even when a cached entity already exists?
Thank you in advance.
The solution I found is in the standardjboss.xml config. I setup a custom container-configuration for this entity to use and set the commit-option to 'C'. This prevents the entity from being cached, forcing the ejbLoad to run.