Ok so today I was working on some JUnit tests within Spring using AbstractTransactionalJUnit4SpringContextTests (yes, wow what a long class name). For those of you unfamiliar with this class, basically if you extend your unit test class from this class, every @Test annotated test method will run within a transaction, with the default behavior being … Continue reading AbstractTransactionalJUnit4SpringContextTests Failing to Rollback in MySQL?
Author: bitsofinfo
How to read a specific line from a very large file in Java
So the other day I had to write some Java code to read specific lines of text from very large files full of ASCII text records (of a fixed length). The records in the files are generally defined by the the length of a record (no carriage returns, fixed length, i.e. each "record" is 290 … Continue reading How to read a specific line from a very large file in Java
Spring AS & Prana woes with blank prop or constructor args
UPDATE: The bug described here appears to be fixed as of 0.8 So I've been doing a fair amount of work with Spring Actionscript v0.7.1 (formally the Prana Framework). In AS3 you can define methods and/or constructors that take optional arguments. Optional arguments must always be defined after the required arguments and they are noted … Continue reading Spring AS & Prana woes with blank prop or constructor args
Review: Spring Recipes
This is a review of the book "Spring Recipes" by Gary Mak I picked up this book as a supplement to the "Spring in Action" 1st/2nd editions that I have. This book takes the same approach as the O'Reilly Cookbook series and covers Spring 2.5. Basically it is a task/problem oriented book. Each little section … Continue reading Review: Spring Recipes
Book Review: JBoss in Action
This is a review of the the book JBoss in Action by Javid Jamae and Peter Johnson. The last time I looked at JBoss was about 2 years ago when our team was evaluating migrating our in house DAM application to the platform. We looked at JBoss mainly due to its integrated JGroups distributed caching … Continue reading Book Review: JBoss in Action
Easy Multipart file uploads / POSTs using URLStream or AS3HttpClientLib
When working on a cross runtime Zinc/AIR method method of posting files to a remote server, I came across Mike Stead's URLFileVariable and URLRequestBuilder classes which makes the process of uploading multiple files (or ByteArray's of data) via an HTTP POST much easier. Click here get his code The basic concept is this: assuming you … Continue reading Easy Multipart file uploads / POSTs using URLStream or AS3HttpClientLib
Strange IMPORT failure in Spring AS
So I've started to think about splitting up the main applicationContext.xml file in one of my projects. The current one is getting quite large. Spring AS has the ability to import bean/object definitions from another XML file of your choice such as the following example where my context defines one object "yObject" and then declares … Continue reading Strange IMPORT failure in Spring AS
Review: Java Persistence with Hibernate
This is a review of "Java Persistence with Hibernate" by Christian Bauer and Gavin King This is the second Manning book on Hibernate to find a place on my bookshelf. The first one being the older 1st edition of "Hibernate in Action", however this book is a revised edition of the 1st edition and takes … Continue reading Review: Java Persistence with Hibernate
Review: Spring in Action
This is a review for "Spring in Action" 2nd Edition by Craig Walls Spring in Action covers 2.0. The book is excellent and walks the reader through the basics of IoC, bean injection, AOP and then on to virtually every major component of this framework. For the database side of things, they cover basic JDBC … Continue reading Review: Spring in Action
Prana Framework is now under the Spring umbrella
Great news and I've been hoping for this for quite a while. Spring has taken the Prana Framework under its wing and added it as an official Spring extension called Spring Actionscript. Here is another post about this. When I first got into developing in AS3/Flex this past summer I immediately began looking for some … Continue reading Prana Framework is now under the Spring umbrella