Java

Batching in Hibernate

Posted on

https://docs.jboss.org/hibernate/orm/3.3/reference/en/html/batch.html https://abramsm.wordpress.com/2008/04/23/hibernate-batch-processing-why-you-may-not-be-using-it-even-if-you-think-you-are/   Most people who use batch probably find out about it by trying to perform a large operation and finding out the hard way why batching is needed. They run out of memory. Once this is resolved they assume that batching is working properly. The problem is that even if you are flushing […]

Java

Logging adapter for WebLogic

Posted on

https://docs.oracle.com/cd/E23943_01/web.1111/e13739/logging_services.htm#WLLOG199 To redirect messages from JDK logging system to WebLogic standard log files we need to add special ServletLoggingHandler. logging.properties: # Specify the handlers to create in the root logger handlers = weblogic.logging.ServerLoggingHandler # Register handlers for the com.foo.toyshop and its child loggers com.foo.toyshop.handlers = java.util.logging.ConsoleHandler, weblogic.logging.ServerLoggingHandler # Do not send the toyshop log messages […]

Java

Java Unsafe

Posted on

http://mishadoff.com/blog/java-magic-part-4-sun-dot-misc-dot-unsafe/   Java Magic. Part 4: sun.misc.Unsafe Java is a safe programming language and prevents programmer from doing a lot of stupid mistakes, most of which based on memory management. But, there is a way to do such mistakes intentionally, using Unsafe class. This article is a quick overview of sun.misc.Unsafe public API and few […]

Java

Mondrian and Pivot4J

Posted on

http://www.drdobbs.com/database/olap4j-online-analytical-processing-for/230800051https://github.com/OSBI/saiku/blob/master/saiku-core/saiku-olap-util/src/main/java/mondrian/olap4j/SaikuMondrianHelper.java

Java

JPivot analogs

Posted on

Webpivotable costs not much, works fine, but their design may be better, but thats just for me. Here their demo. icCube – nice team, support, tool totally for OLAP and their webreporting tool is enough for some usual needs, but not more. Regarding futher detailisation, this is not for you. Flexmonster – looks nice, works […]

Java

Configuring maven

Posted on

On Windows 7 one may get the following error message: caught when connecting to the target host: Permission denied: connect to fix the problem set “MAVEN_OPTS=-Djava.net.preferIPv4Stack=true” \ in mvn.cmd Пропустить тесты: $mvn package -DskipTests Обновить репозиторий, включая релизы: $mvn dependency:purge-local-repository clean package Обновить SNAPSHOT’ы (релизы не трогаем): $mvn package -U

Java

Double-checked locking

Posted on

https://www.securecoding.cert.org/confluence/display/java/LCK10-J.+Use+a+correct+form+of+the+double-checked+locking+idiom The double-checked locking idiom is a software design pattern used to reduce the overhead of acquiring a lock by first testing the locking criterion without actually acquiring the lock. Double-checked locking improves performance by limiting synchronization to the rare case of computing the field’s value or constructing a new instance for the field to […]