pass servlet value into java program it is in different application

My asterisk java program compile in separate application my all asterisk-java program kept in var/lib/asterisk/agi-bin/

my servlet program execute in different application all servlet program kept in usr/local/apache-tomcat/webapps/Asianet/WEB-INF/classes/com/example/servlet

my requirement:

I have jsp page it display in GUI when i select some value in GUI that value will get in servlet program using get parameter method that value i have to pass asterisk-java program that is different application how to do this guide me