7. Use without condition conversation Bean, is not to have condition conversation Bean.
Such stop doing that what can make your systematic withstand wrong. The condition related use HttpSession memory and user.
Look with our viewpoint, when the idea that has condition conversation Bean already was passed. If you consider its carefully, it is identical that one has condition conversation Bean to be with object of a CORBA actually on architecture, no more than is an object example, bind decide a server, and rely on a server will manage its lifecycle. If the server was shut, this kind of object is nonexistent also, so the message that the client of this Bean carries is nonexistent also.
The breakdown that J2EE application server provides to have condition conversation Bean is transferred (Failover) can solve a few problems, but the solution that has state expands easily without the solution that does not have condition. For example, in WebSphere Application Server, to having the request of condition conversation Bean, it is to pass the member group that does not have condition conversation to deploy to undertake to load will come true balancing. Contrarily, j2EE application server cannot undertake balancing to load to having the request of condition Bean. The to load process of the server in the group that this means you can be disequilibrium. In addition, use the applied server that condition conversation Bean will add a few condition to you again to go up, this also is bad practice. Increased systematic complexity so, and make below the circumstance of occurrence breakdown the problem becomes complication. A crucial principle that establishs hale distributed system is to be used as far as possible without state action.
Accordingly, we suggest to great majority application the program is used without method of condition conversation Bean. The related to the user position that allows why to need to use when processing should convey with the form of parameter the method of EJB is medium (and will store through using a kind of mechanism to be like HttpSession it) perhaps store from the back end of endurance (regard EJB as general affairs through using hypostatic Bean) for example. Below suitable case, this information is OK cache arrives in memory, but should notice to save the challenge gender with potential place of this kind of cache in distributed environment. Cache special agree with read-only data.
Anyhow, you should ensure from be about to consider at the beginning can extend malleability. The examination devises all medium tentative plans, when and consider the applied process when you should be on many servers moving, whether can also move normally. This regulation not only the applied process code that suits afore-mentioned situations, if the circumstance of MBean and other government interface falls,also apply to.
Avoid to use the proposal that having condition sex is pair of IBM/WebSphere not merely, this is a basic J2EE design principle.
Previous 1 23 4 5 6 7 Next