1. What is the Default JNDI names for Component Interfaces of Session Beans, if I don't specify anything? is fully qualified name of the interface class itself?
2.which is the correct JNDI lookup inside a bean? a.jndiContext.lookup("java:comp/env/ejb/TravelAgentRemote"); b.jndiContext.lookup("TravelAgentRemote");
3.How bean's Component Interface object is bound to JNDI tree? In EJB2.x a single home object is bound for a entire bean type, from which we will create EJBObjects, but how its done in EJB3.0?Will a single component interface serve for all clients?
4.What is the default accesstype for a persistence entity?field or setter?
5.EntityManager.joinTransaction() :Will it open a new EntityTransaction, if no JTA available?
6.Scope of injection: will injection happen only between constructor() and postConstruct()?Then how EntityManager is closed once Transaction is closed? Then how it is injected in next business method invocation?
7.What is the use of Query.setFlushMode()?
8.I want to rollback transaction, if java.lang.Exception comes, How can I achieve this using @javax.ejb.ApplicationException?
9.How annotation works?
10.What @Enumerated do?
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad: