URDINESH: part9
Showing posts with label part9. Show all posts
Showing posts with label part9. Show all posts

Friday, May 23, 2014

Objective Java Multiple Choice Questions Part 9

81. JBoss server capable of hot deploy of services keeping track of dependencies. T/F? –

82.   Which is a consumer in Topic?
  MessageSubscriber

83. Which is a producer in Topic?
MessagePublisher
84. Which of the following is correct?
a.       EntityManager em=context.lookup();
b.       EntityManager em=context.lookup(“persistence”);
c.       EntityManager em=(EntityManager)context.lookup();
d.       EntityManager em=(EntityManager)context.lookup(“persistence”);
e.     EntityManager em=(EntityManager)context.lookup(“java:comp/ejb/entitymanager”); 

85. Why do we not have any activation or passivation in MDB like in session beans?
 as MDB receives messages at any time asynchronously

86.Match annotation with purpose:
@EntityListener- Used for Entity beans call back method.
@ExcludeSuperClassListener – In an inheritance hierarchy, the super class listener is ignored in the subclass
@ExcludeDefaultListener – DefaultListener will be ignored.

87. Which protocol is used for remote calls?
 RMI-IIOP

88. Which declaration of local interface is correct?
There was only one option with @Local annotation.

89. If an object is not found during JNDI lookup what exception is thrown?  NamingException

90. What has replaced entity beans?
a. Persitence API

b. Database API

Followers