As a Java developer, have you ever found yourself running into what might be
politely called 'issues' related to the CLASSPATH and class loading? If you
haven't, you're one of the few. This is one of the most notorious sources of
developer aggravation in Java development. Now J2EE has added a new set of
wrinkles to this phenomenon.
This article dispels some of the mystery of what's going on behind the
classloader curtain and provides insights into how you can use this knowledge
to your advantage when designing, packaging, and deploying your WebLogic
Server applications. Important items we'll cover include a refresher on
class-loading fundamentals you need to be aware of; how WebLogic's own custom
classloaders build on these basics; the often misunderstood relationship
between classloader hierarchies and EARs, EJBs, and WARs; techniques for
packaging and deploying u... (more)
Inheritance and polymorphism are two of the most fundamental concepts in the
object-oriented design world. They are used extensively in all Java
applications, except J2EE apps using EJBs. Oh sure, developers implement
various bean, remote, and home interfaces but often that's it. No significant
class hierarchies. No polymorphic beans. Occasional reuse. Why is that?
In this article we'll first review why this is the norm in EJB-based
applications and then demonstrate techniques you can use to reclaim some of
these goals within the constraints imposed by the EJB standards. (We are ... (more)