AbstractTransactionalJUnit4SpringContextTests Failing to Rollback in MySQL?

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?

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

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

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