It is an obvious fact that local EJB calls are more efficient than remote. The aim here is to observe the difference between these calls in terms of time and resources consumption and finally provide observation results. In this post is given an overview and an explanation of a technical infrastructure with a goal to measure both local and remote EJB calls. The infrastructure consists of Java EE application suites and two managed servers running on Oracle WebLogic application server.
EJB components differ from Spring beans on the technical background whereas their concept is quite similar. The technical diversity might be an issue when composing dependencies between these two bean types. The purpose of this post it to give an idea to design solutions based on a mutual EJB and Spring beans interoperability. There are taken into account two main concerns: accessing EJB components from Spring beans and accessing Spring beans from EJB components. The post introduces technical aspects referring to a simple enterprise application implementing beans cooperation.