A
Andoni
Hello,
I am writing a web based application which allows the user to do some
configuration of their account on a mail server my company maintains. This
application in particular involves the use of quite a few different calls to
command scripts and the like on the operating system. I have decided to
make all the responses from the operating system come back in XML which has
made some of my job easier but now I am trying to think of a way to wrap the
outbound commands which are different on my windows system and the system
for which I am developing which is Linux. I want to take them all aside in
a separate class which can use the System.getProperty("os.name") property to
decide which version to call. Is this a bad Idea? Can you please suggest
architectures for making JNI calls flexible.
Kind regards,
Andoni.
I am writing a web based application which allows the user to do some
configuration of their account on a mail server my company maintains. This
application in particular involves the use of quite a few different calls to
command scripts and the like on the operating system. I have decided to
make all the responses from the operating system come back in XML which has
made some of my job easier but now I am trying to think of a way to wrap the
outbound commands which are different on my windows system and the system
for which I am developing which is Linux. I want to take them all aside in
a separate class which can use the System.getProperty("os.name") property to
decide which version to call. Is this a bad Idea? Can you please suggest
architectures for making JNI calls flexible.
Kind regards,
Andoni.