from your jetty-code, it should be like this:
webapp.getServletContext.setAttribute("foo","bar");hth On Wed, Jun 19, 2013 at 3:53 AM, Gaurav Kumar <[email protected]>wrote: > I am running my GWT app as follows in Jetty - http://pastebin.com/Hvj5ieZf > > Now, I would like to access the "magic" attribute in my GWT Service side > code which extends RemoteServiceServlet. When I try to access it as- > > getServletContext().getAttribute("magic"); > > I get its value as null. > > I would like to set attribute on a global level. My enterprise app embeds > GWT app and I would like to use Java objects created outside of GWT war > file be accessible in my class which extends RemoteServiceServlet. > > Cheers, > GK > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
