|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
DWR config informationHi all... I'm looking for a way I can gain access from my own code to
the DWR configuration information... I'm working on an extension to DWR and I need to be able to read the dwr.xml file (or configurations resulting from annotations). I assume they're floating around somewhere, I shouldn't have to parse the file myself or something like that, but I've been pouring over the javadoc for the last 20 minutes and haven't found what I'm looking for... the next step is to tear into the code and figure it out, but I'm hoping someone can point me in the right direction quickly. Thanks all, Frank -- Frank W. Zammetti Author of "Practical DWR 2 Projects" and "Practical JavaScript, DOM Scripting and Ajax Projects" and "Practical Ajax Projects With Java Technology" for info: apress.com/book/search?searchterm=zammetti&act=search Java Web Parts - javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! My "look ma, I have a blog too!" blog: zammetti.com/blog --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: DWR config informationYou can use the publishContainerAs servlet init-param which will put the container on the servlet context.
You will probably want to lookup one of the following: accessControl = (AccessControl) container.getBean(AccessControl.class.getName()); ajaxFilterManager = (AjaxFilterManager) container.getBean(AjaxFilterManager.class.getName()); converterManager = (ConverterManager) container.getBean(ConverterManager.class.getName()); creatorManager = (CreatorManager) container.getBean(CreatorManager.class.getName()); Container has a getBeanNames() to get all the available beans. Cheers, Lance. 2008/5/5 Frank W. Zammetti <fzlists@...>: Hi all... I'm looking for a way I can gain access from my own code to the DWR configuration information... I'm working on an extension to DWR and I need to be able to read the dwr.xml file (or configurations resulting from annotations). I assume they're floating around somewhere, I shouldn't have to parse the file myself or something like that, but I've been pouring over the javadoc for the last 20 minutes and haven't found what I'm looking for... the next step is to tear into the code and figure it out, but I'm hoping someone can point me in the right direction quickly. |
|
|
|
| Free Forum Powered by Nabble | Forum Help |