### XFire Home Bug/Issue Reporting Download FAQ Get Involved License News Stack Comparison Support User's Guide XFire Team ### M5 Javadocs Reports ### M6-SNAPSHOT Javadocs Reports ### Developers Developer Space CVS Building Architecture Interesting Projects Release Process | ## The MessageContext The MessageContext class stays with an XFire invocation from start to finish. It is useful for: Accessing Messages, their xml streams and their headers Storing/retrieving properties which need to be shared across different handlers The service being invoked The XFire instance being invoked ## Accessing the MessageContext from your Operation In some cases you want to be able to access XFire's MessageContext. The Invokers that come with XFire allow you to add a MessageContext variable to your operation like so:
    public String echo(String echo, MessageContext context)
    {
        // do something with the context...

        return echo;
    }