I will continue my last post here and we will simply deploy that application which is based on MySQL database to weblogic server. You can follow the same steps to deploy any ADF application like ADF application based on Oracle database (for Oracle based applications we dont have to provide any external Jar files to Weblogic server)
This post you might feel lengthy but it hardly takes 10-15 minutes to complete all steps
- Weblogic server Domain is created (in my case name it is "adf_test" on local host and port 7001)
Check the Oracle fusion developer guide to know how to create domain
- Connection to Weblogic server named as TestingServer in the resource palette
- My SQL Connect/J Driver is in Domain/lib folder for example
a) Creating database source for MySQL database in Weblogic server.
b) Setting Application properties for deployment
c) Creating deployment profiles for ADF application.
d) Deploying the application
e) Running the application
a) Creating database source for MySQL database in Weblogic server:
- Start the weblogic server domain and enter the following address in your browser.
- Enter user and password (the one you provided while creating domain) default user is "weblogic" and password is "weblogic1"
- Click the Database source under the JDBC heading if activate changes button is appearing click it before
- Click New Button on Data source Page
Note that the JNDI name is important we will use the same name for our application.
b) Setting Application properties for deployment:
- Now we will setup our application to use that Data source we have created in our Weblogic server
- Right click the Application Module in Model project choose Configuration
c) Creating deployment profile for ADF application:
- We will setup the Project properties to give a proper user friendly name to our application and project
- Double ViewController Project goto Project Properties. Choose JavaEE Application set the name of application as "MySqlDemo"
Note: This name will be use to run our application.
- Goto Application Properties Click
- Goto Deployment Press Edit and set the Application name as "MySqlApp"
Note: This name will appear in our deployment section of WLS (Weblogic server)
d) Deploying the application:
- Click on Application Icon and choose Deploy and MySQL_Application1... (the default name of profile)
- Choose Deploy to Application Server and click Next
- Choose TestingServer and Click Next (if required click Green button to create new connection)
- Click Finish
- Check the deployment log make sure everything goes well
e) Running the application:
- Goto weblogic console click the deployments link
- As we can see the Application "MySqlApp" in our deployments and Status is OK and ACTIVE
- Enter in the browser the following address to test the application
More Reading at Deploying Fusion Web Applications
Download the workspace
Have a nice day,