Hi, $Subject. From the following code chunks, ---------------------------- BamMediator.java AxisService service = msgCtx.getAxisService(); if(service == null)
{ return true; } // When this is not inside an API theses parameters should be there if ((!service.getName().equals("__SynapseService")) && (service.getParameter(ADMIN_SERVICE_PARAMETER) != null || service.getParameter(HIDDEN_SERVICE_PARAMETER) != null)) { return true; } ---------------------------- PayloadDataBuilder.java try { service = msgCtx.getAxisService().getName(); } catch (Exception e) { String errorMsg = "Error occurred while Service Name is extracted. " + e.getMessage(); log.error(errorMsg, e); service = ""; } --------------------------- StreamDefinitionBuilder.java attributes.add(new Attribute(BamMediatorConstants.SERVICE_NAME, AttributeType.STRING)); --------------------------- if the it is invoked from a proxy the value of service = <proxy which it is invoked> and it works. when it is invoked from a sequence service is null and it ends there as a solution to that I have removed the parts which checks the service and dropped it from sending with events. if it isn't violating any use case, attached patch to the jira issue can be used as a fix. jira issue: https://wso2.org/jira/browse/BAM-1642 Thanks, --Rajith -- *Rajith Siriwardana* Software Engineer WSO2 Inc. ; http://wso2.com *lean. enterprise. middleware* *www: **http://people.apache.org/~siriwardana <http://people.apache.org/~siriwardana>*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev