Jump to content
skaterdav85

What is EJB?

Recommended Posts

I keep seeing the term Enterprise Java Beans (EJB) when it comes to Java and JSP development. Can someone explain this in simple terms? From my understanding, a bean is just an object with a bunch of getters and setters. When I retrieve some rows of data from a database in Java, I typically create a new "bean" for each row to store the various fields of each row and then I store each bean in an array. So in the end, I have an array of "beans" to iterate over. Is this type of bean related to EJB in someway?

Share this post


Link to post
Share on other sites

Hmmm beans beans everywhere. From what I gather the beans are a set of classes that as you mentioned come with the get and set methods. The way bean classes are organised they allow form some consistency. EJB (Enterprise Java Beans) I have never heard of or used but the Enterprise API's are geared at business so I'm guessing a heavy focus on databases and networking.There is a bean shell terminal project, the Netbeans, javabeans so it seems to many beans if you ask me.

Share this post


Link to post
Share on other sites

To be more specific beans focus on reusable code and objects with consistent class structure. Beans are supposed to be simple to use so that EJB are simpler classes for enterprise edition java. Similar to BASIC and Visualbasic.

Share this post


Link to post
Share on other sites
To be more specific beans focus on reusable code and objects with consistent class structure. Beans are supposed to be simple to use so that EJB are simpler classes for enterprise edition java. Similar to BASIC and Visualbasic.
I guess what I've been doing fits that description. But it doesn't seem like it would be just for Java EE. A reusable class w/ getters and setters could be used in Java SE.
I believe EJB is treated with Viagra.
:) nice one lol

Share this post


Link to post
Share on other sites

Actually the JSE (1.4 and up i think) classes follow the beans setter and getters methods. That is why they have the netbeans ide to help in learning java programming. Personally I think java tries to be so simple that it complicates itself......

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...