readme
来自「Java的面向对象数据库系统的源代码」· 代码 · 共 37 行
TXT
37 行
Simple Servlet Sample-------------This sample demonstrates web development with Ozone. It is deliberatelyvery simple, basically a Hello World where the Hello message comes froma persistent object.Either set OZONE_HOME or edit the bin\settings.bat file to change the fall-back setting of OZONE_HOME to reflect your actual settings.The example is using TOMCAT and requires a CATALINA_HOME environment variableto work but should be easily ported to any other servlet container.Building It-----------Run "build.bat" in the simpleServlet directory. This will deploy the war fileto Tomcat.Running it----------1. Run bin\startOzone.bat to start an Ozone server.2. Start tomcat (%CATALINA_HOME%\bin\startup.bat).3. Run "build.bat runManager" in the simpleServlet directory. This will start theclient application that creates the persistant object.4. Run "build.bat runClient" in the simpleServlet directory. This will start theclient application that connects to the servlet and gets the result.Note that you might need to change your port inthe HelloClient in case Tomcat is running on another one, e.g. 8080.You can also see the result in the web browser by using the url"http://localhost/SimpleOzoneServlet" which takes you to the index.html page.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?