You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/07/15 18:15:19 UTC
DO NOT REPLY [Bug 10829] New: -
JAXRPC: javax.xml.rpc.handler.Handler cannot be configured dynamically on init(HandlerInfo)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10829>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10829
JAXRPC: javax.xml.rpc.handler.Handler cannot be configured dynamically on init(HandlerInfo)
Summary: JAXRPC: javax.xml.rpc.handler.Handler cannot be
configured dynamically on init(HandlerInfo)
Product: Axis
Version: beta-3
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: Basic Architecture
AssignedTo: axis-dev@xml.apache.org
ReportedBy: oansaldi@westglobal.com
According to the API, javax.xml.rpc.handler.HandlerInfo.getHandlerConfig() should return
an empty java.util.Map if setHandlerConfig(...) has not been called.
In
org/apache/axis/handlers/HandlerChainImpl.java (line 85):
> HandlerInfo handlerInfo =
new HandlerInfo(ClassUtils.forName(className), null, null);
should be replaced by:
>
HandlerInfo handlerInfo = new HandlerInfo(ClassUtils.forName(className),
java.util.Collections.EMPTY_MAP, null);
In addition, it should be possible to
dynamically configure the Handler at deployment time. See Sun's reference
implementation:
example of config.xml (Sun's specific deployment
descriptor):
...
<handler className="my.Handler">
<property
name="configurableProperty" value="123"/>
</handler>
...
accessing the property
from the handler code:
public void init(HandlerInfo handlerInfo) {
Map config =
handlerInfo.getHandlerConfig();
String configurableProperty =
(String)config.get("configurableProperty");
}