• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RAD & WAS6: add web project as utility jar

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I've got web 2 projects with similar functionality, but different target users group. The second project is dependent (that is, has classes which refer to the first project's classes) on the first one. These two projects have to be deployed on different servers. I don't want to expose the first project as a web application on the second server. So i would like to include the first project as utility jar for this purpose. But RAD doesn't allow this (include web projects as utility jars). Is there any possibility to overcome this issue, which will not result in manual build steps (e.g., ant build process, wsadmin scripts etc)?
Thanks in advance for any suggestion
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For starters, build scripts are extremely important to have, so I always recommend you invest the time up front to write good build scripts.

I don't understand why you need the code in the first project as a WAR? If you're going to use it as a utility JAR, then why not split it up into two projects- a WAR and JAR. Put the shared code that both applications need in the JAR, use that as the utility JAR, and then you don't need to include the first project in the second.
reply
    Bookmark Topic Watch Topic
  • New Topic