Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes OO, Patterns, UML and Refactoring and the fly likes Do you like EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Do you like EJB?" Watch "Do you like EJB?" New topic
Author

Do you like EJB?

Laojar Chuger
Ranch Hand

Joined: Dec 20, 2000
Posts: 111
EJB is a major feature of J2ee architecture. Its creation as said by SUN is to facilitate developers for the development of the middleware. To me it seems EJB just makes RMI more difficult as it added a layer over RMI and then developer has to spend a lot of effort on deployment. Because running EJB depends on the EJB engine, you have no control over what you are doing. Some very simple stuff can become very difficult.
I would like to know your opinion on this topic?
Thanks.
John Bateman
Ranch Hand

Joined: Mar 09, 2000
Posts: 320
Originally posted by Laojar Chuger:
Because running EJB depends on the EJB engine, you have no control over what you are doing. Some very simple stuff can become very difficult.

Hi,
(maybe this is off topic for this forum but....)
I agree on what you said previous to the above quote but, in my honest opinion, the reliance on the EJB Engine should not be a concern. If you choose a application server that is J2ee certified and adheres to the specs you should have the comfort and peace of mind that you know what functionality to expect and can build accordingly.
I think that the EJB technologies are incredible in the way they approach the separation of your tiers and in the ability you have to easily plug in new functionality to a site. Just add a new session bean and use your entity beans.. voila!
Now if you are really worried about the control provided by your EJB Engine (application server or A/S) there are always proprietary alternatives, but, I think these have their own problems associated with them. In my past experience they actually have more. Companies that supply products to you can shift markets, drop products or even just disappear like the wind. Where do you go if this happens? Continue supporting your out of date unsupported platform, or, re-write and deploy on a new one.
Using an A/S alteernative that implements EJB's gives you choice. In my professional world, choice is what will keep me alive if one of my suppliers starts feeling rocky ground, AND, the associated competition keeps everyone honest. I feel that this will elevate the quality of the product in the long run.
I notice we haven't even discussed the EJB technology itself (which I have alot of confidence in) but that is also another post in this forum.

Just my $0.02/cdn


SOURCE CODE should be SURROUNDED by "code" tags.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
The question really is... what are you using the EJB server for? Are you using it to provide the transaction services that it would normally take your group about 5 man years to code?


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Laojar Chuger
Ranch Hand

Joined: Dec 20, 2000
Posts: 111
Good point! Any thing involving transaction creates greater complexity and I guess EJB engine is built really for this kind of situations. However, most time the application may not be that complex and it is easy to abuse the EJB engine. That's my concern.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Do you like EJB?
 
Similar Threads
ejb and rmi
Could you help me making technologic choice ?
received developer cert
RMI-IIOP with Websphere naming server in WAS 3.5
RMI over Sockets