2 Replies Latest reply on Mar 12, 2008 2:26 PM by nickarls

    No page context active when using Events in WS

    nickarls

      I have a WebService that updates stuff in the database and I would like to raise an event when it is done so that the clients can reload their data


      The endpoint is seam-enabled with org.jboss.seam.webservice.SOAPRequestHandler so I can use Components.getInstance to do the work but when I try to use Events.instance().raiseEvent I end up with a


      java.lang.IllegalStateException: No page context active
      
           at org.jboss.seam.ScopeType.getContext(ScopeType.java:120)
      
           at org.jboss.seam.Component.outjectAttribute(Component.java:1664)
      
           at org.jboss.seam.Component.outjectAttributes(Component.java:1617)
      
           at org.jboss.seam.Component.outject(Component.java:1470)
      
           at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
      
      <snip>
      
      



      Is there a way to raise an event from there? If not, how should the signal be sent? Through some application scoped component?