[Design the new POJO MicroContainer] - Re: Work on 187, 188, 218, .bsh, StructureDeployer
by alesj
I'm almost done with tests for this work.
Just two more tests that I have in mind currently and would need some help on how to make them work. :-)
For the single deployment api in MainDeployerImpl, I added a ReentrantReadWrite lock for the following purpose.
All methods that modify existing deployments (all, topLevel, error) have a read lock, except for shutdown, which has a write lock. Meaning you can 'safely' use first methods, since it's up to the user to explicitly remove deployment, where shutdown undeploys them all - regarding how they were added: single deploy or via add/process.
A RRW lock can take multiple read locks and exclusive write lock, so this looks exactly the behavior we're looking for.
What I would like to do, is to test that a single deploy|undeploy and (add|remove)+process don't corrupt each other in multithread requests.
Another test would include a shutdown thread, from where on all other non-shutdown (deploy|undeploy) threads should fail.
The question is how to gather required information, meaning that a thread was legally allowed to go (or not go) past the locks that we've put?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106415#4106415
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106415
18 years, 4 months
[Design of Management Features on JBoss] - Re: Using xinclude in config files
by adrian@jboss.org
"snacker" wrote : It's not working...
|
| I couldn't find any command/env properties to set, so I created a dummy DocumentBuilderFactory class which sets namespaceaware and xincludeaware to true then proxies all calls to org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.
|
I've got no idea why it's not working. Ask the Apache Xerces project.
There is likely some nuance they can explain.
THIS IS NOT A JBOSS ISSUE, so there's little point trying to guess here.
I even tried hacking the configuration properties but that doesn't work either:
| package test;
|
| public class MyXmlParserConfig extends org.apache.xerces.parsers.XIncludeAwareParserConfiguration
| {
| public MyXmlParserConfig()
| {
| setFeature(NAMESPACES, true);
| setFeature(XINCLUDE_FEATURE, true);
| }
|
| // OR Even more belt and braces:
|
| public boolean getFeature(String featureId) throws org.apache.xerces.xni.parser.XMLConfigurationException
| {
|
| if (featureId.equals(NAMESPACES) || featureId.equals(XINCLUDE_FEATURE))
| return true;
| return super.getFeature(featureId);
| }
| }
|
Neither works.
There's not point testing jboss5-Beta2. The SARDeployer where you report
your stacktrace uses a plain SAXParser not JBossXB.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106413#4106413
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106413
18 years, 4 months