javapandit.net
  • Home
  • Quick Java
    • Exception Handling
    • Collections Framework
  • Java Best Practices
  • Web Services
    • Web Service Basics
    • Ten Basic webservice concepts
    • XML
    • Apache Axis
    • Restful Web Services
  • JMS Concepts
    • JMS- MySQL
  • Hadoop
    • NoSQL DATABASEs
    • Apache Sqoop
    • Hadoop Interview Questions
  • Java 5
  • Java 8
    • Java 8 : Lambda Expressions
  • JDBC
  • Java Architect
    • Enterprise application re-platforming strategies
    • Java Memory Management
  • Java Programs
  • Technical Tips
    • How to set JAVA_HOME environment variable
    • How to create an auto increment field in Oracle?
    • Linux Commands
  • Best Java Interview Questions
    • Java Interview Questions- YouTube
  • Interview Questions
    • Java Tech interview Questions
    • Core Java Interview Questions >
      • core tech questions1
      • Java Collection interview questions
      • Java Concurrency
    • Servlets Interview Questions
    • JSP Interview Questions
    • Java Web Services Interview Questions
    • EJB Interview Questions
    • XML Interview Questions
    • JMS Interview Questions
  • Struts Interview Questions
    • Struts 2 Interview Questions
  • Java EE Architects Interview Questions
    • Java Architect Interview Questions
    • Top 10 reasons for Java Enterprise Application Performance Problems
    • Web Application Scalability Questions for IT Architect
  • JavaPandit's Blog
  • Web Services Interview Questions
  • Servlets And JSP
  • Oracle SOA Interview Questions
    • Open ESB /JBI
    • BPEL Language
  • Log4J
  • Ant
  • Maven
  • JMeter
  • JUnit
  • Apache POI Framework
  • ORCALE SERVICE BUS (OSB) Interview Questions
  • J2EE Patterns
    • Model-View-Controller (MVC)
    • Front Controller
    • DAO
    • Business Delegate
    • Session Facade
    • Service Locator
    • Transfer Object
    • Design Patterns >
      • Creational Patterns >
        • Singleton
      • Behavioural Patterns
      • Structural Patterns
    • Intercepting Filter
  • SQL Interview Questions/Lab
  • Best Wall Papers
    • Devotional Songs
  • Java Community
  • HIBERNATE
  • ORACLE CC&B
    • Oracle CC&B Interview Questions
  • Docker
  • Little Princess
    • Sai Tanvi Naming Ceremony Celebrations
    • Rice Feeding Ceremony
    • Sai Tanvi Gallery
  • APPSC Career Guidance
    • AP History
    • Indian Polity
    • Indian Economy
    • Science & Technology
    • Mental Ability and Reasoning
    • Disaster Management
    • Current Affairs and Events
    • General Sciences >
      • Biology
      • Physics
      • Chemistry
    • Previous Question Papers
  • About Us
  • Contact US

_

Enterprise Java Beans (EJB) Interview Questions

1. What is EJB?
EJB stands for Enterprise Java Bean and is the widely adopted server side component architecture for J2EE. It enables rapid development of mission critical application that are versatile, reusable and portable across middleware while protecting  IT investment and preventing vendor lock-in.

2. What is EJB role in J2EE?
EJB technology is the core of J2EE. It enables developers to write reusable and portable server-side business logic for the J2EE platform.

3. What is the difference between EJB and Java beans?
EJB is a specification for J2EE server, not a product; Java beans may be a graphical component in IDE.

4. What are the key features of the EJB technology?
1.      EJB components are server-side components written entirely in the Java programming language
2.      EJB components contain business logic only - no system-level programming & services, such as transactions,   security, life-cycle, threading, persistence, etc. are automatically managed for the EJB component by the EJB server.
3.      EJB architecture is inherently transactional, distributed, portable multi-tier, scalable and secure.
4.      EJB components are fully portable across any EJB server and any OS.
5.      EJB architecture is wire-protocol neutral--any protocol can be utilized like IIOP,JRMP, HTTP, DCOM,etc.

5. What are the key benefits of the EJB technology?
  1.       Rapid application development
  2.       Broad industry adoption
  3.    Application portability
  4.       Protection of IT investment
6.  How many enterprise beans?       
    There are three kinds of enterprise beans:
        o   Session Beans
        o   Entity Beans
        o   Message Driven Beans (MDB)

7.  What is Message Driven Bean (MDB)?
     
A message-driven bean combines features of a session bean and a Java Message  Service ( JMS)
        message listener, allowing a business component to receive JMS. A message-driven bean enables    
        asynchronous clients to access the business logic in the EJB tier.

8.    Is EJB a product?    
      
No, EJB is a specification, Enterprise JavBeans defines the EJB component architecture and the 
         interfaces between the EJB enabled server and the component.

9.    How does a Client find and connect to a specific enterprise bean?   
      
A client accesses an Enterprise JavaBean by looking up the class implementing its home interface
          by name through JNDI. It then uses methods of the home interface to acquire access to an 
          instance of the class implementing the remote interface.


10.    How does a Client find and connect to a specific enterprise bean write the coding?           
          Context ct=new InitialContext();
          HaiHome home=(HaiHome)ct.lookup("hai");
          HaiRemote remote=home.create();  then remote.Business methods…


11.   What general services does a container provide for an Enterprise JavaBean component?       
      A Container provides Enterprise JavaBeans Components with services of several types First it provides  
      services for lifecycle management and instance pooling, including creation, activation, passivation and destroy.
     
     Second it interacts methods in a bean to enforce transaction and security constraints. It enforces policies and      restrictions on bean instances, such as reentrance rules security polices and some others.

12.    What are main interfaces in EJB required ?    
          javax.ejb pacakage contains mainly SessionBean, EntityBean Interfaces

    

Prev 1 2 3 4 5 Next
Powered by Create your own unique website with customizable templates.