887985 wrote:From what you described, it doesn't sound like it should be a lot of work.
I guess you are right ... I was just hoping that there could some other way. Its gonna be a lot of rework to make it interactive.
887985 wrote:As ever the answer would be "it depends". One option would be to have the program store the credentials using java.util.prefs.Preferences. This is a nice simple way of persisting a small number of values without having to worry about implementation. But do you want the credentials stored permanently on the client machine? Or you could set an environmental variable in the shell.
One of the suggestion that i got was to cache the object of the user on the client machine and the client can keep using this cached user. Is it advisable to do so. If yes, how can i do this? Does java provide APIs for caching objects?