views:

228

answers:

2

Hello,

We just started a new project in J2EE in our office and i am required to participate effectively. I mostly work on web applications and I use PHP/MySql but I also know J2SE and have written couple of standalone applications. I need help and advise on how i can learn J2ee very fast so that i can blend into the project without difficulties. I need help with book & tutorial recommendations and also links to resources.

Thank you for your time.

+6  A: 

This vastly depends on your learning speed. What I do in such cases:

  • read small parts of tutorials in order to obtain a general idea of the technology
  • experiment, and whenever I don't understand something, I return to the tutorial, or google about the problem.

After creating a non-trivial, but still simple application with the technology in question, you can go to the real world. Still, there must be someone more familiar with it, whom you can ask.

For JavaEE I'd suggest the following exercise:

  • create a stateless EJB that starts an EJB timer. The timer has to fire on a configurable in the database period of time
  • the timer should send messages to a JMS Topic
  • the JMS topic should be consumed by a message-driven bean
  • the EJB should be called by a servlet, telling it whether to use the db-configured period of time, or use a default one.
  • the messages to the JMS topic should consist of the IDs of objects stored in the database
  • on receiving the IDs the MDB should increment some number of the object and persist it
  • use JPA for persistence.

Here, you'll have servlets, EJBs - stateless and message-driven, timers, JMS and JPA covered.

Refer to the Sun JavaEE tutorial and google anything you don't understand immediately.

Bozho
Bozho maybe change the link to the [EE 6 tutorial](http://java.sun.com/javaee/6/docs/tutorial/doc/)
Justin
I was event hesitant to give the one to JavaEE5, since he mentions J2EE.
Bozho
+1  A: 

To learn it fast use a IDE to do most of the config for you. netbeans works really well with a number of containers and relieves you from a lot of the config etc...

If you take a look on netbeans.org there are some really good short tutorials just to get you going.

Karl

Karl