File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Can not shutdown AGI Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Can not shutdown AGI Server" Watch "Can not shutdown AGI Server" New topic
Author

Can not shutdown AGI Server

Suresh Khant
Ranch Hand

Joined: Feb 27, 2010
Posts: 118
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

Joined: Feb 27, 2010
Posts: 118
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can not shutdown AGI Server