|
Ok, doubt - please see inline...
Peter Verkest wrote: ïWhen using normal java classes called from your MDB you do not loose scalability (pooling) nor transactions: your MDB already provides you with a pool of MDB instances.********************************************* in my understanding, if we have simple classes instead of Sessions Beans, we will have a situation where: MDB pool instance A needs instance of class X
So to serve n instances of MDB, the system will instantiate n instances
of Class X. Is that correct? If yes, then session beans do take care of
the scalability, right?
Using session beans here for pooling purposes won't make the system more scalable. Concerning the transactions, I think it's possible to specify your MDBs to use 'Required' (or 'NotSupported') as transaction attribute, so the transactions are there as well.******************************************** I kind of agree on this, but if we do this, we are still limiting (only two options) out transcation related options. We will not be able to do fine graining if required. What i mean to say is, lets say MDB A call SLSB methods X, Y, Z. The MDB method could have a attribute "Required" defined on it, and the SLSB methods could have there own transcation attributes defined in turn. Now lets say my application logic wants that "I don't care if the DB operation by method X fails, it is OK, i don't want to rollback on that", then I can do it with "NotSupported" attribute on X, and appropriate attributes on Y and Z. I can definately noy do this if I use simple classes. Or am I missing something here. ****************************************** What do you loose when not using Session Beans1. Distribution / load balancing: with session beans it's easy to call business logic residing on other servers. On the other hand, you could deploy this MDB on all servers in your cluster and WebLogic will do the load balancing on the MDB level for you.2. You loose the possibility to use simple, synchronous access to your business logic: calling session beans from JUnit, a web tier or a Swing client is easy.Depending on the use of your billions of records, you might consider using CMP entity beans or not: if e.g. 80% of the use cases READ in the same set of thousands of records, entity beans could be very interesting. ---Peter Verkest -- Best Regards Sanjeev Verma Sun ONE App Server Migration Consultant Web Services, Tools and Migration Tools Market Development Engineering=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". |
- Messaging Bean Sachin Tandon
- Re: Messaging Bean Sanjeev Verma
- Re: Messaging Bean Peter Verkest
- Re: Messaging Bean Kalra, Ashwani
- Re: Messaging Bean Aashish Kaushik
- Re: Messaging Bean Sanjeev Verma
- Re: Messaging Bean Peter Verkest
