Let's say I have a jar file with "core" business logic in it. As a part of this jar are a couple of MDB that are used to perform some tasks. This jar is then packaged as apart of each instance of the app in an ear that also contains a war. Each instance is in fact it's own "site".
The problem I am facing is how can I dynamically specifiy the JNDI name of the MDB without resorting to ant copy filter tricks when building the ear? Is there a more generic way? And no, I can't pull the EJB jar out and just deploy that and let the web apps share.