Asterisk-Java API : How to change default bindPort


I'm working in Asterisk-Java API for sometime. For a project purpose I need to have two application running in one server simultaneously. But I'm not able to change the port (Default it is listening to 4573). I followed the tutorial @ http :// / development/ tutorial  .html

 and tried creating file with content bindPort = 1234

and extensions.conf file having exten => 1300,1,Agi(agi://localhost:1234/hello.agi). But its still say listening to 4573.

When I start the second application, it says not able to bind to the port and it’s already in use.

Please help to change change the bindPort

Thanks in advance