Win a copy of AWS Security this week in the Cloud/Virtualization forum!

Carl Miller

+ Follow
since Feb 25, 2012
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Carl Miller

Thank you. I appreciate your perspective and insights.
6 years ago
Thank you Ulf.

I will look into using the servlet container's folder (directory) for shared application resources.

"HP [Hewlett-Packard] recommends that all application-specific resources be bundled with the application and not be placed in the shared folder. This is to ensure that the application resources are independent of the container."
6 years ago
We have 8 "services" (Java Servlets) that are currently configured in one war file. All the services are endpoints in an Apache CXF framework.

Every time there is a code update to one services, all 8 services must be undeployed and re-deployed.

If we put each service in a separate war file, will one instance of the Java Virtual Machine load 8 copies of CXF?
6 years ago
Thank you. Very nice explanation and helpful insights.

The Subversion revision number in the manifest can help us to answer many useful questions (where is the source code for file A, what changes were made to file A for this deploy, when was the last time file A was changed) by examining the repository history.

Suppose one file in the production directory is accidently deleted and is restored from a backup site. We cannot be sure this file belongs to Subversion revision 10 (that there was no mistake in selecting the backup) by examining the file.

Suppose someone accidently overwrites a file (copies a file to production instead of test, or copies TO the directory instead of FROM the directory, etc.) or maybe intentionally replaces one file. Other than the filesize and timestamp, the file does not tell us where it came from.

Is that correct?
If a web application under Apache Tomcat is deployed by copying a directory (and subdirectories) instead of a .war file, how do people know the versions of the servlets and other .class files (several weeks or months later)?
Thank you. Very helpful. Yes, given a .class file I want to know the version of the source, that would be the Subversion revision number. (I have not used Subversion, so I did not know how to say it.)

If someone makes one small change (bug fix) to a source file and if you need to deploy that change, then would you build a whole new jar file with a new Subversion revision number in the MANIFEST.MF file?
How do you know which version of a .java file that a Java .class file was compiled from?

The source files are stored in a Subversion system.

It seems you would have to put a version constant in the source file and then use javap to see the constant.