2 Replies Latest reply on Jun 21, 2004 4:24 AM by khem

    Schedule an EJB method

    khem

      Hi,

      I have an EJB which contains a business method. I have deployed my EJB in JBOSS 3.2.3 and tested successfully with a simple client.
      Now I want this method to be schedulded with quartz but i don t know how to do this..
      Can anyone give me more precision?

      thx in advance....

        • 1. Re: Schedule an EJB method

          kehm;

          We do this by implementing a simple MBean which is an EJB client. Quartz will invoke an exposed operation on the MBean which in turn will look up the EJB Home, get the remote/local and call the method. If you have parameters that need to be passed, you could store them in the DB or an XML file somewhere.

          //Nicholas

          • 2. Re: Schedule an EJB method
            khem

            Hi,


            We do this by implementing a simple MBean which is an EJB client.

            How do you do that? can you post some code and how deploy the mbean?

            Otherwise, i downloaded quartz and took a look into it. There s a quartz.jar in lib directory. When I place this jar in jboss deploy directory, it successfully deploys a "quartz service".
            But at this point, I don t know how to schedule my ejb method (my ejb is already deployed in jboss).

            Can anyone help me plz ....

            Thx