• Post Reply Bookmark Topic Watch Topic
  • New Topic

Maintaning directory structure for embedded Java web server, in pure java applicaiton  RSS feed

 
amit pandit
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have embedded web server as a service in my Java application.
(ie. a java web server is embedded in my java application, which automatically starts web server once application gets up)
The requirement is to support web interface thorugh my application. It means, I want to add web pages (html,jsp,applets) in my existing stable java application.
The existing java application has stable directory structures for jars & config files.
And these classes are required for newly developed applets & jsp pages too.

As the new requirement is to add & manage server pages & applets in same application, I want a way to enable minimum
directory structure change of my existing application & should able to add new applet classes & web pages by mantaining previous stable dir. structure.

Current dirctories are ->
1) Core jar file (required for newly developed applets) -> /usr/com/bin/project/core.jar
2) Java application config files -> /usr/com/db/project/*.xml
3) Other jar libraries -> /usr/com/libs/*.jar

I want to add & manage new web pages, applets in my existing application without any change in above dir. structure for jars, as it is already stabled since many years.

But,at the same time I need that core.jar for my web pages.
Please, help me to sort out this issue.

Thnx
Amit

 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if you instantiate the web server from inside your java application, the web server must be having its own directory structure, isnt?
I assume your main problem is to make core.jar available to the web applications. You can always do this in your build process. Just copy core.jar in the location/lib dir accessible to the web application.

Not an advanced question, moving to Servlets forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!