This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Can not shutdown AGI Server
 
It's not a secret anymore!