[ http://issues.apache.org/jira/browse/SYNAPSE-4?page=all ]
Saminda Wishwajith Abeyruwan resolved SYNAPSE-4:
------------------------------------------------
Resolution: Fixed
SynapseEnvironment impl has been set as a property of the MessageContext. The
design flow of <servicemediator/> is Axis2-->Synapse-->Axis2. So when the
message enters the the second phase, and hit the ServiceMediatorMessageReciever
it will contains the SynapseEnviroment's implementation.
> Null Synapse Environment
> ------------------------
>
> Key: SYNAPSE-4
> URL: http://issues.apache.org/jira/browse/SYNAPSE-4
> Project: Synapse
> Type: Bug
> Components: Core
> Environment: Windows Xp, JDK 1.4.2_08, AXIS 0.94 - snapshot
> Reporter: P Vikas Roonwal
>
> I am doing the following : [ just the required code snippet ]
> public class sampleMediator implements Mediator, EnvironmentAware {
> private ClassLoader classLoader;
> private SynapseEnvironment synapseEnvironment;
> public boolean mediate(SynapseMessage synapseMessage) {
> .
> .
> .
> if(this.synapseEnvironment == null) System.out.println("ENVIRONMENT IS
> NULL");
> .
> .
> .
> }
>
> public void setSynapseEnvironment(SynapseEnvironment se) {
> this.synapseEnvironment = se;
> }
> public void setClassLoader(ClassLoader cl) {
> this.classLoader = cl;
> }
> }
> And I am getting the message "ENVIRONMENT IS NULL" in the output.
> ** My mediator is implementes as an AXIS2 service.
> ** I use the <servicemediator> option to call my mediator.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]