0 Replies Latest reply on Jun 12, 2006 6:26 PM by fkhan

    org.jboss.varia.scheduler.Scheduler threads accessing local-

    fkhan

      I have a Schedulable service that spawns a thread against a POJO who ultimately attempts to invoke a local-ejb. The service:

      <mbean code="com.ambientdevices.wine.datasource.accuweather.WeatherForecastMBeanPoller"
       name="jboss:type=accuweather,name=WeatherForecastPoller">
       </mbean>
      
       <mbean code="org.jboss.varia.scheduler.Scheduler" name="jboss:service=WeatherForecastPollerService">
       <attribute name="StartAtStartup">true</attribute>
       <attribute name="SchedulableMBean">jboss:type=accuweather,name=WeatherForecastPoller</attribute>
       <attribute name="SchedulableMBeanMethod">hit( NOTIFICATION, DATE, REPETITIONS, SCHEDULER_NAME, java.lang.String )</attribute>
       <attribute name="InitialStartDate">NOW</attribute>
       <attribute name="SchedulePeriod">10800000</attribute>
       <attribute name="InitialRepetitions">-1</attribute>
       </mbean>
      


      When the thread tries to invoke the local-ejb it can't find it since the MBean does not have visibility for the local-ejb. Is there any means to give the JBoss MBean local-ejb references like with the war file?

      -fazle