Since we can create managed bean by two ways as,
we can define the bean name in faces-config.xml file so that
page can use that OR we can write annotation on bean class
so
that it is automatically assign to page but I want to know
which one is good programming practice ?

And also mention disadvantage of other which should not
prefer
...

Thanking you...


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More J2EE Interview Questions

What is japplet in java?

0 Answers  


What is distributed application?

0 Answers  


i developed a Stateless Session bean program.And created a client by a common java class as class m {p s v m(String s[]){....}} And i called the bean deployed in weblogic.from cmd prompt And that run. mind it i have to set setenv,seting classpath for that bean jar file before compile and run it. ok when i do a servlet programme deployed in tomcat and call that bean then it give classdefnotfoundException and NoInitialContext like this.So how i sucessfully do this? Ok when i call that bean from java class from the console like i previously told, if i don't set setenv i found the same error on the cmd prompt. pls help to get out of it

2 Answers  


What do you mean by the deployment descriptor?

0 Answers  


What is java api for xml processing (jaxp)?

0 Answers  






What is single tier architecture in java?

0 Answers  


What is devops in java?

0 Answers  


What is tomcat in j2ee?

0 Answers  


What do you mean by j2ee module?

0 Answers  


Hi friends, can u explain Transparent Persistence in hibernate with sample code.

2 Answers  


What are the main components of multi-tier architecture?

0 Answers  


Why is java called object oriented?

0 Answers  


Categories