The Answer is JavaBeans
JavaBeans is the platform-neutral, component architecture for the Java application environment.
It's the ideal choice for developing or assembling network-aware solutions for heterogeneous hardware and operating system environments--within the enterprise or across the Internet.
it's the only component architecture you
should consider if you're developing for
the Java platform.