Quantcast
Channel: Java etc…– Objectopia
Browsing all 14 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Persistent Strategies

I’ve just finished working on a cash management system. The core of what the system does is listen to messages produced by various sources and record a transaction (i.e. a debit and a credit) between...

View Article



Image may be NSFW.
Clik here to view.

Re: A general approach to exceptions in Java

My previous post about exceptions in Java begs the question: Where do so called “business exceptions” fit in with all of this? Business Exceptions are Checked Exceptions Following on from my reasoning,...

View Article

Image may be NSFW.
Clik here to view.

Non-anaemic models and service oriented architectures

The term “anaemic domain model” is used to describe an entity layer that contains very little business logic. Typically in this architecture, the business logic is contained in services and/or...

View Article

Image may be NSFW.
Clik here to view.

Calling Stored Procedures in JPA

Recently I had to call a stored procedure using JPA and to my surprise I soon found out that it’s not directly supported. So how do you call a stored procedure? My stack is Db = Sybase AppServer =...

View Article

Image may be NSFW.
Clik here to view.

Using Hibernate Search in SEAM 2.0 Application

I implemented hibernate search recently in a SEAM project I was working on. I wanted to use the excellent suggestion tag from the excedel library and I wanted to use an index rather than hitting the...

View Article


Image may be NSFW.
Clik here to view.

Please ! Stop using floating point numbers for financial data

Again and again I see developers using doubles for storing financial data (e.g. monetary figures, interest rates etc.). This always causes some sort of rounding issue down the line. try this in your...

View Article

Image may be NSFW.
Clik here to view.

Joda with JPA

I have to work with a few legacy databases that are used by several different apps (apparently the database is a perfect integration point), and I want to use the Joda api in my persistence. In this...

View Article

Image may be NSFW.
Clik here to view.

EJB 3.0 Interceptors

I wanted to carry out some processing when an entity was committed to the db, I could of used the lifecycle annotation @PostPersist in the bean itself but that that would go against leaky abstraction...

View Article


Image may be NSFW.
Clik here to view.

Securing your JBoss JMX Invoker Layer

If you use JBoss and have a nicely secured JMX Console and/or Web Console it’s a fairly safe bet that, like me, you haven’t secured the invoker layer; meaning any old monkey can most likely shutdown...

View Article


Image may be NSFW.
Clik here to view.

Hibernate and sets – use at your peril

For the past 3 weeks I’ve spent hours tuning the performance in one of the applications we use. Unfortunately rather than spend some time and come up with a proper reporting solution I was tasked to...

View Article

Image may be NSFW.
Clik here to view.

Folding observables with Scala

I had a bunch of observables that I wanted to merge into a single observable and then subscribe to it. I knew that I could use merge but had an unknown sequence size of observables, so how could I do...

View Article

Image may be NSFW.
Clik here to view.

Scala – Implicit Class

Ok so this isn’t a deep dive into implicit’s in scala but rather a reminder on how helpful they can be. The camp on using implicit in scala is divided as you can use them in several different ways and...

View Article

Image may be NSFW.
Clik here to view.

Binding jBPM WorkItemHandlers from a Spring Context

I’ve just spent a lump of time (too much for how simple it really is) working out how to do this with jBPM 6.3 so I’ve added this blog to help those who come after. This has worked for me – I’m not...

View Article


Image may be NSFW.
Clik here to view.

Websphere… omg

I just had my first foray into getting a simple war running in a WebSphere application server. Wow – what a nightmare. Man I hope i never have to do that again… what a waste. Just awful. What’s worse,...

View Article
Browsing all 14 articles
Browse latest View live




Latest Images