Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

10 Basic doubts in EJB3.0 !

 
Greenhorn
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?
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?

cheers,
Ganesh.A
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic