[Design of the JBoss EJB Container] - Re: JBAS-4304 - Jboss calls ejbStore inside ejbPostCreate on
by adrian@jboss.org
There are two ways to fix this problem that I can see.
1) Delay the registration of the context with the GlobalTxEntityMap until ejbPostCreate()
returns.
The disadvantage is that this will require retesting of the locking and caching to
make sure we have caught all the cases where delaying the registration of the
synchronization with the transaction does not get an automatic tidyup.
e.g. tx timeout during ejbPostCreate() will not invoke the synchronization anymore
2) Does some fixup to the state of the EntityEnterpriseContext such that
the GlobalTxEntityMap knows not to flush the entity until after the ejbPostCreate
has returned.
e.g. We could in EntitySynchronizationInterceptor do
instance.setTxAssociation(SYNCHRONIZED)
in the invokeHome() and reset it to the default NONE after ejbPostCreate()
This second option would tell the GlobalTxEntityMap that the data is already
synchronized and doesn't need to be flushed,
but this might not interplay very well with the "insertAfterEjbPostCreate" feature of CMP?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035014#4035014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035014
17 years, 9 months
[Design of JBoss Build System] - Re: How do I do a jbossxb 2.0.0.CR4
by scott.stark@jboss.org
Is there a way to use a java svn impl? Its not working on my box because the rhel4 svn client is out of date with respect to the eclipse version.
| [starksm@succubus jbossxb]$ mvn release:prepare -DdryRun=true
| [INFO] Scanning for projects...
| [INFO] Searching repository for plugin with prefix: 'release'.
| [INFO] ----------------------------------------------------------------------------
| [INFO] Building JBoss XML Binding
| [INFO] task-segment: [release:prepare] (aggregator-style)
| [INFO] ----------------------------------------------------------------------------
| [INFO] [release:prepare]
| [INFO] Verifying that there are no local modifications...
| [INFO] Executing: svn --non-interactive status
| [INFO] Working directory: /home/svn/Common/trunks/jbossxb
| [INFO] ------------------------------------------------------------------------[ERROR] BUILD FAILURE
| [INFO] ------------------------------------------------------------------------[INFO] Unable to check for local modifications
| Provider message:
| The svn command failed.
| Command output:
| svn: This client is too old to work with working copy ''; please get a newer Subversion client
|
| [INFO] ------------------------------------------------------------------------[INFO] For more information, run Maven with the -e switch
| [INFO] ------------------------------------------------------------------------[INFO] Total time: 1 second
| [INFO] Finished at: Wed Apr 04 18:55:07 PDT 2007
| [INFO] Final Memory: 11M/169M
| [INFO] ------------------------------------------------------------------------[starksm@succubus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034841#4034841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034841
17 years, 9 months
[Design of JBoss Build System] - How do I do a jbossxb 2.0.0.CR4
by scott.stark@jboss.org
If I set the jbossxb pom.xml to a new version and test the prepare step, it fails with this error:
| [starksm@succubus jbossxb]$ mvn -Dtestmode=true release:prepare
| ...
| way too much crap pulled from external repos
| ...
| [INFO] [release:prepare]
| [INFO] ------------------------------------------------------------------------[ERROR] BUILD FAILURE
| [INFO] ------------------------------------------------------------------------[INFO] The project jboss:jbossxb isn't a snapshot (2.0.0.CR4).
| [INFO] ------------------------------------------------------------------------[INFO] For more information, run Maven with the -e switch
| [INFO] ------------------------------------------------------------------------[INFO] Total time: 23 seconds
| [INFO] Finished at: Wed Apr 04 17:38:00 PDT 2007
| [INFO] Final Memory: 9M/107M
| [INFO] ------------------------------------------------------------------------[starksm@succubus jbossxb]$
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034834#4034834
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034834
17 years, 9 months
[Design of JBossXB] - JBXB-101, disabling validation
by scott.stark@jboss.org
I cannot disable validation against a document dtd currently for use with the ObjectModelFactory/Unmarshaller apis. The Unmarshaller.setValidation(boolean) call has no affect.
The problem would seem to be this static initialization of the parser factory and setting the validating flag to true:
| public class SaxJBossXBParser
| implements JBossXBParser
| {
| private static final Logger log = Logger.getLogger(SaxJBossXBParser.class);
|
| private static final SAXParserFactory saxFactory = SAXParserFactory.newInstance();
| static
| {
| saxFactory.setValidating(true);
| saxFactory.setNamespaceAware(true);
| enableXInclude();
| }
|
The Unmarshaller.setValidation(boolean) call maps to setting a feature of the parser. I'm not sure why this is not getting picked up on the resulting parser.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034771#4034771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034771
17 years, 9 months