Hi Raginig, Please take a look and also see remoting-config.xml whether the destination is properly defined. The flex.messaging.FlexContext class is a utility class that exposes the current execution context on the BlazeDSserver. It provides access to FlexSession and FlexClient instances associated with the current message being processed. It also provides global context by accessing MessageBroker, ServletContext, and ServletConfig instances.
The following example shows a Java class that calls FlexContext.getHttpRequest() to get an HTTPServletRequest object and calls FlexContext.getFlexSession() to get a FlexSession object. Exposing this class as a remote object makes it accessible to a Flex client application. Place the compiled class in the WEB_INF/classes directory or your BlazeDS web application. package myROPackage; import flex.messaging.*; import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class SessionRO { public HttpServletRequest request; public FlexSession session; public SessionRO() { request = FlexContext.getHttpRequest(); session = FlexContext.getFlexSession(); } public String getSessionId() throws Exception { String s = new String(); s = (String) session.getId(); return s; } public String getHeader(String h) throws Exception { String s = new String(); s = (String) request.getHeader(h); return h + "=" + s; } } The following example shows a Remoting Service destination definition that exposes the SessionRO class as a remote object. You add this destination definition to your Remoting Service configuration file. Let me know your views. Thanks, Regards, JJain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---