Systems Integration
Jul 22 2010
HelloWorld Using JSF 2 And CDI
In this blog I'm going to go over the steps to get a simple HelloWorld web-app up and running on JBoss 6 using JSF 2 and CDI. Background information and full documentation for the technologies used can be found at the Java EE 6 home page and Weld documentation site.
Jul 21 2010
Transactions, Part 2 - Writing Data Reliably
Programming With Transactional Systems
Commit and Rollback
Transactions either commit or rollback. Until a transaction is committed, it is assumed none of the work it has done is saved. Once a commit signal is issued by the application (either through an API call, or by a container), this work is actually performed by the transaction processing engine that's being used. If for some reason the commit fails due to an error scenario, or some other runtime exception occurs, we assume that the integrity of the transaction has been compromised and the transaction rolls back, removing any work done up to that point. When a rollback occurs, the transaction must be resubmitted.
Jul 20 2010
Secure Development - Buffer Overflows and Legacy Systems
Due to vacation schedules and lots of other things going on this summer, "next week" has turned into "next month" for this final post in my top 10 series. Today's subject may be a little surprising to many developers: Aren't buffer overflows so 2003? Hasn't this been fixed in virtually all modern programming languages by preventing direct memory access? While the second statement is certainly true, it doesn't mean that today's developers don't need to be aware of buffer overflows, especially when interacting with closed-source and/or legacy software written in languages that allow arbitrary memory access (C and C++ being the most common examples).
Jul 14 2010
A Persistence Pattern Using ThreadLocal And EJB Interceptors
Preface:
One of the traits of a well-designed application is the efficient handling of crosscutting concerns. By efficient I mean the application architecture/framework to handle bulk of the crosscutting concerns (such as security, transaction management, logging etc.) and let the individual services concentrate on the business logic. In this blog entry, I discuss one such cross cutting concern and a way to handle it at the framework level.
Jul 08 2010
Clearing Spring form fields in a JSP within a Spring Webflow
This blog post concerns the issues I came across attempting to clear two drop downs and a text field in a JSP that itself was a view inside a Spring Webflow (v.2.x).
The layout of the JSP is here: http://gomockingbird.com/mockingbird/index.html?project=559efee20fb22b4a077b4e6652c36f8f54376621
Essentially what my terrible drawing is showing is a list of items and below that list of items three drop downs that when selected, and the save button is clicked, will populate another row in the list. The reason for being inside a Webflow is that this particular problem was part of an enhancement to an existing Webflow.