2 Replies Latest reply on Feb 17, 2009 8:56 AM by dimar1975

    Adding MDB to your web configuration

      Dear all,
      sorry to pester again the forum :-)
      I'm going to use the "web" configuration for a Tomcat project.
      I wonder if it's too complex to add MDB support to this configuration.

      I have added the "messaging" folder and jms-ra.rar to the "deploy" folder.
      Now JMS works correctly (tested with a simple client-server application), however deploying an MDB delivers the following error:

      org.jboss.deployers.spi.DeploymentException: Error deploying mdb.jar: failed to initialize bean container


      Taking a look at standard-jboss.xml I can see that MDB are actually configured:

      <container-configuration>
       <container-name>Standard Message Driven Bean</container-name>
       .....
       </container-configuration>


      What else should I add to the configuration ?
      thanks alot
      Marco


        • 1. Re: Adding MDB to your web configuration
          jaikiran

          Is this EJB3? If yes, then the bean containers are templated in ejb3-interceptors-aop.xml file. See the default/deploy folder for an example. But i am not sure if that will be enough for you to get the MDB deployed (or any other bean for that matter).

          Why not do the other way - Start with the "default" server profile and removed unwanted services?

          • 2. Re: Adding MDB to your web configuration

            Hello. tnks for your reply. Yes it is not enough adding ejb3-interceptors-aop.xml....so I rather start from the default configuration and remove unwanted services as you said.