Mika Rinne

Subscribe to Mika Rinne: eMailAlertsEmail Alerts
Get Mika Rinne: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

Top Stories by Mika Rinne

This month I'm going to look at some of the things I found in those days when I studied the use of SQLJ with WebLogic 6.1. I got into the subject because I needed to go through a lot of existing JDBC code. As you may know, JDBC code is not the easiest to read, which made me start to think about embedded SQL, because of its better readability compared to JDBC. In the past, I got used to writing applications on BEA's Tuxedo application server using the C language and embedded SQL, namely PRO*C, Oracle's name for their embedded SQL in C. I recalled that it worked nicely and had some very nice features like compilation time syntax checking and readability, features that JDBC is, obviously, lacking. That got me studying SQLj, which is the name for embedded SQL in Java and which you can use, for example, with Oracle databases. I found lots of potential uses for writing S... (more)

Shared Sessions Using EJBs

The Problem: We have a J2EE application where clients with the same userid need to share the session data that is maintained on the server side. In addition, clients aren't just Web clients, but applets and applications as well. How should we implement that? The Solution: This is a typical problem when writing J2EE applications, since the J2EE APIs don't provide an out-of-the-box solution for this. The Servlet API typically used with Web clients provides nice ways to manipulate the client's session and the data related to it, but doesn't offer a direct means of sharing the sessio... (more)