[Design of JBoss ESB] - Re: (Excessive?) Drools class loading in ContentBasedRouter
by Hamlansa
Here is the stack of the resources being loaded.
Inherent time: 68,033 ms (14 %)
Average Time: 34 Microseconds
Invocations: 1,953,902
java.util.Enumeration.hasMoreElements
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.mx.loading.UnifiedLoaderRepository3.getResources
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.mx.loading.RepositoryClassLoader.findResources
13.6% - 62,817 ms - 1,808,208 hot spot inv. java.lang.ClassLoader.getResources
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.drools.util.ChainedProperties.getResources
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.drools.util.ChainedProperties.
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.drools.util.ChainedProperties.
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.drools.util.ChainedProperties.
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.drools.SessionConfiguration.init
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.drools.SessionConfiguration.
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.drools.reteoo.ReteooStatelessSession.newWorkingMemory
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.drools.reteoo.ReteooStatelessSession.execute
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.internal.soa.esb.services.rules.DroolsRuleService.executeStatelessRules
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.internal.soa.esb.services.rules.DroolsRuleService.executeStatelessRules
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.internal.soa.esb.services.rules.RuleServiceCallHelper.executeRulesService
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter.route
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.soa.esb.actions.ContentBasedWiretap.executeRules
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.soa.esb.actions.ContentBasedWiretap.process
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.soa.esb.actions.ContentBasedRouter.process
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process
13.6% - 62,817 ms - 1,808,208 hot spot inv. org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run
13.6% - 62,817 ms - 1,808,208 hot spot inv. java.util.concurrent.ThreadPoolExecutor$Worker.run
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233900#4233900
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233900
15 years, 7 months
[Design of JBoss ESB] - XsltAction
by beve
I'm starting work on https://jira.jboss.org/jira/browse/JBESB-2584 and wanted to gather requirements/requests.
A suggested sample config could look like this:
<action name="xslt-transform" class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction">
| <property name="templateFile" value="/sample.xsl"/>
| <property name="failOnWarning" value="true"/>
| </action>
I was thinking that we also should support the ability to add TranformerFactoryFeatures and attributes. For example, adding a feature could look like this:
<property name="factory.feature.http://javax.xml.XMLConstants/feature/secure-processing" value="true"/>
The same things would then apply to attributes but the prefix would be 'factory.attribute'.
Also the ability to specify a URIResolver (http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/URIResolver.html) to make things flexible.
Suggestion from TomF:
anonymous wrote : I think the impl should support multiple Source types, defaulting to StreamSource
So the message payload could be a File, an InputStream, or Reader (String payload would be a StringReader in which case a a StreamSource would be used). The message payload could also be a DOMSource or a SAXSource. Are there any others ?
The same options should exist for the result as well then right?
All suggestions are welcome!
Thanks,
/Daniel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233813#4233813
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233813
15 years, 7 months