I have several applications and a set of stateless session beans that we use for our business logic.
We are having trouble when it comes to updates.
Most of the clients we develop access these ejbs.
for example:
We have a customer ejb that has methods for retrieving customers details, allocated order, history, etc.
Obviously lots of client applications need access to this and to include the EJB in each application is pointless.
It works when the application is deployed as an EJB project and the client apps access its remote interface.
However when we change another ejb that is in the same project (say the related stock ejb), the client apps need to be redeployed as the DTO the ejbs return have been recompiled to redeployed the EJB project. One solution I can think of is to return a Hashmap instead of a DTO so the webapps have no dependency on any Custom DTO classes and therefore the client apps cannot go stale.
I am interested to know how everyone else deals with this sort of common code?
What does everyone else do?