synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "P Vikas Roonwal (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-4) Null Synapse Environment
Date Fri, 30 Dec 2005 06:30:01 GMT
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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message