-
Notifications
You must be signed in to change notification settings - Fork 0
JavaEE_Starting_Sofof_en
رامي مناف edited this page Jun 20, 2019
·
1 revision
The SofofServlet class is a servlet that can help you in configuring and starting sofof when deploying your website. You can use it after assigning it to be started in the web.xml file. The configurations can be written there also.
<servlet-name>Sofof Server</servlet-name>
<servlet-class>org.sofof.servlet.SofofServlet</servlet-class>
<load-on-startup>0</load-on-startup>
<init-param>
<param-name>path</param-name>
<param-value>db</param-value>
</init-param>
<init-param>
<param-name>port</param-name>
<param-value>6969</param-value>
</init-param>
<init-param>
<param-name>ssl</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>configureServer</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>configureSession</param-name>
<param-value>false</param-value>
</init-param>
</servlet>The configureServer parameter role is calling the configure method on the server and the configureSession role is also calling the static configure method on the Database (see more about configuring sofof using xml files).