hi smita,
java beans are nothing but just general java classes with fields and corresponding getters and setters methods in them.
for e.g. int age;//if this is the instance variable
void setAge(int age){
this.age=age;
}//this is the setter that sets the age
int getAge(){
return this.age;
}//this is the getter
to use it simply create an object and then use them to set and get the age..
where as enterprise java beans are simply a different story. ejb are java components preferably known as business objects. they are deployed using an application server such as
jboss, weblogic, etc... they have nothing to do with java beans. they have call back methods and so on... i think u have to do a bit of more researching for ejb....
cheers
Ansuman