courtesy Sanjib Ghosh from my company Tavant
Chose your solution wisely so that it makes sense even after 2 yrs !
============================================
Hello,
Many of you may be so busy in your day-to-day work that you may not be following what is happening in
java world. If you deal with java day-to-day basis, it may be worth to take a note.
Do you know java 1.5 beta 2 is out and the final release is not very far. It is such a big release that Sun is revising the version number to Java 5
Guess, how many new features are added in this release?. 10 ?, 20 ?, 50 ? ... Well, take a look at
http://java.sun.com/developer/technicalArticles/releases/j2se15/ Even more exciting thing is happening in enterprise world.
EJB3.0 early draft is out for review:
http://jcp.org/aboutJava/communityprocess/edr/jsr220/index.html Those who hate
EJB must take a look at this. The fat is gone. It has become simple POJI/POJO model. Add a few annotations to it and you get an EJB. Seriously, no more Home interface, no more DD hell. No more JNDI reference in your code. Container services are provided using dependency injection ( to learn more read :
http://www.martinfowler.com/articles/injection.html ) . Bye Bye Service Locator
pattern. You can very easily
test it outside the container. Don't you just love it. Wait, there is more ...
The whole entity bean model is changed completely. It is almost identical(even syntax wise) to Hibernate 2.x. Take a look at what future entity bean would look :
http://hibernate.org/~gavin/ebejb3.pdf Suddenly, DTO becomes an anti-pattern!
However, there are some issues with java persistence model in the community. There is some big
ego fight going on between EJB EG and JDO EG for last couple of months. It creates even more confusion as Entity Bean 3.0 model is so much similar to JD0 2.0 model. Geir & Jeremy state the whole confusion nicely and suggested a solution:
http://blogs.codehaus.org/people/geir/archives/000758_persisting_problems.html Let's see if these two EG converge and come out with one solution for persistence. Either way, we get a TRANSPARENT persistence model.
It is exciting time for java technology. However, it also adds the responsibility to us to upgrade our skills. It is even more important for us, Indians, as our friend vishal saxena has pointed out to "All those techies strutting around Bangalore's MG Road take notice. Your competitor in the US is getting ready to strike back " :
http://economictimes.indiatimes.com/articleshow/757187.cms As somebody said, the illiterates in 21st century are those, who do not have the ability to unlearn and relearn.
Happy Learning,
Sanjib Ghosh
[ July 23, 2004: Message edited by: Kalpesh Soni ]