My idea is to open a ServerSocket when in the MBean is invoked one particular method, then connect from the client to this socket, transfer the file and close the ServerSocket.
Is there any better method to do this?
Did you happend to do any thing in your work. Since I have the same problem. But want to know how to do that. If you have any idea , or code , please try to share, that would be a great help to me.