Originally posted by Mohamed Farouk:
There main question is whether performance will be affected?
That depends on how many instances you are comparing. If you have the same EJB deployed to 5 applications, are you comparing it to 5 clustered remote EJBs.
Some arguments for the reused approach being faster:
-The code is more centralized so results would be better cached.
-There is less contention with other processes within a JVM
Some arguments for the reused approach being slower:
-You have to use remote interfaces resulting in more network traffic.
-Calls may be more diverse causing less caching for the single application.
So basically, it depends. One isn't inherently faster than the other.