Weblogic Create 2 data sources

java, weblogic

Solution

Please make sure that these two data sources you're creating DO NOT have the same name OR JNDI name (I've seen this error when accidentally trying to create a data source that already existed)

Problem

I am using weblogic server for my application. There are 2 data sources that I can use 1. localhost 2. dev My question is can I create 2 data sources and use them for local testing. I have one domain. I get an error if I do that; Error Failed to bind remote object (ClusterableRemoteRef(-8493092708980746818S::base_domain:AdminServer null)/881 [weblogic.jdbc.common.internal.RemoteDataSource]) to replica aware stub at MyDataSource(ClusterableRemoteRef(-8493092708980746818S::base_domain:AdminServer [-8493092708980746818S::base_domain:AdminServer/287])/287 [weblogic.jdbc.common.internal.RemoteDataSource])

Original source