Here is a quick example on how to execute EJB method A in a different transaction than a method B which calls A.
Monday, 24 February 2014
Wednesday, 15 January 2014
While using Hibernate to manage DB operations in your application you may also need to use triggers to perform specific updates directly inside DB. But if you're using both update methods it's essential to protect yourself against yo-yo effect.
Thursday, 9 January 2014
Chrome on Android has a feature called 'Font Boosting' which resizes text to make it larger once a paragraph of text reaches certain length. This maybe useful for a reader but also can destroy a layout of your web page.
Tuesday, 7 January 2014
Friday, 3 January 2014
From time to time I encounter the following exception: 'javax.persistence.EntityNotFoundException: deleted entity passed to persist'. It's nasty because its stack trace doesn't suggest a source of the problem. Thankfully it's also very easy to fix.
Thursday, 2 January 2014
A concatenation of 2 or more values in SQL looks like a pretty simple operation. It's enough to use '||' operator which comes in SQL standard. Well, it turns out that this is not so trivial in case of NULL values.
Friday, 6 December 2013
Internet connection problems while developing an application which uses a remote database can be a nightmare. Luckly you can configure your JBoss server to auto reconnect to your DB!