- Login to Oracle server and create following tables.
- Edit master-datasource.xml in <AppM_HOME>/repository/conf/datasources as follow.
Note: <defaultautocommit>false</defaultautocommit> property is mandatory for "jdbc/WSO2AM_DB" datasource. - Edit social.xml in <AppM_HOME>/repository/conf as follow.
- Copy the Oracle JDBC driver, which compatible to your Oracle database, to <AppM_HOME>/repository/components/lib
- Start the server with -Dsetup sh
wso2server.sh -Dsetup
Showing posts with label Configure. Show all posts
Showing posts with label Configure. Show all posts
Friday, July 15, 2016
How to Set up WSO2 App Manager with Oracle
These steps can be used to configure App Manager standalone with Oracle.
Monday, July 11, 2016
How to connect WSO2 App Manager with WSO2 DAS
Configuring MYSQL
- Create new database called APPM_STATS_DB in MYSQL server.
- Create tables inside the created database by executing script.
Configuring WSO2 DAS
- Download WSO2 DAS 3.0.1
- If App Manager and DAS are running on the same machine, follow this step.
Set Offset value to 3 in<DAS_HOME>/repository/conf/carbon.xml.
- Specify the datasource definition in the
<DAS_HOME>/repository/conf/datasources/master-datasources.xml
to connect early created APPM_STATS_DB database.
<datasource> <name>WSO2AM_STATS_DB</name> <description>The datasource used for setting statistics to APP Manager</description> <jndiConfig> <name>jdbc/WSO2AM_STATS_DB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url>jdbc:mysql://localhost:3306/APPM_STATS_DB?autoReconnect=true</url> <username>db_username</username> <password>db_password</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <defaultAutoCommit>false</defaultAutoCommit> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>
Note : Auto Commit option should be disable when working with DAS. - Copy the database driver to
<DAS_HOME>/repository/components/libfolders. - Restart DAS server.
- Login to DAS Admin console.
- Navigate to Home > Manage > Carbon Applications > Add and upload the .car file
Configuring WSO2 App Manager
- Change following configurations in <APPM_HOME>/repository/conf/app-manager.xml
- Specify the datasource definition in the
<APPM_HOME>/repository/conf/datasources/master-datasources.xml
<datasource> <name>WSO2AM_STATS_DB</name> <description>The datasource used for setting statistics to APP Manager</description> <jndiConfig> <name>jdbc/WSO2AM_STATS_DB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url>jdbc:mysql://localhost:3306/APPM_STATS_DB?autoReconnect=true</url> <username>db_username</username> <password>db_password</password> <driverClassName>com.mysql.jdbc.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <defaultAutoCommit>false</defaultAutoCommit> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource> - Copy the database driver to
<APPM_HOME>/repository/components/libfolders. - Restart App manager.
Labels:
App Manager,
APPM,
Configure,
DAS,
Statistics,
WSO2
Subscribe to:
Posts (Atom)