directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Re: [naming] XmlConfigurator and element order
Date Fri, 21 Apr 2006 02:42:11 GMT
Hi Jeff,

I'm terribly sorry for this slooooooow response.  Please reply if you still
have an interest.  Is this issue fixed?  Did you post a JIRA issue related
with this?

Thanks,
Trustin

On 2/15/06, Jeff Lansing <jlansing@spawar.navy.mil> wrote:
>
>  Hi,
>
>
>
> I thought it would be useful to chain MINA IoFilters together using JNDI,
> something like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <naming>
>
>   <context>
>
>     <resource name="ibs/session/chain" type="
> xtcf.ibs.session.DefaultIoFilterChainBuilder">
>
>       <parameter>
>
>         <name>factory</name>
>
>         <value>xtcf.ibs.session.IoFilterChainBuilderFactory</value>
>
>       </parameter>
>
>       <parameter>
>
>         <name>raw-logger</name>
>
>         <value>org.apache.mina.filter.LoggingFilter</value>
>
>       </parameter>
>
>       <parameter>
>
>         <name>raw-handler</name>
>
>         <value>xtcf.ibs.message.handler.RawMessageHandler</value>
>
>       </parameter>
>
>       <parameter>
>
>         <name>raw-message-codec</name>
>
>         <value>xtcf.ibs.message.handler.RawCodecFilter</value>
>
>       </parameter>
>
>       <parameter>
>
>         <name>parser-logger</name>
>
>         <value>org.apache.mina.filter.LoggingFilter</value>
>
>       </parameter>
>
>       <parameter>
>
>         <name>xml-handler</name>
>
>         <value>xtcf.ibs.message.handler.XMLMessageHandler</value>
>
>       </parameter>
>
>       <parameter>
>
>         <name>xml-logger</name>
>
>         <value>org.apache.mina.filter.LoggingFilter</value>
>
>       </parameter>
>
>       <parameter>
>
>         <name>jms-handler</name>
>
>         <value>xtcf.ibs.message.handler.JMSMessageHandler</value>
>
>       </parameter>
>
>     </resource>
>
>   </context>
>
> </naming>
>
> Unfortunately this doesn't work correctly because the XmlConfigurator
> (actually the Config.Resource inner class) destroys the order of the
> elements. I'm pretty sure that, although XML attributes are unordered, there
> is an implied order to XML elements. Shouldn't this order be preserved?
>
>
>
> Thanks,
>
>
>
> Jeff
>



--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Mime
View raw message