• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

two applications in one server

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a web site (on a Linux/Tomcat server). It has a customer (www.xxxxx.com) and an administrator (www.xxxxx.com/Administrator) interface. When I make a change related to any of these interfaces, sometimes I need to restart Tomcat. I want to seperate these two parts. I want to be able to modify one part but the other part should not be affected from these modifications. I need to be able to restart just one part, while the other part goes on running in its own state. These two parts should only share a database. How can I do it..? Any idea..?
Here's my next question: It is related with SSL. I have an x.jsp file. It is called from another jsp with a "https://www.xxxxx.com/x.jsp" link. How should I prevent users typing "http://www.xxxxx.com/x.jsp" and calling it unsecurely? I need help... Thanx...
 
Sheriff
Posts: 67503
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch "myJava ranchName"!
You'll find this forum a great place to seek help on Tomcat, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks!
bear
 
Bear Bibeault
Sheriff
Posts: 67503
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer to your first question is yes. Separate the logic into two web apps and load each into its own "Context" (look that term up in the Tomcat guide). Then you can use the manager application to stop/start the apps separately.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For your second question, look in to 'Transport Guarantee' and the container-managed security information available in both the servlet spec and the tomcat docs.
 
Mahola Nawado
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Bear and Mike. I found the way of running two applications in one tomcat instance but i could not find the way of preventing unsecure calls (with http instead of https) to securely designated pages. (I mean, the second question...) I will be happy if you give more information about it... Where should I search for it, and which keywords should I use to search...?...
Thanks...
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic