1 Reply Latest reply on Sep 25, 2003 10:29 AM by Gustavo Comba

    Calling a SLSB from Timer

    Gustavo Comba Newbie


      I've writen a timer (implementing org.jboss.varia.scheduler.Schedulable) and I need to call some SLSB, but I'm getting NamingException's, because I don't know where to put the "ejb-ref". I mean, the Timer is just a class with a "perform" method, it is not a "client application", nor part of EJB container.

      How can I "tell" my class where to find the EJB?

      I've packed the class (along with the EJB's remote home and remote interface) in a .jar file, and "drop it" inside the server/default/lib directory. May be I should try to add a "jboss.xml" to the jar file? May be is not possible to call a SLSB from a simple class extending org.jboss.varia.scheduler.Schedulable and I need to look for a more complicated way to do this?

      Any clue will be appreciate,

      Gustavo Comba

        • 1. Re: Calling a SLSB from Timer
          Gustavo Comba Newbie

          I've found the error, so never mind.

          Just in case somebody has the same problem:

          I was trying to find my SLSB using the form:


          but the correct one is:


          I'm sure there is a good reason for that, but I can't explain it. Jus go to the jmx-console and find your bean, and then copy the JNDI-Name.

          Thanks anyway