Installing plugin on server fron client

Hi,

I have worked little on openfire server coding for different functionalities, I want to know if we can send a plugin jar (could be any other jar also) from spark client to server at desired location so that server automatically install that at runtime…tell me if there is any way to do it