aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Is EJB3.0 without annotation is possible?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Is EJB3.0 without annotation is possible??" Watch "Is EJB3.0 without annotation is possible??" New topic
Author

Is EJB3.0 without annotation is possible??

Kanchan Kumar Dey
Greenhorn

Joined: Oct 18, 2007
Posts: 19
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

Joined: Oct 17, 2001
Posts: 153
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.


Shailesh Kini.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30944
    
158

I was under the impression that you could still do everything via a deployment descriptor if you wanted.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shailesh Kini
Ranch Hand

Joined: Oct 17, 2001
Posts: 153
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

Joined: May 26, 2003
Posts: 30944
    
158

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is EJB3.0 without annotation is possible??