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

    MDB initialization from DB

    lang

      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
          mnovak

          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.