Geetha,
> I just downloaded the Java Service Wrapper and I find it very useful.
Great, I'm glad you are finding it useful.
> I am facing two problems with the wrapper.
>
> 1. I have a need to create a unique file name for which i use the
> following commands in a batch file
>
> set TS=%date%%time%
> set TS=%TS:/=%
> set TS=%TS:-=%
> set TS=%TS:.=%
> set TS=%TS::=%
> set TS=%TS: =%
>
> But when I put this in the wrapper.conf file in the specified format
> (set.TS format), TS evaluates in the end to %TS: =%.
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
looking
for the specified environment variable. When a variable can not be
found, the
Wrapper leaves the string as is.
So in this case, the last thing it does is look for an environment
variable called
"TS: =" which does not exist, so the TS variable gets the final string
unmodified.
If you could explain what you are expecting to have happen here, and
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.
> 2. Command line execution of my java program looks like
> java xyz1>test.out 2>test.err
>
> How do i specify this in the wrapper.conf file? Which property
> should be set to send the console out and err to the respective files?
Currently this is not possible with the Wrapper. It takes all output
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.
As things are implemented right now, it would be difficult to get this
working
without breaking things compatibility wise for existing users. I have
one idea,
but I'll have to look into a bit. At the best, it would be a little bit
kludgey to
configure however. :-/
Cheers,
Leif
|