Tagged java
15 posts.
20142 posts
- SA20Java 8 Stream Performance TestCounting in a loop eight different ways, from synchronized blocks to parallel streams, to compare Java 8 Stream performance.
- SA19HS6Are You a Senior or a Junior Software Engineer?An urgent fix to a legacy batch job, walked through step by step, to show how experience changes the way you read code.
20131 post
20114 posts
- SA17Java File HandlingA small Java program that fails to delete a file on Windows, and why unclosed streams were the reason.
- SA15Spring Security and CAS Integration with VaadinHow I added CAS single sign-on to Vaadin applications with a Spring Security wrapper, and the open-source sample that came out of it.
- SA13How to Access a JBoss Queue with a Standalone ClientSetting up a JBoss Messaging queue and talking to it from a standalone JMS client: JNDI context, producer, and message listener.
- SA11Telco-Based SMS and MMS Applications Using Java and .NETAppZone, the telco app store Etisalat Sri Lanka launched with hSenid Mobile, and how developers could send SMS and MMS from Java or .NET.
20104 posts
- SA10Where to Put Named Queries in JPA?Annotations, inline strings or XML mapping files: the trade-offs of each place to define JPQL queries, and why XML is often overlooked.
- SA9Dynamic Class LoadingStatic loading with Java's new operator versus dynamic loading with Class.forName, and the exceptions each one throws when a class is missing.
- SA7H2 DatabaseA quick, enthusiastic introduction to H2, the pure-Java SQL database that runs embedded, as a server, or in memory.
- SA6Send Mail in Java Using SMTPA reusable JavaMail class that sends authenticated SMTP mail on a background thread, so the caller never blocks.
20094 posts
- SA4Hibernate Annotation for a Map Enum TypeMapping a java.util.Map with an enum key and a String value using Hibernate annotations, and the ClassCastException I worked around.
- SA3How to Use Hibernate @Any AnnotationsMapping one association to unrelated entity types with Hibernate's @Any and @AnyMetaDef, using a library of books, DVDs and VHS tapes.
- SA2What Is Java Memory Leakage?How Java objects stay reachable and leak memory, how heap size differs from RSS, and the profilers I used to track leaks down.
- SA1Testing SimpleFormController with Spring MVCBuilding a Spring MVC SimpleFormController test-first with spring-test, mocked HTTP requests and EasyMock, one red bar at a time.