SOA vs. Domain design and OpenSessionInThreadExecution pattern
This article describes some complementation for Open Session In View pattern for Java/Spring. But first I want to show just my point of view about the pattern itself.Many people consider this as an...
View ArticlePlay Framework on Heroku and custom dependencies
Today I was playing a little about Play Framework. This is very nice lightweight application framework for Java and Scala. I was trying to make an app and deploy to Heroku, which is a PaaS platform...
View ArticleConvert document to HTML with Apache Tika
Apache Tika has a wonderful feature, that can transform source document (PDF, MSOffice, Open Office etc.) into HTML during content extraction. Sound pretty simple, but I've dug through a lot of google...
View ArticleJava Cryptography Architecture and common encryption usages
JCA can be really tricky to perform simple, common tasks. After latest usage of java cryptography I'd like to present below the simplest usage of cryptography methods usage, involving mainly symmetric...
View ArticleGlobal state in AngularJS controllers
Suprisingly for me the controller state in AngularJS is not preserved between the controller invocations. I at least expected an option to switch it on and off on demand. For the classic application it...
View ArticleTomcat, Atmosphere and Spring Security
Here I'd like to describe another interesting case I've been struggling with for recent few days. This involves the following use case: enable asynchronous events support for Tomcat/Spring...
View ArticleTracking object references in JavaScript
It is a common case in AngularJS to have some model loaded on the main view (like list of objects) and to use these objects in other controllers (like the object details view). Usually it's done by...
View ArticleDatabase locks with Spring, Hibernate and Postgres
In the current project we faced the problem of concurrent changes to database, for the data that should be accessed sequentially. Imagine you have the customer's bank account where he can withdraw the...
View ArticleBIRT with Hibernate using POJO-s
In previous BIRT versions there were three ways to use BIRT with your Hibernate datasource:Just plain SQL on Hibernate database.Scripting data source.Hibernate ODA data source.Previously I've been...
View ArticleHost and user name in log4j logs
In the production environment web application debuging is not so easy. Especially because when multiple users perform multiple actions in the same time, the output log is interleaved, and the...
View ArticleEdit conflicts in eclipse using submerge
Everyone using Eclipse + SVN (or other non-locking version control system) has gone through the hell of editing conflicts with default Eclipse tool. I don't know, maybe there are people liking this,...
View ArticleTransparent dynamic forms with LazyList
Some time ago I wrote few words about some dynamic forms implementation methods using LazyList or AutoPopulatingList with items removing. The problem that interested me today was related to this...
View ArticleIncrease Trac productivity with plugins
A substantial time amount passed since last post in this blog caused only because I'm recently very busy, although the list of interested subjects to describe in my Tomboy notes are extending monthly....
View ArticleHigh-availability architecure with mysql replication and C3P0
I've recently had a requirement of setting up the application to work in high-availability environment, which among the others involved hardiness for database (mysql) crash. We established with the...
View ArticleSpring 3 and Mule 2 initialized by SpringXmlConfigurationBuilder
If you have a Spring 2 application using MuleESB in 2.x version, and you initialize the mule using SpringXmlConfigurationBuilder, ie. something like this: publicvoidstartMule()throws MuleException {...
View Articlejavax.mail and plain, STARTTLS, SSL/TSL connection for POP3 and SMTP without...
Today my target was to implement various connections for POP3/SMTP email accounts. incuding:plain connection with no encryptionSTARTTLSSSL/TSLThe key requirement here was to have it without java...
View ArticleSonOfObsidian color scheme mod for IDEA 11
After latest Eclipse Juno installation, and few weeks of working in this, experiencing big performance downgrade and seeing the direction of current product development (like new fancy UI with...
View ArticleLucene permissions and Hibernate Search / Compass
In our application we have some permissions system, restricting access to various entities for particular users. The permissions system consists of:Users - entity contains a list of users that may...
View ArticleMap Accepted-Language language codes to country codes in PHP
Today I needed to perform some small task regarding country detection by Accepted-Language header in PHP. It quickly turned out that there's no (or I cannot find) the reliable source for such mapping....
View ArticleDistributed hibernate search with ApacheMQ and Spring
This catching title will be not about distributed hibernate search, but something really close :)The case I've recently solved was a quite different. I have a frontend application that uses hibernate...
View ArticleModal windows available by URL binding in AngularJS with ui-bootstrap and...
It's well known how ui-bootstrap supports modal windows. These modals don't have any URL and cannot be accessed by URL, though. This is very good, because they should stay as the main view subview...
View ArticleStatistics queries with time range for PostgreSQL and Hibernate
Few days ago I was asked to implement charts with some finance data using JS charting library, in the application working on Postgres database. There's a lot of finance stuff in the database stored...
View ArticleHow to avoid subclasses join in Hibernate model
This article will be about multiple joins in Hibernate model during super class fetch in JOINED inheritance mapping strategy, and generally how I significantly improved our system performance using...
View ArticleReads vs writes in production database of web application
I recently think about CQRS-like patterns we partially used in current application, and pros'n'cons of migrating more towards full CQRS, which is mostly about separating reads from writes. Previously I...
View ArticleThank you, blogspot
It was almost seven years ago when I started to write on blogpost (Blogger right now).From the beginning it was a heavy technology blog about my software development, and I have never thought that...
View Article
More Pages to Explore .....