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 "Pradeep Fernando (JIRA)" <ji...@apache.org> on 2011/01/26 11:30:43 UTC

[jira] Commented: (AXIS2-4578) AxisServlet can no longer be access to retrieve InitParameters

    [ https://issues.apache.org/jira/browse/AXIS2-4578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986938#action_12986938 ] 

Pradeep Fernando commented on AXIS2-4578:
-----------------------------------------

hi ralf,

in AxisEngine.java :717 it sets the servelet context as below.


msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT, context);


so I beleive you can get the servlet context using :

messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT) and get the initParams from there.

--Pradeep

> AxisServlet can no longer be access to retrieve InitParameters
> --------------------------------------------------------------
>
>                 Key: AXIS2-4578
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4578
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: sunjdk1.5, debian-lenny
>            Reporter: Ralf Hauser
>
> Unfortunately,
>   HttpServlet servlet = (HttpServlet)MessageContext.getCurrentMessageContext()getProperty(HTTPConstants.MC_HTTP_SERVLET);
> no longer works  :(

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org