• Post Reply Bookmark Topic Watch Topic
  • New Topic

10 Basic doubts in EJB3.0 !  RSS feed

Athi Ganesh
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are my questions:

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?

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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!