what is an ejb object?

Answers were Sorted based on User's Feedback



what is an ejb object?..

Answer / vamsee

Ejb objects are used to access the Business logic methods
defined by the user in the bean. client gets the reference
of the object using JNDI, and cast the object as the
HomeObject and access the methods in the bean.

Is This Answer Correct ?    23 Yes 4 No

what is an ejb object?..

Answer / nisha

EJB object implements Component Interface. It is created by
the container when create() method is called by the Home
interface. EJB object contains the business methods present
in the bean class. Hence client request invokes the
business method on bean via the EJB object.

Is This Answer Correct ?    14 Yes 6 No

what is an ejb object?..

Answer / amarajagan

Ejb object is a server-side object,and it conatins business
methods,that is why we need to call ejb object as a business
component.

Is This Answer Correct ?    13 Yes 10 No

what is an ejb object?..

Answer / amardeep singh

The remote interface and the object implementation are similar to the corresponding RMI interfaces. A client issues method requests through a stub derived from the remote interface and eventually these requests make their way to the corresponding bean instance on the server. The home interface is a new twist: it acts as a bean factory, providing a way for a client to create, locate, and destroy EJB objects that it uses. With the home interface in the picture, the remote interface acts as the interface the client uses to interact with EJB objects, and the implementation is where the object itself does its thing.
The EJB object implementation needs to implement all the business methods in the remote interface, plus some methods used by the container to tell it about various events in its lifetime. The EJB object does not need to implement the remote interface, which is another new twist compared to RMI, where the server object always implements the remote interface. In EJB, the container arranges for method calls on the remote interface to be transferred to the EJB object. You just need to ensure that the EJB object has methods that match the signatures of the methods in the remote interface. We'll see an example of EJB object implementation a bit later.
Various pieces of these Java classes (home, remote, and implementation) are provided for the sake of the client, to allow a client to create EJB objects and call remote methods on them. Other pieces are provided for the EJB container, to allow it to notify the EJB object about transaction− and persistence related events, for example.

Is This Answer Correct ?    3 Yes 1 No

what is an ejb object?..

Answer / siriganesh

EjbObject is an object which implements our component
interface.The container creats it when we call create
method on home stub.It contains business methods.It is a
beans body guard.

Is This Answer Correct ?    6 Yes 5 No

Post New Answer

More EJB Interview Questions

What is difference between ejb and spring?

0 Answers  


In an EJB project, Howmany tables and How many entity beans are used?

1 Answers  


Explain the architectural relationship between EJB & XML?

1 Answers   Wipro,


Difference between container-managed & bean-managed persistence?

2 Answers  


can u explain about design patterns like singleton,builder,factory

0 Answers   EdgeSoft,






How EJB and JDBC/SQLJ are related?

1 Answers  


What do you mean by in-memory replication?

0 Answers  


What is stateless authentication?

0 Answers  


Is functional programming stateless?

0 Answers  


What is enterprise bean?

0 Answers  


What are the components of ejb?

0 Answers  


What is meant by manifest files ?

2 Answers  


Categories