This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I understand that different code needs generated for @Local vs. @Remote EJBs, but what if you don't know where they will reside? I've always believed that a strength of EJB is the ability to offload business rules from the application server to possibly its own server.
I was thinking that a deployment descriptor could determine this, but then I realized that the code would have references to @CustomerLocal and @Customer each representing the bean on different servers.