View Full Version : Parser for 'tx' namespace
reza_rahman
06-08-2007, 06:07 PM
Is there a parser I need to configure for using the 'tx' namespace? I'm trying to use the <tx:annotation-driven/> tag to simplify configuration a little.
Thanks in advance.
Bruno Baia
06-08-2007, 11:25 PM
Hi,
Mark worked on this for 1.1 M1 release, but I don't know the status, try this :
<parser type="Spring.Transaction.Config.TxNamespaceParser" />
<objects .... xmlns:tx="http://www.springframework.net/schema/tx" />
<tx:attribute-driven />
HTH,
Bruno
reza_rahman
06-09-2007, 01:54 AM
Bruno,
That didn't really work, I tried:
<parser namespace="http://www.springframework.net/schema/tx"
type="Spring.Transaction.Config.TxNamespaceParser" schemaLocation="http://www.springframework.net/schema/tx/spring-tx-1.1.xsd" />
<objects xmlns="http://www.springframework.net"
xmlns:db="http://www.springframework.net/database"
xmlns:tx="http://www.springframework.net/schema/tx">
<tx:annotation-driven/>
Should we wait for Mark, this is not a show-stopper but would be really nice to have.
Thanks,
Reza
Bruno Baia
06-09-2007, 08:14 AM
It's :
<tx:attribute-driven/>
Bruno
reza_rahman
06-10-2007, 01:11 AM
My bad...that was a copy and paste problem from a Spring.Java application context, I forgot it's "attribute" and not "annotation" in .NET.
That works perfectly. Many thanks yet again.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.