• Post Reply Bookmark Topic Watch Topic
  • New Topic

Coding in Java EE 5 with J2EE 1.4 Specs  RSS feed

 
Rajeev Asthana
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Actually I'm not very comfortable with injections and annotations, so I wanted to code into Java EE 5 but without the annotations and injections, the way I used to code before.

Can I still do it in Java EE 5?

Thanks in advance
Rajeev.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajeev,
Yes, with a few notes:

1) The J2EE 1.4 way of doing things will be deprecated with the J2EE 5 spec. At some point it will stop being supported.
2) Isn't the J2EE 5 spec still not finalized?
3) If you are not using any of the J2EE 5 spec, you are really developing for 1.4. You just may happen to be deploying to a server that supports both 1.4 and 5.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I'm not very comfortable with injections and annotations


What do you mean by this. That you haven't worked with Annotations, or you thing there is something inherently wrong with them?

I believe you can always just create the config files instead just like in 1.4.

Mark
 
Rajeev Asthana
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:


What do you mean by this. That you haven't worked with Annotations, or you thing there is something inherently wrong with them?

I believe you can always just create the config files instead just like in 1.4.

Mark



I haven't worked with annotations and I don't know how many injections are there in Java EE 5.
 
Charles Lyons
Author
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't worked with annotations and I don't know how many injections are there in Java EE 5.
When I'm "on the job", I don't have the time to upgrade my skills to the new version of the technology I'm working with, so I can see where you're coming from. However, it's usually a good idea to learn and become confident with the new things after finishing what you're currently working on but before moving on to the next project... My advice would be to learn about annotations and to check the Java EE 5 specs to see what annotations are available in which containers and how best to use them. No doubt various articles will be (and already have been) published on this subject; use those and the specs. as a starting point. Part of the life of a Java developer is to keep up with the trends and make sure you appreciate and can make effective and appropriate use of new technologies (you should also be familiar with generics and enums for instance).

Oh, and although I don't work with EJBs on a daily basis, from what I've seen resource injection is a major improvement. It seriously cuts down the code required in implementation code and can remove entire chunks of the deployment descriptor. See also this tech article for a start:

http://java.sun.com/developer/technicalArticles/J2EE/injection/

Furthermore, using annotations for persistence has some major benefits:

http://java.sun.com/developer/technicalArticles/J2EE/jpa/

Worth getting to grips with me thinks !
[ June 03, 2006: Message edited by: Charles Lyons ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!