• 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

deployment confusion

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm running Tomcat 5.5.4 and deploying with ant. It seems they expect you to develop on one machine, build a .war and distribute it to production environment on other machines. In my case, I'm developing on the same platform I'm running my production environment. I'd like to run production, Gamma and Beta environments, but I'm getting confused by it. I thought I had it by creating separate services for each on different ports, but now I've broke the manager app, so ant doesn't work.

I'm also confused on application granularity, that is: should all of production be one app, all of one realm, all of one database/object? I was originally basing on security realm, but I don't care for that because some reports need be visible in more than one realm and lead to duplication. I'm currently leaning toward a read app and a write app for each data object, but that compounds my confusion.

I've been really struggling with the tomcat docs, they seem to be partially updated to the current way of thinking, then point to area that don't jibe or state they need to be updated. If anyone can point me to some app design tutorials, I'd appreciate it.
 
Jim Babcock
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alright, since asking a question got no response... and you guys are almost always very good giving references or answers... I know when I know what I want, but am not familiar with the tech, I can be obtuse... Lets try a different approach.

My Dev philosophy: I firmly believe in running 4 environments: production, gamma, beta and alpha. Alpa is my programing environment. Beta is a show/test environment. Gamma IS production, but not linked to production data. Production is production (duh). The idea being you get user acceptence in beta, document the changes to move beta to gamma, no changes are made in gamma, for safety's sake, except for DB updates, production is just copying files from gamma. This has served me well for years.

The plan: So I think I'm going to install four tomcat instances (I should be able to do this in one instance with four different services, but I was having issues setting it up and seems like not sharing memory would make things more robust), configure them to run on four different ports, set up fourdifferent databases, set up the same resource name in each server to point to the appropriate DB. I'll use the stock tomcat/ant set up to build for dev. I'll build a .war with ant and perhaps have ant copy it up to the next environment to promote it. I'll create .sql files and Perl scripts to duplicate DB and file system change. Nothing done by hand... no adjustments or tweaks.

I think I can solve my confusion with realm versus app and app granularity by losing the idea that realm and applications a tightly tied. I'm thinking now that is I use one big app, I can get what I want using subdirectories and put the realms on them. I think...

Anyhow, thanks for listening to me blather (blither?),

Jimbus
 
reply
    Bookmark Topic Watch Topic
  • New Topic