I am new to Java and JSch. I am trying to write a tool which will open JSch "shell" on multiple threads and send commands.
My class CommandAggregator contains a class ConnectionManager which in turn contains the Session. Sending commands work fine in the constructor of CommandAggregator , but as soon as i try to send a command in the run() method, the Session disconnects.
Could somebody help me with this. Do I have to use a synchronized method?
Log in to post a comment.