Showing posts with label Data Source. Show all posts
Showing posts with label Data Source. Show all posts

Friday, January 4, 2013

Linking DB Adapter Outbound Connection Pool to Data Source

The following steps show how to link a Database Adapter Outbound Connection Pool to a Data Source in Weblogic.  These steps are intended for developers who are making these changes in their virtual machine or in the development environment. 

1.  Log into Weblogic
2. Go under Deployments and select DBAdapter













3.  Navigate to the Outbound Connection Pools tab which can be found by selecting the Configuration tab .  Then select New.









4.   Enter the JNDI Name and then select Next.   The value entered should match the JNDI name from the JCA resource you are using to connect to the database.  This can be found in the *.jca file in the location attribute.   

















5.   Add a JDBC name in the xADataSourceName Property and then Save Changes.  This JDBC name should map to the Weblogic Data Source that points to the database you want to connect to.  If you have not already created a Weblogic Data Source, see this page.



Creating a new Data Source in Weblogic


The below steps outline how to create a new Data Source in Weblogic.  These steps are intended for
developers who want to create a new data source in their own virtual machines or the development
server.

1. Create Connection Information in Weblogic
      a.  Create New Data Source
            i. Navigate to <domain> -> Services -> Data Sources and select New -> Generic 
Data Source.















           ii. Fill in the Name, the JNDI Name and the Database Type for your new data
source on the JDBC Data Source Properties Page.






            iii. Select the database driver that will be used for this connection.


    














            iv. Fill in Transaction Options if available.  If you choose a XA JDBC Driver, you will not have any options.

















            v. Fill in Connection Properties information for the database you want to connect
to.


















           vi. Test your configuration




















           vi.i. Select Next and then select where to deploy the data source you created.  If
you are not using a managed server for OSB you can select the AdminServer.