• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to assemble a J2EE application?  RSS feed

 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.. we are currently working in developing an e-commerce application. So we split the work, one does the catalog component, other implements the shopping cart, etc...
we've reached the point where everyone has managed to test their "components" and they're working OK. Now we need to integrate everything, and this is the problem. we don't know exactly how to do it, or how it's the best way to do it.
every member of the team uses Ant and XDoclet to generate an EAR file. Most of these files contain JAR files, as well as WAR files (for example, the shopping cart component needs a session bean to be tested)...
Now, do I take the JAR file that every group member has created and put it in a single EAR file? hmm.. i don't know...
I was also reading chapter 17 of Ed Roman's book and the example shows that all servlets, html's, jsp's, custom tags are placed in a WAR file and the rest in a JAR file.. so it's sort of having a controller (servlet) accessing the Beans and forwarding the requests to JSP's according to certain conditions.
any ideas?
thx
 
Geeta Ramasami
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
EAR comprises of WAR and JAR.As u r merging the modules developed by individual teams to a single project, finally u'll have only 1 EAR with WAR(JSp and servlets) and JAR(EJB components).So merge all the files taken from different teams and generate a single EAR.WAR will have files that serves as a controller or view and jar has ejb components.
Cheers
Geeta
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!