Notes on the development of a general-purpose controller for JAVA Enterprise Edition web applications plus various topics in computing and software engineering including Oracle's MVC 1.0 Ozark product.
Monday, January 12, 2015
JAX-WS Webservices Primary and Secondary Up and Running
Team. This past weekend we successfully created JAX-WS primary (server) web application and secondary (client) in our CABOOSE application which exchanged an acknowledgement message. This week we will work on adding a JAX-RS (RESTful) web-service primary and secondary. Also, we will be brushing off our notes on algebraic specification so we can create the first draft of a formal treatment of CABOOSE. This might seem overly academic, but most of those in education say that these types of formal tasks should be performed more regularly among professional software engineers. We will keep you abreast on our progress with JAX-RS webservices. Remember our motto: Hunt!Peck!Think! Happy Coding. La-La.
Saturday, January 10, 2015
Saturday Afternoon Post
Team. NetBeans generates so much code in the creation of the web-services and their clients that it is not practical to place in-line in a daily post. Our goal is providing the final source for the prototype in the online repositories when completed. We apologize for any inconvenience that this might cause. Enjoy your weekend. For our faithful CABOOSE weblog viewers in France, Merci pour votre intérêt et support. La-La.
Friday, January 9, 2015
Links for Learning More About Web-Services with JAVA Enterprise Edition
Team. We are still working on adding the web services. One of the nice aspects of using an Integrated Development Environment (IDE) like NetBeans is that much of the web-services code is auto-generated. All one must do is complete the method stubs which the IDE generates and add any other supporting methods private, protected, package, or public.
For more information on web services with JAVA Enterprise Edition (JEE) see:
http://docs.oracle.com/javaee/6/tutorial/doc/
The JEE tutorial is rather large and more that 1500 pages in Adobe portable document format (PDF). However, the beginning of each chapter has a nice summary of the topics contained therein. It is best if you read the first paragraphs of each section of the chapter on web-services to become acquainted with them. This is only a few pages of reading in comparison with the whole text which covers other topics such as JAVA Security, JAVA Persistence, JAVA Server Faces (JSF), Servlets, and Enterprise JAVA Beans.
If you are a full-time software engineer whose primary skill-set is JEE and you have not read through this tutorial, you should. Much of it will likely be review, but you might fill in a number of gaps in your learning if there are any. You can easily skim five or ten pages in a day. In a year you will be done. It is probably best if you try digesting it in small palatable portions.
Also, before building any web services on your own with NetBeans, please consider reading through the tutorials at:
https://netbeans.org/
Simply search for "web service tutorials". This will simplify the coding process. Enjoy this day of coding. La-La.
For more information on web services with JAVA Enterprise Edition (JEE) see:
http://docs.oracle.com/javaee/6/tutorial/doc/
The JEE tutorial is rather large and more that 1500 pages in Adobe portable document format (PDF). However, the beginning of each chapter has a nice summary of the topics contained therein. It is best if you read the first paragraphs of each section of the chapter on web-services to become acquainted with them. This is only a few pages of reading in comparison with the whole text which covers other topics such as JAVA Security, JAVA Persistence, JAVA Server Faces (JSF), Servlets, and Enterprise JAVA Beans.
If you are a full-time software engineer whose primary skill-set is JEE and you have not read through this tutorial, you should. Much of it will likely be review, but you might fill in a number of gaps in your learning if there are any. You can easily skim five or ten pages in a day. In a year you will be done. It is probably best if you try digesting it in small palatable portions.
Also, before building any web services on your own with NetBeans, please consider reading through the tutorials at:
https://netbeans.org/
Simply search for "web service tutorials". This will simplify the coding process. Enjoy this day of coding. La-La.
Thursday, January 8, 2015
Making Progress Adding Web Queries
Team. We are making progress today on adding some "Hello World"-style web-service queries. This will be the bulk of our activities for this week. Have a Productive Day. La-La.
Wednesday, January 7, 2015
Deliverable Date Estimation and a Note On Concern Partitioning
Team. We estimate that the prototype will be completed by 02.15.2015. We will reason from it and evolve it to create our final product. This first cycle of evolution will take between nine and twelve weeks including testing. We have created a relatively small and simple project for a reason. As a well-known software engineer whose name escapes me has stated, one can create software systems which are so simple that any error would be apparent or so complex that there apparently are not any errors. Building small simple components is a good practice for software development. When developing large systems, one should develop smaller manage-able pieces which are assembled during integration testing. We have chosen a small system hoping that any error would be glaringly obvious.
A short note on discrete multidimensional concern separation:
Software is a collection of concerns. A concern is a characteristic of the system which we must consider when constructing it. This might be the nature and type of its modularity, architecture, intercommunication methods, or etc. When considering a system, one will find that during the phase of requirements engineering the software will be described as a set of features, requirements, and specification objects. Each feature produces one or more requirements. Each requirement produces one or more specification object. During the architectural and detailed design phase, implementation, and testing, the system takes the form of design objects and implementation objects which we verify with test cases. Each specification object becomes one or more architectural design objects which each becomes one or more detail design objects. Each detailed design object is an algorithm or data structure. These design objects in natural language can be directly transliterated producing implementation objects. These implementation objects are verified with test cases derived from the requirements. Each requirement produces one or more test cases. After successfully verifying our product, we must validate it. Validation is the process of receiving approval from our base of clients when they test it.
The above is a single iteration of a life-cycle using discrete multidimensional concern separation. Each set of concerns: features, requirements, and etc., represents a dimension. This approach works well for producing trace-able documents and is a wonderful strategy for a personal software process (PSP).
Remember always use the Bird Foraging Method (Hunt-Peck-Think) when coding. It makes for better software. Happy Coding, Team. La-La.
A short note on discrete multidimensional concern separation:
Software is a collection of concerns. A concern is a characteristic of the system which we must consider when constructing it. This might be the nature and type of its modularity, architecture, intercommunication methods, or etc. When considering a system, one will find that during the phase of requirements engineering the software will be described as a set of features, requirements, and specification objects. Each feature produces one or more requirements. Each requirement produces one or more specification object. During the architectural and detailed design phase, implementation, and testing, the system takes the form of design objects and implementation objects which we verify with test cases. Each specification object becomes one or more architectural design objects which each becomes one or more detail design objects. Each detailed design object is an algorithm or data structure. These design objects in natural language can be directly transliterated producing implementation objects. These implementation objects are verified with test cases derived from the requirements. Each requirement produces one or more test cases. After successfully verifying our product, we must validate it. Validation is the process of receiving approval from our base of clients when they test it.
The above is a single iteration of a life-cycle using discrete multidimensional concern separation. Each set of concerns: features, requirements, and etc., represents a dimension. This approach works well for producing trace-able documents and is a wonderful strategy for a personal software process (PSP).
Remember always use the Bird Foraging Method (Hunt-Peck-Think) when coding. It makes for better software. Happy Coding, Team. La-La.
Tuesday, January 6, 2015
Making an Assessment of Progress and Deciding Future Directions
Team. These were the design goals for our prototype. So far, we have completed seven of ten. It has been about nine weeks with four to eight hours of effort each week. This was originally estimated at 160 hours since some of the project was unfamiliar territory. It has proven easier than expected. The outstanding goals are listed below. Since it only creates a minor speedup, we might save the enhancement with the SAX Reader until the first development cycle. The first cycle should be rather short and will involve armor-plating our prototype instead of throwing it away and starting afresh. We will consider and discuss a discrete method for multidimensional separation of concerns (SoC) when creating our life-cycle documentation. This method might be useful for your personal software process(PSP). Software engineering research has found that all developers have one. This approach to concern partitioning might simplify yours. We might have lost a few of the more novice JAVA developers along the way. This is unfortunate. Do not give up; Ask questions and the unclear topics will resolve themselves eventually. Speed is not critical. Remember the turtle won the race and did some sightseeing along the way!La-La.
Prototype Design Goals:
Week Goal
0 Project Overview and Discussion
1 Create "Hello World"-style program which serves up internally stored XHTML
2 Create "Hello World"-style program which serves up externally stored XHTML
3 Create "Hello World"-style program which serves up externally stored XHTML
whose file-name we extract from an XML file
4 Extend the prototype so a method populates the #STENCIL_REPLACEMENT_VARIABLE#s
in the XHTML page.
5 Extract the name of the method which populates the stencil replacement from an XML file
6 Consider converting between DOM and SAX XML reader for efficiency and user control over
data structure which hold application configuration parameters.
7 Improve exception handling. Do not simply throw exceptions upward.
8 Add contracts for enforcing "program-correctness" within controller.
9 Deploy this first iteration of the evolutionary model at java.net/projects/caboose
10 Create life-cycle documents for development of the production product based on reasoning
from this prototype
Outstanding Design Goals:
Weeks: 6,9,10 plus the following.
A. Creating and Algebraic Specification of the CABOOSE Servlet Kernel.
B. Integrating with a single Hibernate "Hello World" Query [DONE]
C. Integrating with a single JAX-WS Web Service "Hello World" Query
D. Integrating with a single Restful Web Service "Hello World" Query
E. Create test cases for each of the requirements list in the life-cycle documents.
We likely will do these in the following order C, D, A, 10, E, 9, and 6.
Prototype Design Goals:
Week Goal
0 Project Overview and Discussion
1 Create "Hello World"-style program which serves up internally stored XHTML
2 Create "Hello World"-style program which serves up externally stored XHTML
3 Create "Hello World"-style program which serves up externally stored XHTML
whose file-name we extract from an XML file
4 Extend the prototype so a method populates the #STENCIL_REPLACEMENT_VARIABLE#s
in the XHTML page.
5 Extract the name of the method which populates the stencil replacement from an XML file
6 Consider converting between DOM and SAX XML reader for efficiency and user control over
data structure which hold application configuration parameters.
7 Improve exception handling. Do not simply throw exceptions upward.
8 Add contracts for enforcing "program-correctness" within controller.
9 Deploy this first iteration of the evolutionary model at java.net/projects/caboose
10 Create life-cycle documents for development of the production product based on reasoning
from this prototype
Outstanding Design Goals:
Weeks: 6,9,10 plus the following.
A. Creating and Algebraic Specification of the CABOOSE Servlet Kernel.
B. Integrating with a single Hibernate "Hello World" Query [DONE]
C. Integrating with a single JAX-WS Web Service "Hello World" Query
D. Integrating with a single Restful Web Service "Hello World" Query
E. Create test cases for each of the requirements list in the life-cycle documents.
We likely will do these in the following order C, D, A, 10, E, 9, and 6.
Monday, January 5, 2015
Goals for This Week.
Team. We should have some source on http://java.net/projects/caboose soon. Also, we should spend some time reviewing our goals and brainstorms in preparation for a presentation at the local JUG. This will likely be the bulk of activities for our week. La-La.
Subscribe to:
Posts (Atom)