![]() Related Questions Which of the following are true about Active Replication? A It is a fault-tolerance mechanismB It is achieved by taking cold back upsC Each replica attempts to process each request but extra calls may be intercepted via an interceptorD Choices A, C and F are correct. Active Replication is a fault tolerance mechanism where each replica is identical to the main service and attempts to service each request. An interceptor is used to Tags : Replication RMI-IIOP does not provide which of the following capabilities? A Remote Method InvocationB Stub DownloadsC Objects pass by value (state only)D Distributed Garbage Collection Choices B and D are correct. RMI-IIOP does not support Stub downloads and distributed garbage collection. Hence choices B and D are correct.Both Remote Method Invocation and Objects pass by Which of the following methods may be present in the Home Interface of an Entity Bean? A create()B findByPrimaryKey()C remove()D locateByPrimaryKey()E Choices A, B and C are correct. The Home Interface provides methods for creation, location and removal of beans. Hence you could find create(), findByPrimaryKey() and remove() methods in the Undefined Primary Keys refers to? A Refers to Entity Beans that do not use Primary KeysB Primary Keys that are defined during developmentC Primary Keys that remain undefined until the bean is deployedD Choice C is correct. One problem with container-managed persistence in EJB 1.0 was that the bean developer had to define the primary key during development. This forced the developer to make Which of the following are valid life cycle states for a Stateless Session Bean? A Does not ExistB Pooled StateC Method Ready PoolD Passive Choices A and C are correct. The two valid states in a Stateless Session Bean's life cycle are 'Does Not Exist' and 'Method Ready Pool.' When Beans are not instantiated Both CMT and BMT may be used with Entity and Session Beans. True or False? A TrueB False Choice B is correct With EJB1.1 only Session Beans with equal to 'Bean' can have bean-managed transactions. Entity Beans are not allowed to be BMT beans. Hence choice A session bean called SomeBean has a method called someMethod(), which calls someOtherMethod (same bean) followed by someOtherBeanMethod() of SomeOtherBean. SomeOtherBean is an Entity Bean with CMT. Which of the following is true? A SomeOtherBean has no control on the transaction since it is a CMT bean.B SomeOtherBean has full access Choice C is correct. Only BMT beans have access to the User-Transaction from the EJBContext. The EJBContext provides the methods setRollbackOnly() and getRollbackOnly(), to provide CMT beans Which of the following is not a resource management technique? A Maintaining a smaller pool of Stateless Beans to serve a large number of clients.B Providing Database Connection PoolingC Persistence of Entity BeansD Choice C is correct. Persistence of Entity beans is the ability to save data represented by the bean into a database. It is not a resource management technique. Choice C is false and therefore Which of the following are invalid states in the life of a Stateful Session Bean? A Does Not ExistB Method Ready PoolC Method Ready in TransactionD Method ReadyE Choices B, E and F are correct. The valid life cycle states of a Stateful Session Bean are 'Does Not Exist', 'Method Ready', 'Method Ready in Transaction' and 'Passive'. What is the sequence of steps in the life cycle of a Stateless Session Bean? A class.newInstance(), setSessionContext (ctx), ejbCreate()B ejbCreate(), setSessionContext (ctx), class.newInstance()C class.newInstance(), ejbCreate(), setSessionContext (ctx)D Choice A is correct. When Stateless Session Beans transition from 'Does Not Exist' to 'Method Ready Pool', the container invokes newInstance(), setSessionContext() and ejbCreate()
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||