aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Regarding EJB Project Structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Regarding EJB Project Structure" Watch "Regarding EJB Project Structure" New topic
Author

Regarding EJB Project Structure

Juggy Obhi
Ranch Hand

Joined: Jul 02, 2007
Posts: 51
What should be a good design pattern/Structure for an EJB based Enterprise Project.

Currently i follow the following pattern:

An EAR with EJB Module and Web Module.

I make Web Module dependent on EJB module's Client Module. (Through Buildpath)

Can this be improved? I mean is it good to have dependency among Projects. should i export EJB Module's Client Module as a JAR then put it in Web Module. Will it improve the Design?


It does not matter how many times you fall,what matters is how many times you stand back.
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Juggy,

What you have is just fine. Indeed, I don't even bother with an EJB client module.

Regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Juggy Obhi
Ranch Hand

Joined: Jul 02, 2007
Posts: 51
Hi Reza,

Thanks for your advice and at the same time for your book EJB 3 in Action it helped me in getting 91%.
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Juggy,

My pleasure and thanks for the kind words. I have been considering writing an article on how to setup EJB 3 IDE based projects using our GlassFish example code. Maybe I should try to make it a higher priority...

Regards,
Reza

P.S.: If you get a chance, an Amazon review is highly appreciated. We have some excellent reviews, but still just a handful compared to some other major EJB 3 titles.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Regarding EJB Project Structure