1 Reply Latest reply on Dec 10, 2003 3:24 PM by juha

    MDB, jars, Ears and external libraries

    roger day Newbie


      I'm using an MDB to access a queue, but I need the MDB to connect to another service via xml-rpc.

      My current plan is to load the xml-rpc jar into the MDB ejb-jar via Ant. The one thing I don't want to do is to put on the xml-rpc on a CLASSPATH somewhere :-(

      Can anyone suggest, please, a more elegant solution? Would an ear work here and how?



        • 1.

          You can just drop the xml-rpc.jar in your deploy directory, the classes will be added to the server from there. However you need to make sure the deployment order is correct, so that the classes are deployed before your MDB attempts to instantiate them.

          Or drop the jar into your lib directory. It's always deployed before your MDB. The lib dir is not hot-deployable though.

          Or package them both into an EAR, just keep the JAR at the root of the EAR directory structure.