-
1. Re: sync-on-commit-only ?
adrian.brock Mar 29, 2003 4:33 PM (in response to bergler)You can add a method
boolean isModified();
Which the container will invoke to find
out whether a store is necessary.
This is a jboss specific feature.
Pretty much anything that can comes from standardjboss.xml
can be overridden in jboss.xml
They use the same parser code.
Regards,
Adrian -
2. Re: sync-on-commit-only ?
bergler Mar 31, 2003 5:21 AM (in response to bergler)Thats not the same for me: The state at the beginning of a transaction is very similar to the state at the end, so there would be very little to store, but intermediate states can be completely different. So when ejbStore is invoked after every business method very much state changes will be stored unneccessarily.
The sync-on-commit flag is missing from the jboss_3_0.dtd, so are you sure it can be overridden? -
3. Re: sync-on-commit-only ?
adrian.brock Mar 31, 2003 9:39 AM (in response to bergler)Yes,
public void importJbossXml(Element element) throws DeploymentException
{
// everything is optional to allow jboss.xml to modify part of a configuration
// defined in standardjboss.xml
// set call logging
callLogging = Boolean.valueOf(getElementContent(getOptionalChild(element, "call-logging"), String.valueOf(callLogging))).booleanValue();
// set synchronize on commit only
syncOnCommitOnly = Boolean.valueOf(getElementContent(getOptionalChild(element, "sync-on-commit-only"), String.valueOf(syncOnCommitOnly))).booleanValue();
Raise a bug report for the dtd.
Regards,
Adrian -
4. Re: sync-on-commit-only ?
bergler Apr 25, 2003 6:24 AM (in response to bergler)I dont understand what the code does, but it does NOT work when overridden from jboss.xml.
I made some tests setting <sync-on-commit-only> from standardjboss.xml and jboss.xml and I can see an effect only if I set the flag in standardjboss.xml.
I am quite shure that the configuration settings (other than sync-on-commit-onl>) in jboss.xml are correct.