1 Reply Latest reply on Oct 28, 2008 1:17 AM by Daniel Bernstein

    JMX Client Notification Thread Uanble to Access Application context

    Daniel Bernstein Newbie

      Hi - I've using Seam 2.0.3 CR1 for a couple of months now.  I love it - it has made my life so much easier: thank you.


      So my problem: I have an application scoped seam component that contains and inner class that in turn listens for JMX notifications from the local MBeanServer. In other words a seam component is registering to listen for events on non-seam subsystem. The JMX notification callbacks are occurring, however when I attempt to get handle back to the application component using Component.getInstance(myApplicationScopedComponent), I get
      java.lang.IllegalStateException: No application context active.


      When I tried accessing the application context (ie using Contexts.getApplicationContext()),  it came back null.


      How can I get around this problem?