//Inline

-----Original Message-----
From: raja_ms [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 5:43 PM
To: [EMAIL PROTECTED]
Subject: answers plz


can anyone let me know the answers of all this at the earliest.

> 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

>// Remote 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
>
//Depends on the implementation
>
> 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()
>
When remove is called from the client. ejbRemove()

> 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
>
>//Ref to a home object (provided the lookup is done for the same)

> 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
>
>//Stateful session 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
>
>I don't know about cohesion and decoupling and rest does not hide the
implementation :) (Use component model instead like COM)


> 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
>
>//Create Threads

> 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
>
>//Remote 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
>
>//Don't know but not XA,JTS,JTA because they have to deal with transactions

> 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
>
//Depends on the implementation and what is meant by the word "resource"

> The RMI stub implements which type of pattern?
> Choice 1    Façade
> Choice 2    Proxy
> Choice 3    Visitor
> Choice 4    Bridge
> Choice 5    Singleton
>
//Don't know

> 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
>
>//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
>
>//All probably

> 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
>
>//Remote 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()
>remove()
>
> 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
>
>Bean managed database handling :)

===========================================================================
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".

Reply via email to