File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is EJB3.0 without annotation is possible??

 
Kanchan Kumar Dey
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we write a complete EJB3.0 application(Session, messagedriven, Entity) without using any annotation but deployment descriptor or other ".xml" files.
 
Shailesh Kini
Ranch Hand
Posts: 153
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Kanchan,

The answer is could be... You could use xDoclet and have it create the xml descriptor file for you. If you do not want to use that either...

Maybe in EJB 10.0 spec we could.

Without annotations or descriptors there is no way for any app server to differenciate between an EJB or a regular java class. You provide the rules to EJB container to manage your EJB's using annotations or xml descriptors.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33688
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was under the impression that you could still do everything via a deployment descriptor if you wanted.
 
Shailesh Kini
Ranch Hand
Posts: 153
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry my bad... I misread the question and thought Kanchan wanted to write a complete EJB 3.0 application without using annotation, deployment descriptor or any other kind of xml. Yes Jeanne you are correct you could still do everything via a deployment descriptor and other .xml files for entities. Annotations are not mandatory.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33688
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shailesh Kini:
Sorry my bad... I misread the question

Upon re-reading it, I think either interpretation is possible. In any case, we are in agreement on the technical answer which helps the original poster.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic