ANOTHER JAVA EE Framework
I think, Java Enterprise has entered the saturation point. This marked the emergence of various styles with a framework that is different. Often the framework is in fact we make in building a Java application. Saturation is a very vulnerable situation when a new programming paradigm to bring ease of entry and ease-of disciplines that can be fresh out of Java Enterprise (RoR - Ruby on Rails, will this murderer is Java?).
Kemapanan Based Action
Framework Java initial request-style action-based response to natural behavior of the HTTP protocol. This is a sector leader Struts from Struts 1.x, Struts, and when left programmernya, Struts kemapanan Webwork followed by the birth Struts 2.x.
In its development, Struts is not enough to be a framework. In ranah Model Trinity in the holy paradigm Model-View-Controller, making enough to access the database using the generic JDBC usual. Therefore, the iBatis framework munculah move writing SQL in XML file so that when the query changes, the application package does not need to re-compiled and re-deploy. In addition, the database can also access the direct-inject into the objects using the Java Bean Object Relational Mapping (ORM). Therefore, appear later Persistance Java API (JPA), Enterprise Java Bean 3 (EJB3) and Hibernate ORM.
Pile stack framework is an Inversion of Control is simply described as the data traffic between the Model (ORM Hibernate) and View (Struts). He lives in ranah Controller. Here the framework is the most popular Spring Framework.
Classic Problems
Well, so far, we have a three-stack framework: Struts, Spring, and Hibernate. This framework of three, has been able to guess that the problem that appears is the first time, the time set up the old application.
In fact, to create a web-based enterprise applications, which we need to make the repeated (and therefore is boring):
1. Create mapping between the database to the Java Bean object. Imagine if there will be 15 tables that each berelasi. This means I have to make 15 XML files that describe the detail of each column, primary key, type in the fields, the relation-table relasinya with other .... of painful. : (
2. Display mechanism for user crud (Create, Update, Delete) with validasinya. Certainly understand if you never create a HTML form containing textfields, combo boxes, buttons, and make the flow of data with the GET or POST request, the query SELECT, UPDATE, and DELETE to three pages. Then, in order to validate the user inputan according to the specification table in the database. After that, if there are 15 tables, you must be repeated in 14 other tables. Total will have 15 * 3 = 45 work repeatedly boring for you.
Not very exciting if there is a automation tools that do it all? Reading the table in the database and reverse engineer. Hibernate-mapping make it, make a class-class Java Bean, create pages for each table crud and validation based on the specification table automatically in just one mouse click? ;)
Seam Framework: Coming from the Web Event-Based Programming
Java web world shaken when Microsoft offers. Net framework is a mengiming-imingi programmer with event-based style of his. Web page is no longer seen as a HTML page to send a request to the server, but as a desktop that has a button that can be clicked and call the method when a particular component of a given action. Forget request GET or POST request, you will only see the components that can be clicked.
Tapestry is a popular Java framework that uses component-based style of this. Then appears the Java Server Faces specification is for me similar to ASP.net. JSF immediately popular because socialized and supported by vendor-vendor giants Oracle and Sun kinds (with its Oracle ADF).
If departing from the Struts Java Server Pages (JSP), the Seam departure from the JSF. If speech problems Struts Action Form and then Seam talk more about Managed Beans and Annotations. By default, Seam provides all the details. In the model, using the implementation of the Seam property EJB3 Entity Beans with Hibernate Annotations and Persistance Java API (JPA). On the View, Seam using standard JSF Facelets, RichFaces, and Ajax4JSF. Controller by it self.
Seam-Gen
But I was not too interested if Seam provides only that-that's it. Just another suck frameworks, especially with Seam too dependent JBoss Application Server with the obese. However, one thing that makes me interested meliriknya is a small command line tool called Seam-Gen. This tool is actually just a set of procedures based Hibernate Tools that perform code-generation as do Reverse Enginner, mapped to the object database, and create pages crud in one command. Answers to the dream in my top! And with the help of JBoss Tools, an Eclipse plugin, the work is truly just one click!
Really fun! Crud and Validation in just one click? Do I over-if I said this really fun? You should try this. :)
Please visit: Seam Framework to Seam downloaded and follow the Roadmap is the Getting Started with Seam.
For you who have not been at all the Java EE programming attempt, you may be quite difficult to understand Seam, so I suggest to understand the concepts of the following first:
* Java Server Faces
* Object Relational Mapping with Hibernate
* Enterprise Java Bean 3
* Java API Persistance
Wednesday, July 29, 2009
what is that ???
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment