Hi, You can use ThreadLocal variable ( setup in Handler ), so your service can use data from it, without modifying method sygnature to pass MessageContext.
-----Original Message----- From: oliver archner [mailto:[EMAIL PROTECTED] Sent: Monday, March 20, 2006 3:44 PM To: [email protected] Subject: [xfire-user] Access MessageContext from Service Method Hello, how can i access the message context from a service method. I need access to properties which i have set in a handler before. I noticed the example in the user guide : ------------------------------------------------------- public String echo(String echo, MessageContext context) { // do something with the context... return echo; } ------------------------------------------------------- Does this example mean that i must populate the MessageContext variable in all of my public interfaces ? Is there a better solution to share variables between Handlers and Services ? Oliver
