• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Coding in Java EE 5 with J2EE 1.4 Specs

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41775
887
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic