Can you please provide more details on what you are trying to solve?
My application takes XML as input and validates the XML. I have a custom dtd to validate the input XML. The input XML has a reference to the dtd and that reference is a URL. When validating the XML , I want the parser to look locally for the dtd. I did the entity mapping (URL=local dtd) using jbossentityresolvermgr mBean. When the parser validates the input XML, I want the parser to look for the dtd locally. To do this, I had to set the entityresolver of the parser so that it refers the Jbossentityresolver Class to locate the dtd locally. I did this by modifying the code where I parse the input XML by using setEntityResolver(new JBossEntityResolver()). This makes the code Jboss AS specific. Is there a way to do this by a configuration setup where I can get the parser to look locally for the dtd. Basically, I am trying to setup XML registry in jboss, similar to what we had in Weblogic.