mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from HEAD into WCM-DEV2. Also fixes build breakage in
jndi-client and catalina-virtual that I introduced earlier. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3393 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,7 +32,7 @@ public class SpringBeanRPCProvider extends RPCProvider
|
||||
{
|
||||
private static final long serialVersionUID = 2173234269124176995L;
|
||||
private static final String OPTION_NAME = "springBean";
|
||||
private WebApplicationContext webAppCtx;
|
||||
private static WebApplicationContext webAppCtx;
|
||||
|
||||
/**
|
||||
* Retrieves the class of the bean represented by the given name
|
||||
@@ -93,16 +93,26 @@ public class SpringBeanRPCProvider extends RPCProvider
|
||||
*/
|
||||
private WebApplicationContext getWebAppContext(MessageContext msgCtx) throws AxisFault
|
||||
{
|
||||
if (this.webAppCtx == null && msgCtx != null)
|
||||
if (webAppCtx == null && msgCtx != null)
|
||||
{
|
||||
this.webAppCtx = Utils.getSpringContext(msgCtx);
|
||||
webAppCtx = Utils.getSpringContext(msgCtx);
|
||||
}
|
||||
|
||||
if (this.webAppCtx == null)
|
||||
if (webAppCtx == null)
|
||||
{
|
||||
throw new AxisFault("Failed to retrieve the Spring web application context");
|
||||
}
|
||||
|
||||
return this.webAppCtx;
|
||||
return webAppCtx;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initServiceDesc(SOAPService service, MessageContext msgContext) throws AxisFault
|
||||
{
|
||||
if( msgContext != null )
|
||||
{
|
||||
getWebAppContext(msgContext);
|
||||
}
|
||||
super.initServiceDesc(service, msgContext);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user