I just recently started playing with EJB3, and found it extremely tricky to get through my very first EJB3 Session Bean. While significantly simpler than EJB 2, the online resources …
Getting Started with Struts Shale
Struts Shale is a proposal for a next-generation web development framework. I’ve spent a couple days scouring the internet trying to find a simple getting started guide to build a …
Design Pattern: Inversion of Control
I had read something a while ago about a design pattern called Inversion of Control (IoC), which came back to me this morning as I was working. I looked it …
JDBC Metadata and Column Types
Today I’ve been testing my data caching module… it’s pretty straight foward, the relevant part for today’s ramblings is that it takes an SQL query, executes that query on some …
Loading Arbitrary Classes from Arbitrary Places in Java
One of my very favorite things about the JDK is portability… and not just the “compile-once-run-anywhere” portability Java is so famous for, but also the portability across providers. JAAS, JCE, …
JBoss User Timeout
When most people think of the session timeout in an EJB application, they’re typically thinking about the HttpSession timeout of their web front ends. If, however, you need to set …
Securing EJB Applications with JBoss Login Modules
JBoss comes out-of-the-box with a handful of great login modules, but lets face it, you need a custom one to integrate with your existing security infrastructure. This overview shows you …
Custom JAAS Login Modules
This tutorial will show you in detail the steps required to implement a custom JAAS login module for a Java application. When a client application needs to authenticate the user, …
Securing EJB Applications with a Custom JBoss Login Module
JBoss comes out-of-the-box with a handful of great login modules, but lets face it, you need a custom one to integrate with your existing security infrastructure. This overview shows you …
Passing J2SE Collections to EJB Remote Interfaces
The J2SE Collection interfaces and abstract classes do not implement the Serializable interface, making it difficult to pass Collections around using EJB Remote Interfaces. The trick to this one is …