Guillaume/All,

Currently, I am handling the config file for the BAM component using XMLBeans/XSD. We can think of some cool way of dealing with it later... Hope that's Ok with everyone.

All the three XSDs/ sample xmls are attached - global-config, Bam and Actions...Do take a look ...

Thanks
Soumadeep
<sm:Actions xmlns:sm="http://actions.bam.servicemix.apache.org";>
	<sm:Action name="emailer">
		<sm:Description>Vikas is becoming slow</sm:Description>
		<sm:Adaptor name="adaptor">
			<sm:Input>
                <sm:parameter name="paramname">value</sm:parameter>			
			</sm:Input>
		</sm:Adaptor>
	</sm:Action>
</sm:Actions>
<sm:SM-WS-BAM xmlns:sm="http://bam.servicemix.apache.org";>
	<sm:Service url="http://www.xmethod.com/getVersion";>
		<sm:Rule name="sendEmailWhenGetQuoteInvoked">
			<sm:expression value="/Envelope/Body/GetQuote"/>
			<sm:Action name="emailer"/>
			<sm:Action name="something"/>
		</sm:Rule>
	</sm:Service>
</sm:SM-WS-BAM>
<sm:global-configuration xmlns:sm="http://org.apache.servicemix.bam";>
 <sm:Object name="somename">
  <sm:parameter name="smpt-host">mail.apache.org</sm:parameter>
 </sm:Object>
</sm:global-configuration>

Reply via email to