File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding EJB Project Structure

 
Juggy Obhi
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Juggy,

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

Regards,
Reza
 
Juggy Obhi
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 580
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic