Hi All
Can any one explain what is the main difference between Session Facade and Message Facade?. I had gone thru some materials. But i did'nt get the correct difference.
thanx,
Suresh Babu
-
EJB Design Forum (6 messages)
- Posted by: Suresh Babu
- Posted on: June 26 2003 04:25 EDT
Threaded Messages (6)
- EJB Design Forum by Mohit Jain on June 26 2003 06:26 EDT
- EJB Design Forum by Suresh Babu on June 26 2003 06:38 EDT
-
EJB Design Forum by Gal Binyamini on June 26 2003 07:52 EDT
- EJB Design Form by Suresh Babu on June 27 2003 01:25 EDT
-
"difference between sesion facade and message facade" by supraja madhavi on June 26 2003 08:05 EDT
- EJB Design Forum by Suresh Babu on June 27 2003 01:26 EDT
-
EJB Design Forum by Gal Binyamini on June 26 2003 07:52 EDT
- EJB Design Forum by Suresh Babu on June 26 2003 06:38 EDT
-
EJB Design Forum[ Go to top ]
- Posted by: Mohit Jain
- Posted on: June 26 2003 06:26 EDT
- in response to Suresh Babu
The main difference is that in session facade the entity beans are wrapped by session bean while in the message facade the entity beans are wrapped by message driven bean. -
EJB Design Forum[ Go to top ]
- Posted by: Suresh Babu
- Posted on: June 26 2003 06:38 EDT
- in response to Mohit Jain
Hi Mohit,
Thanx for your reply. I want more difference about the usages of session facade and message facade
thanx,
Suresh Babu -
EJB Design Forum[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: June 26 2003 07:52 EDT
- in response to Suresh Babu
I disagree with Mohit. I don't think a session facade is defined as a components which wraps entity beans. Facades are unified interfaces to a complex system or sub-system. That system may include, but is not limited to, entity beans.
The difference between session facades and message facades is the same as the difference between session beans and message beans. When you want a synchronous invocation and return value use a session facade. When you want an asynchronous invocation and can live with a possible delay in the processing of the request, use a message facade. Just pick up any EJB book and read about where to use MDBs and where to use SBs. I don't see how the fact that these MDBs and SBs provide a unified interface to a complex sub-system should make a difference.
Gal -
EJB Design Form[ Go to top ]
- Posted by: Suresh Babu
- Posted on: June 27 2003 01:25 EDT
- in response to Gal Binyamini
Hi Gal,
Thanx for your reply.
thanx,
Sur -
"difference between sesion facade and message facade"[ Go to top ]
- Posted by: supraja madhavi
- Posted on: June 26 2003 08:05 EDT
- in response to Suresh Babu
"Message facade comes over few of the drawback of session facade.Using session facade,the problems related to performance,coupling and maintainability can be resolved.But problems it is bit time consuming b.coz of synchronization.Session bean takes one request from one client.Clent will block whole process untill the whole process is completed.This problem is resolved by message driven beans.Using message driven beans by adding the capability to execute use cases in asynchronous,fault tolerant manner.
Seesion beans run in synchronized manner and MDB run in asynchronise manner.This difference will make it clear the differnce between Session facade and Message facade.Is it clear,If it doen't help plese revert back. " -
EJB Design Forum[ Go to top ]
- Posted by: Suresh Babu
- Posted on: June 27 2003 01:26 EDT
- in response to supraja madhavi
Hi Madhavi,
Thanx for your reply,
thanx,
Sur.