I'm working on a system that has 4 roles in it , and number of roles will be changed in future, so we should have a good architecture for this purpose.
some of these roles have similar tasks but not completely similar , their task are some how similar in ejb tier [80%].so i decided to use this architecture, I put two layers of session bean in front of entities , first level is consist of nearly 10 session beans that give some sort of services , for example registering and activating a bunch of users and ... . at the top of this level i put 5 session beans that 4 of them are for specific roles and one them is a common proxy session between these roles.
i think with this architecture i can isolate roles from each other , so when i want to remove on role i can remove its proxy session without any effect on other roles.
remeber that when roleA want to do something, its request goes to its proxysesion , this proxysession may call some of the proxysession on level 1 and return.
could u please help me on this decision ?
is it goood to have 2 layer of proxy sessions like this ?
Thanks a lot
I hope u can read my english :)