Another variant to acheive the same result is by using the following view pattern:
In this case you only list the business methods in the "Business" interface. IRemote and ILocal are only marker interfaces that just extend the "Business" interface and which carry the respective annotation:
package foo;
import javax.ejb.Local;
@Local
public interface ILocal extends Business {
// empty
}
This way extending the session bean by new methods just means to update one additional file. Unfortunately this yields again four artefacts for this task, which is far from simple.
Are there better ways to do this?
No comments:
Post a Comment