managed it via the dynamic handler setting:
HandlerInfo info = new HandlerInfo(MyHandler.class, null, null);
HashMap map = new HashMap();
map.put("configFile", servletContext.getAttribute("configFile"));
info.setHandlerConfig(map);
the javax.xml.rpc.handler.Handler can then get access to real info in
it's init method.
it would be nice if the Axis BasicHandler could be used as a client-
side handler but it doesn't seem to be able to - it won't load. Maybe
I'll answer that question later!
seem to keep answering me own questions!
ta anyway,
Alistair
On 21 Jun 2005, at 15:19, Alistair Young wrote:
thanks for that. I'm using JAXRPCHandler though as Axis
BasicHandler doesn't seem to be able to be used as a client-side
handler. The jaxrpc MessageContext is almost empty and has almost
no functionality compared with the Axis version.
I converted the jaxrpc handler to BasicHandler but the
HandlerRegistry won't load it - it's added at run time.
Alistair
On 21 Jun 2005, at 14:58, [EMAIL PROTECTED] wrote:
Should be able to do this in the Handler...
AxisHttpSession session = (AxisHttpSession)
MessageContext.getCurrentContext().getSession();
HttpSession httpsession = session.getRep();
String propertiesUrn =
httpsession.getServletContext().getRealPath("/WEB-INF/properties/
somefile.properties");
Hope this helps,
Mark Malinoski
Consultant
AES/PHEAA
Alistair Young
<[EMAIL PROTECTED]
.ac.uk>
To
[email protected]
06/21/2005
09:50 cc
AM
Subject
BasicHandler and real path
Please respond to
[EMAIL PROTECTED]
he.org
Is there any way a BasicHandler or a jax-rpc Handler can find out the
real path of a file? where servlets have getRealPath, do handlers
have anything similar?
Otherwise there's no way for a handler to load it's config file
without specifying the full path in the wsdd as a <parameter>.
ta,
Alistair