Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can not shutdown AGI Server

 
Suresh Khant
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
With the help of example giving at the link http://asterisk-java.org/development/faq.html (example of using an AGI server in a container like JBoss), I have created web application which contains of servlet and java class which implements BaseAgiScript.

I have run the web application , it works fine (AGI server starting at port 4573) when i deploy the war file of the web application at jboss server , but when i undeploy the war file , the AGI server will not be shutdown and the AGI server port 4573 will remain open.

Any way to help me to fix this issue ?

TestServlet.java


TestAgi.java
 
Suresh Khant
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have fixed the issue by searching and finding a code which close the port of AGIserver once the war file is undeployed

here is the code
TestServlet.java

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic