• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3 in Action question  RSS feed

 
Lalit Nagalkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Debu,Reza and Derek;

I would like to ask you about the various xml files that needs to be created to deploy the application.

I have gone through some books on EJB but couldn't get enough explanation about the xml files needs to be deployed with the app. I ahven't yet tried EJB3.

does this book covers ,with examples, the details about the various tags used in different servers and the various j2ee specific application discriptor files?

thanks
Lalit
 
Debu Panda
author
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually EJB 3 / JavaEE 5 makes descriptors (XML) files completely optional. Even you don't need an application.xml to describe the modules. The only required XML is persistence.xml that describes a persistence module when you use JPA. Even application servers such as OracleAS makes that optional too when entities are packaged in an ejb-jar.

Having said that you can still use ejb-jar.xml (optional) to describe your EJB components, orm.xml to define O-R mapping for entities. The descriptors become the final source of truth.

We cover all these aspects in Chapter 11 (EJB 3 Packaging) that will be available free sometime end of this week.


So take look at the book page at http://manning.com/panda/
-Debu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!