ajit sagar

Owned by The JIT- software architect, Java Developer Journal editor, writer, comic book fan, father, and overall nice guy - this blog is made up of random thoughts, ramblings, and steaming hot cups of Java for the enterprise

Search
 
««
January 2009
»»
SM
T
WTFS
     123
45678910
11121314151617
18192021222324
25262728293031
Mailing List

Session Beans usage
I am currently in the process of reviewing the design strategy and direction for EJB adoption for a very large, techno-savvy, risk-averse financial client. As part of the review, I looked across the implementations that my company, Infosys, has done for other clients. In the enterprise solutions world, it is fairly obvious that the solutions are stepping away from Entity Beans, Stateless Beans are viewed as "Give me a good reason why they were even invented," and Stateless Session Beans are used primarily as pass-through classes. A large part of the reasoning behind the latter is that folks don't want to put all their eggs inside the bean. MDBs make sense if you are trying to get to Session Beans. If the session beans are used purely as a remoting technology, then the usfulness of MDBs is also very limited. Business Delegate is used to the point of overkill in most situations. Given these types of scenarios, it is questionable why companies should invest in EJB technology. Agreed that the vendor-added features give you a lot of "free" features, but then you are not developing "pure-J2EE." In a previous life I have deployed enterprise products which used both Entity Beans as well as Session Beans successfully. But that was also because we invested in the technology and adopted it without worrying about avenues for alternative means of client access. This was not a requirement. Fortunately, this was a product built from scratch. But when clients want to be able to walk away from the EJB model, they want to make sure that the business logic is completely outside the session, the business logic components are accessible by other means (besides Session bean based remoting), and Session Beans are a pure facade - no aggregation logic or business logic.
A visitor made this comment,
You might want to take a look at Spring/Hibernate.

Ashish K

comment added :: 29th April 2004, 02:15 GMT-06
A visitor made this comment,
It's about time you made a new entry! Personally, I think unless you have a large read to write ratio, Entity Beans aren't useful at all. I've used Kodo(JDO) pretty successfully though. Take care, Mr. Sagar.

Tom [thomas.mcgraw@towers.com]

comment added :: 12th May 2004, 20:52 GMT-06
Ajit Sagar made this comment,
Mr/ McGraw! You are so right about both things. One, its about time. The other about the fact that Entity Beans are not very useful in most situations. In fact, I the purpose of the entry was not to argue the case, but rather to make an observation about what I have seen at various clients.

JDO has come along, however, clients are even more reluctant to invest in this option. Anyway, with JDO.

Will catch up with you when in Dallas

comment added :: 16th May 2004, 20:43 GMT-06
debt consolidation made this comment,
hi, you have a great site, I have a debt consolidation website. Number one debt consolidation on the Internet!
comment added :: 20th April 2006, 20:03 GMT-06 :: http://www.debt-consolidation.com
The Neighborhood

Hosted by Blog-City v6.0a
Terms & Conditions of this blogcity site