J2EE Configuration Guide (2)
7. Transaction You can edit config / default.properties file control transaction and timeout settings. Distributed.Transaction.Recovery Property This property controls whether distributed is happening. The following conditions must be met to meet these things: the range of things during cross-library operations. The J2EE program passed the JDBC2.0 JTA driver access database When the fault occurs, the components of the things can be submitted or rolled in accordance with the two-way submission protocol. When the thing occurs, the server will be submitted or rolled after the server is restarted. Distributed.Transaction.Recovery's value is True or False. J2EE is installed after the default is false. Distributed.Transaction.Recovery = false Transaction.time Property In the EJB of applying Container-Managed, you can control the timeout interval by setting the value of Transaction.Timeout. For example: Transaction.timeout = 5 After setting, if things are not completed in 5 seconds, the J2EE Life Manager will roll back. When J2EE is installed for the first time, the value of timeout is 0 when the value is not timeout. Only EJBs using Container-Managed managers are affected by Timeout. As for in Bean-Managed and JTATRRANSACTIONS, you can reference the setTransactionTimeout method for useertransaction. At the same time, you can also quote the setTransactionTimeout method in other sets: such as servlets and JSP. 8. Port J2EE requires TCP / IP ports. Modify the corresponding file in the config directory to modify the port number. The following table is the port number and the corresponding file. EJB 9191 ejb.properties http.port = 9191 HTTP 8000 web.properties port = 8000 HTTPS 7000 web.properties https.port = 7000 Naming and Directory 1050 orb.properties port = 1050 9191 port for providing a client to download the required stub class 8000 Provides HTTP service 7000 to provide HTTPS service 1050 Port 9. The port 9. Log file J2EE Server has several log files. Defaults these files in the logs directory. Edit the log.directory property in the config / default.properties file can change the default directory. Log.directory = Logs, you can also edit the name of the default.properties file to change the log file. For example: You can modify the value of the log.output property to modify the name of the Output.log file. In general, the log file is determined to start J2EE mode. (SINGLE or MULTIPLE VM (Virtual Machine) mode) SINGLE VM log file The default case is Single VM mode. In this case, the log file is located in $ J2EE_HOME /// EJB logs is specified in the Default.properties property. The Host element is a computer name. Generate the following files. System.out system.err Event.log output.log error.log system.out and system.err files include the output of System.out and System.ERR in EJB.