Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The CMR is based on the Spring Application Framework. The persistence is accomplished by using Hibernate as the persistency layer in Java and PostgreSQL h2 as the database. Spring provides an additional abstraction from the Hibernate framework to make it even easier to use. The Spring framework is initialized in the main CMR.java class.

...

  • First the h2 Browser must be started. Go to the CMR installation folder and start it by executing: java -cp lib/prod/h2.jar org.h2.tools.Server -webAllowOthers -web (Using -webAllowOthers allows you to connect to this server from other computers, so you do not have to be on the actual computer)java -cp lib/h2.jar org.h2.tools.Server -webAllowOthers -web
  • The server should start up:sieglst@ipazhkorr06-2:~/inspectIT/CMR> java -cp lib/h2.jar org.h2.tools.Server -webAllowOthers -web
    Web server running on http://192.168.160.104:8082 (others can connect)
  • Access the server by pointing your browser to this URL (in my current environment I need to use the logical name instead of the IP)
  • The database can be accessed by using this connection string: jdbc:h2:[path_to_CMR_directory]/db/inspectit. User and password is inspectit
  • Note that the database only provides one connection. Thus if the CMR is running you cannot connect this way.