[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - XML configuration

jmesnil do-not-reply at jboss.com
Fri Jan 16 12:23:44 EST 2009


I'm working on https://jira.jboss.org/jira/browse/JBMESSAGING-1301 to provide XML schema for all JBM 2 configuration.

This includes:
  - configuration.xml -> the main config files
  - queues.xml         -> the queues settings
  - jbm-jms.xml       -> the JMS managed resources
  - jbm-security.xml -> security credential

Using a XML schema to express our configuration files we can:
  - validate element types (boolean, string, int, etc.)
  - validate cardinality of elements (e.g. at least 1 acceptor)
  - validate the relations between the elements (e.g. if I have an element with an attribute connector-ref="netty", there MUST be a "netty" connector to  validate the configuration)
  - we will still need to have a programmatic validation though

I've started to write a XML schema for configuration.xml.

I also thought about merging our configuration files.
The merge I thought would be queues.xml & jbm-jms.xml. The first time, I wanted to add a JMS queue, I added settings only and did not declare it in jbm-jms.xml.

We could have 3 configuration files:
- configuration.xml -> the server configuration
- resources.xml      -> the settings & managed resources (including JMS)
- security.xml         -> the credentials

wdyt?





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202544#4202544

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202544



More information about the jboss-dev-forums mailing list