File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
jQuery in Action, 2nd edition
 
subject: Regarding EJB Project Structure
 
Similar Threads
Why the stubs are only present in EJB module & not in Web Module?
hibernate search - webapp compilation problem
Accessing a java class in a web application through EJB
Can a EJB module reference a WEB module?
Can a EJB module reference a WEB module?