Saturday, 18 February 2012

Difference between java Beans and Enterprise Java Beans? | Java Beans


  1. JavaBeans may be visible or nonvisible at runtime.For example, the visual GUI component may be a button,list box,graphic or a chart. An EJB is a nonvisual ,remote object.
  2. JavaBeans are intended to be local to a single process and are primarly intended to run on the client side.Although one can develop server-side JavaBeans,it is far easier to develop them using the EJB specification instead. EJB's are remotely executable components or business objects that can be deployed only on the server.
  3. JavaBeans is a component technology to create generic Java components that can be composed together into applets and applications.
  4. Even though EJB is a component technology,it neither builds upon nor extends the original JavaBean specification.
  5. JavaBeans have an external interface called the properties interface, which allows a builder tool to interpret the functionality of the bean.
  6. EJBs have a dployement descriptor that describes its functionality to an external builder tool or IDE.
  7. JavaBeans may have BeanInfo classes,property editors or customizers.