1 Reply Latest reply on Feb 12, 2014 6:25 AM by Miroslav Novak

    MDB initialization from DB

    Lang Lang Newbie

      I need initialize MDB from Database(or some configuration file that not in .war). normally it takes configuration from jboss-ejb3.xml or annotations. I need change it default behavior.

        • 1. Re: MDB initialization from DB
          Miroslav Novak Master

          Only what comes to my mind is to use ejbCreate() or setMessageDrivenContext(...) method which are executed when MDB is deployed. Here you can get Datasource for your DB and get the configuration. If you need to change something in Activation Config properties like destination than I don't a proper way to do it.

           

          Maybe to use stateless session bean with Timer which calls "receiveMethod" every 50ms could work.