|
From: Geetha <ge...@ho...> - 2003-10-02 05:55:34
|
Leif, 1. The first piece of set commands executed in a batch file, creates a = unique file name to be used for logging purposes. The current date and = time is taken and the special characters like / - : . and space are = replaced and then used. This is not critical if the wrapper doesnt = support this. 2. If I can redirect the console err and out output to different files, = that would be great. This is critical since we need to monitor the = system and debug any issues using the files. Would be glad if we could = get this feature.=20 Thanks Geetha Geetha, =20 > I just downloaded the Java Service Wrapper and I find it very useful. =20 Great, I'm glad you are finding it useful. =20 > I am facing two problems with the wrapper. > =20 > 1. I have a need to create a unique file name for which i use the=20 > following commands in a batch file > =20 > set TS=3D%date%%time% > set TS=3D%TS:/=3D% > set TS=3D%TS:-=3D% > set TS=3D%TS:.=3D% > set TS=3D%TS::=3D% > set TS=3D%TS: =3D% > =20 > But when I put this in the wrapper.conf file in the specified format=20 > (set.TS format), TS evaluates in the end to %TS: =3D%. =20 I'll plead ignorant to this. What are you expecting those various = commands to do? The only kind of variable expansion that the wrapper currently = knows how to do is to expand an environment variable with the exact name = between the '%' characters. So it is going through each of your commands and=20 looking for the specified environment variable. When a variable can not be=20 found, the Wrapper leaves the string as is. =20 So in this case, the last thing it does is look for an environment=20 variable called "TS: =3D" which does not exist, so the TS variable gets the final = string=20 unmodified. =20 If you could explain what you are expecting to have happen here, and=20 point me to some online docs describing the functionality, this may be something = could be a feature in a future release. I am a bit curious. =20 > 2. Command line execution of my java program looks like > java xyz1>test.out 2>test.err > =20 > How do i specify this in the wrapper.conf file? Which property=20 > should be set to send the console out and err to the respective = files? =20 Currently this is not possible with the Wrapper. It takes all output=20 from the JVM, err and out and merges them into a single output stream. out = messages are logged at level INFO and err at level ERROR. =20 As things are implemented right now, it would be difficult to get this=20 working without breaking things compatibility wise for existing users. I have=20 one idea, but I'll have to look into a bit. At the best, it would be a little = bit=20 kludgey to configure however. :-/ =20 Cheers, Leif |