This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Vendor Specific Extensions  RSS feed

 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EJB 2.x, there are a lot of vendor specific extensions that can be applied to the deployment descriptors to change aspects of EJB deployments (such as locking schemes in the database for entity beans).

Does EJB 3 support a similar concept, and if so, is this done via XML or can it all be done via annotations?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does EJB 3 support a similar concept, and if so, is this done via XML or can it all be done via annotations?


Yes EJB3 supports vendor specific extensions too. I have just started with a few samples of EJB3 and have already seen a few vendor specific annotations that can be used in your java files. You can even have them via xml. Actually, while specifying vendor specifc things it is recommended to do them in xml so that your java files remain least affected while switching to a different server.
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, thanks for the reply.

I think one of the benefits of EJB 3 is the use of annotations, but I like the idea of storing vendor specific stuff in XML files. That would give a complete separation of vendor specifics and standard stuff.

Presumably in EJB 3 xml files, the vendor specific stuff is stored in files like jboss-web.xml or sun-web.xml which have vendor specific filenames?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presumably in EJB 3 xml files, the vendor specific stuff is stored in files like jboss-web.xml or sun-web.xml which have vendor specific filenames?


Yes, you are right.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!