Developed by Ericsson, SAILFIN implements the JSR 116 standard based on the robust and scalable sip servlets technology and is committed to be compatible with JSR 289, this enables high availability and clustering. And integrated with the existing glassfish service. SAILFIN is a standard container of the SIP Servlet and integrates some functions of the glassfish application server. It can combine Java EE and SIP servlets technologies to provide richer media interaction for enterprise-level applications.
1. First download SAILFIN
2. From the console to the directory where SAILFIN is located, run the command: Java-jar sailfin-installer-v1-b61-nightly-01_feb_2009.jar, there will be a successful prompt at last
3. go to the ant directory that comes with SAILFIN: cd xx \ SAILFIN \ Lib \ ant, and run the command: ant-f .. /.. /.. /setup. XML, (if you want to install the cluster environment, run: ant-f .. /.. /.. /setup-cluster.xml)
4. Configure the eclipse environment. After installing eclipse, the author is the latest version 4.2. Go to the eclipse menu: Windows> preferences> servers and find that no SAILFIN server configuration is available, click Download aditional server adapters to download the glassfish server (which comes with the SAILFIN server), set the Server Directory to the directory where SAILFIN is located, and set JDK to the directory where your JDK is located.
5. Next, develop an application integrating HTTP and sip. File-> New-> Web project. The default step is to create a web project, write code in SRC, integrate the SIP application from sipservlet, and inherit the HTTP application from httpservlet, then modify the web under the WEB-INF under the webroot directory. XML content to create a sip. XML, sip. XML is similar to web. XML, used to describe the sipservlet application.
7. In the eclipse menu, select the icon: deploy myeclipse J2EE project to server... "and add server select glassfish 2.x. the release is successful.
8. Open the browser, http: // localhost: 4848/, enter the user name and password, go to the SAILFIN background management, SIP-> converged sip modules, and you will see the published Project. Of course, you can also perform undeploy and redeploy operations on the released project.
9. Enter http: // localhost: 8080/context root of your project to view your homepage.