Tuesday, July 12, 2005

Create an application-wide user session for J2EE

Despite its comprehensive sets of APIs for writing distributed applications, J2EE does not provide an application-wide session. While Web applications can use the HttpSession facility, this context won't automatically carry over to Enterprise JavaBeans or J2EE clients. By combining code generation with a mixture of aspect-oriented programming and a hint of design patterns, it is possible to provide such a context across components in an enterprise application and hide most of the complexity from the developer.