Beruflich Dokumente
Kultur Dokumente
Oi, Check and select the required points alone, some may be
repetition of the same idea,
1.
JavaBeans:-
-----------------
Basically used to CUSTOMIZE EXISTING OBJECTS. I.e. you can
create USER OBJECTS, which are based on existing objects.
For Example: A default button operates as a Single-State Switch. I.e. when you
press a button on a web page, it doesn't remain pressed. In fact, it immediately
bounces back to its OFF state like a Door-Bell.
Now, let's say, you need a button, which should have 2 stable states, like the
typical Electrical Light Switch. So, in this case, what you can do is, take an
existing button (having 1 stable state) and CUSTOMIZE it so that it has 2 stable
states.
This is possible using JavaBeans.
So, to COMPONENTIZE we write business logic in separate class files than the
GUI logic, thereby making a clear distinction between the responsibilities
2.
Java Beans and EJBs are used for different purposes altogether though both
specifications are provided by Sun micro Systems. Java Beans are mainly meant
for building extendable components and typically contain getters and setters for
all its data members along with other required functionality. EJBs are server side
programs that typically implement middle layer business functionality providing
3 - layer architecture for applications. EJBs can be Entity Session or Message
depending on the required functionality. Most of the critical services are provided
by EJB containers and thus allowing the programmmer to concentrate on the
business logic on hand.
3.
introspection
customization
events
properties
persistence
4.
JB
EJB
5.