Sunday, December 03, 2006

Java Classloader Mystery

If you are writing system software, then you have to worry or deal with classloaders. Here is a nice blog entry on Classloaders from someone at Sun.
Understanding Java class loading

Now, for the second part of the article,
Understanding Classloading Part 2

If you are having scoped deployments in JBoss, follow this good post from Bill Burke
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028665
Please do not ever use Class.forName() in any of your code, but instead use Thread.currentThread().getContextClassLoader().loadClass().

Reason? The reason is scoped classloaders. Class.forName() will use the calling class's classloader. So, if your code resides in a jbossesb.jar someplace, your code will use the ESB server's (JBoss) classloader, rather than the scoped one of your ESB deployment. For example, if your actions are deployed in a scoped .esb file, then it will not run.

Thursday, November 30, 2006

Single Sign On or Federared Identity with JBoss

Enterprises have a growing need for Single Sign On and Federated SSO as need for integration within the enterprise as well as within a circle of trust with partners/customers is on the rise. The days are gone when you would just program for a select set of users. Today, you have to be open for the global world (that includes spammers and hackers too).


JBoss Federated SSO Framework is a decent beginning in this regard to provide some level of integration at the tomcat/JBoss level. The first beta version of v1.0.0 was released a few days back and has been well received.
JBoss Federated SSO at Berlin

You can check out the decent demo, download the beta version, use the Cheat-Sheet provided to run the demos and if needed, integrate the framework into your own applications.

Check out the beta version if you are interested in doing SSO with JBoss SEAM based applications.

Well, before you go, there is another issue that I think is relevant to the tech world in the US.
Click Here to know what the issue is
This is just an issue that I support.

HAVE A FANTABULOUS DAY!

Reviews of my sessions at JBoss World Berlin:
JBoss Security - Anil Saldhana
JBoss Federated SSO Framework - Anil Saldhana and Sohil Shah
JBoss World Berlin - Day Two

Now if you want to play with the two seam based demos, look at this cheat sheet:
Cheat Sheet

Tuesday, October 31, 2006

Daylight Savings Time (DST) in 2007

Well, if you are not aware of this, better get a sense of this, as it is going to affect JVMs, Operating Systems etc.
http://java.sun.com/developer/technicalArticles/Intl/USDST/

Here is a nice wiki entry:
DST Issues