• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How Java Bean is reusable software component ?

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please i request don't give me outdated answers i keep on searching in the Google but my doubt is not clear . Reusable means java bean that is developed in one project can be used in another project right how it is possible to use in another project and what is the difference between EJB and java bean
 
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, let's say you are asked to build a GUI using SWING. Now what would happen if you did not have any pre-defined menu-bars, buttons, drop downs, text fields etc? Wouldn't every developer have to write it again and again? That is what you mean by reusable.
 
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start with this tutorial.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java beans are basically data holders. They are populated by the front end or the database and stored or presented on the other end. The link provided by Campbell above shows how you can write your own beans.
I would not refer a drop-down or a text-field as a Java bean though.
The any class can be re-usable provided the current and future implementations have common purpose for the class. Utility classes are the most re-used components.
EJB's are a whole different thing and they cannot be compared to Java beans. There is no point in finding similarities or differences among these two.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Regarding the difference between JavaBeans and EJB: see https://coderanch.com/t/307693/EJB-JEE/java/JavaBeans-EJB and the link titled "EJB and JavaBeans" at the bottom of this page.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
rajesh villuri,
Your post was moved to a new topic.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic