Chaminda Amarasinghe wrote:
In J2EE, Session Facade pattern was introduced to reduced the network overheads of fine grained methods of Entity Beans. If we assume, EJB 3 Entity represents the Entity Bean's (in EJB 2.x) Role (Both used to represent the persistence data), Is the Session Facade pattern for entities still valid / true?
PS. Note that EJB 3 Entities are just Pojos, available to use in any tier.
Thanks
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:I think you misunderstand. Session Facade is about Session Bean, not Entity Bean.
Main purpose of Session Facade or Service Facade (in case not using Session Bean) is for reduce complexity, not reduce network call.
Facade pattern is about making easier to use.
Session Facade can also reduce network call, but I don't think it's too critical, compare to Entity Bean 2.0.
Core J2EE pattern wrote:Session Façade addresses two issues: controlling client access to business objects, and limiting network traffic between remote clients and fine-grained business components and services.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:Yes, I know. I said that. But it's not a big problem.
How many fine-grained methods will we call 3 or 4?
Compare to Entity Bean 2.0, if we read 50 Entity Beans, each has 20 attributes, we need to call 1,000 times.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJP, SCWCD, SCBCD, SCEA 5
SCJP, SCWCD, SCBCD, SCEA 5
The only way to make your dream come true is to wake up.
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|