raja_ms wrote:
> can anyone let me know the answers of all this at the earliest.
>
This looks like a homework. I guess the goal of this homework is to make you
read and understand EJBs. So,
- why should we make the homework for you?
- what do you expect to learn if we tell you all the answers?
I think that EJB-INTEREST members should not answer these kinds of questions.
JB.
>
> > CHOOSE ONE OPTION
> >
> >
> > <HOME_INTERFACE_OBJECT>.create();
> > Which one of the following is returned to the client as a result of the
> > above method call?
> > Choice 1 Remote interface
> > Choice 2 Serialized connection
> > Choice 3 EJB handle
> > Choice 4 Skeleton
> > Choice 5 Home interface
> >
> >
> > When using container managed transactions, how should exceptions be caught
> > when thrown by a failed bean method?
> > Choice 1 In the bean implementation
> > Choice 2 In the client implementation
> > Choice 3 In the transaction manager
> > Choice 4 Automatically, by the EJB container
> > Choice 5 Using the UserTransaction API specification
> >
> >
> > An entity bean has been developed to represent a customer who uses a
> > telephone number as the primary key.
> > Referring to the above scenario, which one of the following calls would
> > remove the underlying customer data from the database in a
> > container-managed persistent entity bean?
> > Choice 1 ejbDelete()
> > Choice 2 ejbRemove()
> > Choice 3 ejbCreate()
> > Choice 4 ejbStore()
> > Choice 5 ejbLoad()
> >
> > What is returned by a successful InitialContext.lookup()?
> > Choice 1 EJBHandle
> > Choice 2 Reference to a home object
> > Choice 3 Bean object
> > Choice 4 Reference to a remote object
> > Choice 5 InitialContext
> >
> >
> > Which one of the following bean types is always unique to a particular
> > user?
> > Choice 1 Standard Java bean
> > Choice 2 BMP Entity bean
> > Choice 3 Stateful session bean
> > Choice 4 CMP Entity bean
> > Choice 5 Re-entrant Entity bean
> >
> >
> > The details of implementation for a given object should be hidden from
> > other objects.
> > Which one of the following provides the benefits described above?
> > Choice 1 : Cohesion
> > Choice 2 : Decoupling
> > Choice 3 : Inheritance
> > Choice 4 : Encapsulation
> > Choice 5 : Polymorphism
> >
> >
> > An EJB instance is forbidden to:
> > Choice 1 Use the JMS API
> > Choice 2 Create Threads
> > Choice 3 Use Swing Classes
> > Choice 4 Dynamically Load Classes
> > Choice 5 Use the JNDI API
> >
> >
> > Which one of the following entities would contain only the method
> > signatures of user-defined business methods?
> > Choice 1 Bean implementation
> > Choice 2 Remote interface
> > Choice 3 Home interface
> > Choice 4 javax.ejb
> > Choice 5 RemoteObject interface
> >
> >
> > Which one of the following interfaces is used for message queuing and
> > publish/subscribe communication?
> > Choice 1 XA
> > Choice 2 JMQ
> > Choice 3 JMS
> > Choice 4 JTA
> > Choice 5 JTS
> >
> >
> > Of all enterprise bean types, which type generally incurs the LEAST amount
> > of resource overhead?
> > Choice 1 Stateful session bean
> > Choice 2 BMP Entity bean
> > Choice 3 CMP Entity bean
> > Choice 4 Standard Java bean
> > Choice 5 Stateless session bean
> >
> > The RMI stub implements which type of pattern?
> > Choice 1 Façade
> > Choice 2 Proxy
> > Choice 3 Visitor
> > Choice 4 Bridge
> > Choice 5 Singleton
> >
> > The bean-container contract provides which one of the following services?
> >
> > Choice 1 Message queuing
> > Choice 2 Database connection pooling
> > Choice 3 User behavior profiling
> > Choice 4 HTTP logging
> > Choice 5 Transactions
> >
> >
> > Which one of the following includes the javax.ejb package?
> > Choice 1 JSDK2.0
> > Choice 2 JDBC2.0
> > Choice 3 J2ME
> > Choice 4 J2SE
> > Choice 5 J2EE
> >
> >
> > Which one of the following entities would contain only the method
> > signatures of user-defined business methods?
> > Choice 1 Bean implementation
> > Choice 2 Remote interface
> > Choice 3 Home interface
> > Choice 4 javax.ejb
> > Choice 5 RemoteObject interface
> >
> >
> > Which one of the following is the only method specified in the EJBObject
> > interface that does not return a value or object?
> > Choice 1 remove()
> > Choice 2 getPimaryKey()
> > Choice 3 isIdentical()
> > Choice 4 getEJBHome()
> > Choice 5 getHandle()
> >
> >
> > public void ejbRemove() throws RemoteException
> > {
> > try
> > {
> > String query = "delete from customers where cust_id = " +
> > pk;
> > executeUpdate(query);
> > }
> > catch (Exception e)
> > {
> > }
> > }
> > Given the above code, which type of entity bean does this represent?
> > Choice 1 CMT entity bean
> > Choice 2 Re-entrant entity bean
> > Choice 3 CMP entity bean
> > Choice 4 BMT entity bean
> > Choice 5 BMP entity bean
> >
> >
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".