Category Archives: Programming

Learning GO: Limit #concurrency in #golang

Concurrency is easy to implement and fun in go, but as we know all things that are easy and fun can end up doing a lot of dammage if we are not careful. The way the concurrency was implemented in my previous post is prone to abuse. What if the for loop iterates over a… Read More »

Advertisements

Learning GO: Concurrently execute expensive validations on several items and return the list of validation errors with #golang

Most of the time software for real use cases from financial industry is just validating inputs. When I say validating inputs I refer to business validation that actually checks against standard formats or generates complex validation against business rule sets. Usually this step is very important because it is the step that gets hammered with… Read More »

Setup #Eclipse as #go IDE in Linux

I like Eclipse and I used it for many years on Linux for Java developement. I wanted to test how go(golang) works but I did not like all the suggested IDEs, you know the “cool” ones. I wanted to be able to use Eclipse. By default eclipse is not go oriented but with some small… Read More »

Debug tools for enterprise environments

There are various tools that I use to spot issues and investigate an enterprise environment. One of my favourite tools is IBM Performance Analysis Suite. Capabilities described by IBM: Import all kinds of performance data for analysis. Some examples: DB2 snapshot, Java verbose GC output, Java thread dumps. Import software/middle-ware configuration for compliance checking. Some… Read More »

Hibernate: Optimize updates with @DynamicUpdate

When using Hibernate as a layer between your Java code and the Database layer you release control on how the actual SQL query is generated. Hibernate will generate from the HSQL you write the “best” query. That “best” is in fact sometimes sub-optimal. A very important Hibernate 4 (make sure you have at least 4.2.5)… Read More »

Hibernate: Avoiding a “fake” exception: javax.persistence.TransactionRequiredException: Executing an update/delete query

I encountered some weird issue caused by the way Hibernate works. The exception messages returned by Hibernate are confusing as they are just a side-effect of the real issue. The code in question was something like that: In a manager bean we have the following: @Stateless(name = “ObjectManagerBean”, mappedName = “ObjectManagerBean/remote”) public class ObjectManagerBean …… Read More »