DWR config information

View: New views
3 Messages — Rating Filter:   Alert me  

DWR config information

by Frank W. Zammetti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

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 information

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You 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.

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@...



Parent Message unknown RE: DWR config information

by Frank W. Zammetti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Lance... I actually stumbled onto this just a few hours ago after I tore through the DWR source, but having it confirmed (and explained a bit) I appreciate.

Frank



From: Lance Java <lance.java@...>
Sent: Tuesday, May 06, 2008 4:24 AM
To: users@...
Subject: Re: [dwr-user] DWR config information

You 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.

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@...