Day 4 of J2EE training. Today, we completed everything on Enterprise Java Beans (EJB). For the past two days, we learnt about Session Beans, Entity Beans and today, Message-driven Beans. Also learnt about Bean Managed Persistence (BMP) and Container Managed Persistence (CMP). The IDE used in the course was Forte (also known as Netbeans).
So how does all the above compare with .NET? If you have done some architecture work, Session Beans are more like your Business Component classes where you handle all the complex business logic, manage transactions, manage your entity objects and etc. Entity Beans are your Business Entity objects. If you have been using my Paladin framework, you should be familiar with Entity objects. Basically they are classes that mapped to your database tables.
BMP and CMP are two ways of how a J2EE application server handles Entity Beans. In BMP, you have to write your own Data Access code - that includes your own SQL statements. CMP on the other hand, generates all the SQL statements for you behind the scene. Again, if you are using Paladin, you will have no problems visualizing it.
It is nice to see someone explain the concepts that I've already implemented in Paladin. It confirms that I'm on the right track. There seems to be a lot of similarities between CMP EJBs and Paladin although the implementations are different. To be realistic, there is also no way for me to grow Paladin to match their scale unless someone buy up my project ;P
One complaint I have is that it takes too much effort to write those Beans. I'm glad that I made Paladin simpler and gave it a more powerful wizard. The Attributes programming in .NET also gave me additional advantage in handling the mappings. However, CMP EJBs are managed and recognized by J2EE application servers - that's the part that I can't do with my limited skills. *BooHooHoo* Anyway, it is something nice to learn - Just for the kicks.
Tomorrow, it is all about Servlets and JSP.
Popular Post
-
I've been looking into the programmable aspects of SQL Server 2005 for the past days and one of the things that interest me most is the ...
-
ARC312 - Enterprise Architecture by Gurpreet Pall Started day 2 with a dose of Enterprise Architecture. I like Gurpreet's example of ...
-
Got curious about the Firebird database today. Heard of it for quite sometime but never tried it. One of my friends has been giving a lot o...
-
What a disappointing day! :( Started the day with a massive traffic congestion in the main road not far from my house. Stucked there for al...
-
I managed to catch a sneak-preview of AVP today! The movie was fantastic. But I was quite disappointed that there weren't many Alien v...
-
"What you cannot measure, you cannot manage" - Peter F. Drucker Had a solid day in a Metrics Workshop and the above is just one...
-
I was roped in to work on Active Directory these two days as the dudes in the MIS department had ran out of ideas. I was approached by my CI...
-
Day 4 of J2EE training. Today, we completed everything on Enterprise Java Beans (EJB). For the past two days, we learnt about Session Beans,...
-
ARC303 - Designing and Writing Interoperable Services: The Contract First Approach by Malek Kemmou Started the day with this session. It ...
-
GM today announced two contracts to "design and test lithium-ion batteries" for use in the Saturn Vue Plug-in Hybrid announced la...
No comments:
Post a Comment