Changes

Jump to: navigation, search

NexJ Express Connecting to PostgreSQL

444 bytes removed, 12:30, 1 December 2010
1- Setup the postgresql-connection
For testing the connection, the 'PostgreSQLAdapterTest.java' is being used.
* [[PostgreSQL_Adapter-nexj/test-env/todo |TODOs]]
: Create and Configure the work/ws/core/test/nexj/postgresql.config
:: for now, the contents of default.config is changed to postgresql specifications instead of mysql
: walk-through lines from 214-218 in SQLManagementConnectionFactory.java
: Walk-through properties and see what exactly is needed to be authorized to connect to 'test' database
: Make sure the model connects to the PostgreSQL using user 'test' - Break @ SQLManagerFactory.java Line:122
: Figure out why there is the exception (unable to lock the PostgreSQL store for the adapter - Break @ SQLDataTest.java Line:443
* Done
: Installed the <code> JDBC3 Postgresql Driver, Version 9.0-801 </code> and added it to the libraries in JDK
: Configured the work/ws/core/test/nexj/postgresql.connection
: Configured system.dstype
: Configured DatabaseToolsDatabaseTool.java // This file calles SQLSchemaMangerFactory.java and creates the connection: Configured RelationalDatabase.java SQLRAConnectionFactory// Sets the default properties for the supported drivers: Configured RelationalDatabaseFragment.java// Sets the custom fragment properties for the supported drivers
: Configured Driver type and some other properties in JDBCInfo.java
: Configured : SQLSchemaMangerFactorySQLSchemaManagerFactory.java
=== 2- Create a PostgreSQL database through some scripts===
1
edit

Navigation menu