Forums Register Login

Session facade and Entity JavaBean and DAO

+Pie Number of slices to send: Send
Hi, I have a question regarding sesson facade J2EE pattern. Is that true session facade only makes sense when using in EJB? If there is no EJBs in my application, in stead, we have some DAOs (data access object), does it still make sense to use session facade? What is the way they are communicating? Thanks.
+Pie Number of slices to send: Send
hi,
even if u are not using any entity beans it makes sense to use sessionfascade as entity/dao will give u a persistance mechanism.
where as session fascade for having business logic
+Pie Number of slices to send: Send
Hi,

I think Karthik is Right here and Session facade can be very well used with DAO's. Here is an example for the same. Just try and let me know if you still need some more clarification.


SessionBean method :



And the impl class 'UtilDAOImpl' have this method storeAuditTrialData(ATDO). You could use normal JDBC or JDO/CMP to achive the persistance.

hope this helps.
Thanks,
Rahul Juneja


rahul.juneja@patni.com
permaculture is giving a gift to your future self. After reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1160 times.
Similar Threads
service locator used before or after session facade
Single or multiple facades
BD-SLSB-SFSB
Question regarding SFSB
SCEA part 2 - class diagrams and carts
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:45:00.